Re: [matplotlib-devel] markersize change
This might be related to a change I made in the Agg backend to make the markers look better by rounding their coordinates to the nearest pixel. It certainly made the stock markers at a standard size look better, but I suspect as they get smaller, they are converging down to the same value, thus having a truly zero-sized marker. I'm away from a machine with build tools at the moment, so can't confirm. Does the attached patch work for you? Mike Andrew Straw wrote: John Hunter wrote: On Sat, Nov 29, 2008 at 3:55 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: Hi All, I have been testing the latest svn matplotlib, which failed to produce any visible data in some long-standing scripts of mine. :( Investigating further, my use of markersize=0.5 combined with the '.' symbol and the Agg backend caused a complete disappearance of the markers. I'm attaching example images from 0.93.3 and the most recent SVN using the attached script. I'd be happy to track this down, but I think this might be a no-brainer for someone on the list. Is this agg only? It doesn't happen with PS or SVG, so I'll say yes. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel Index: src/_backend_agg.cpp === --- src/_backend_agg.cpp (revision 6457) +++ src/_backend_agg.cpp (working copy) @@ -494,8 +494,8 @@ PathIterator marker_path(marker_path_obj); // The built-in markers look better if snapping is turned on. - const bool marker_snap = true; - // bool marker_snap = should_snap(marker_path, marker_trans); + // const bool marker_snap = true; + bool marker_snap = should_snap(marker_path, marker_trans); transformed_path_t marker_path_transformed(marker_path, marker_trans); simplify_t marker_path_simplified(marker_path_transformed, marker_snap, false, width, height); curve_t marker_path_curve(marker_path_simplified); - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] any git clones of the MPL svn repo out there?
I don't know of any, but if you create one let us know. I'd be interested in playing with such a thing. I'm ready to see what all the fuss is about... ;) Mike Andrew Straw wrote: > Since using git for some time on several projects (including projects > with a central svn repository), it's been hard to go back to the > universally slow web-based subversion history browsers and the absence > of 'git bisect'. Thus, I'm thinking about cloning the MPL SVN history > into a git repo, but I wonder if anyone has already done this? Are there > any git clones of the MPL svn repo out there? > > Thanks, > Andrew > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Matplotlib-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] markersize change
Hi Mike, That does fix the issue. Another thing I noticed that is fixed with your patch: the '.' marks appear like '+' when drawn at a smallish size. Thanks, Andrew Michael Droettboom wrote: > This might be related to a change I made in the Agg backend to make the > markers look better by rounding their coordinates to the nearest pixel. > It certainly made the stock markers at a standard size look better, but > I suspect as they get smaller, they are converging down to the same > value, thus having a truly zero-sized marker. > > I'm away from a machine with build tools at the moment, so can't > confirm. Does the attached patch work for you? > > Mike > > Andrew Straw wrote: >> John Hunter wrote: >> >>> On Sat, Nov 29, 2008 at 3:55 PM, Andrew Straw <[EMAIL PROTECTED]> >>> wrote: >>> Hi All, I have been testing the latest svn matplotlib, which failed to produce any visible data in some long-standing scripts of mine. :( Investigating further, my use of markersize=0.5 combined with the '.' symbol and the Agg backend caused a complete disappearance of the markers. I'm attaching example images from 0.93.3 and the most recent SVN using the attached script. I'd be happy to track this down, but I think this might be a no-brainer for someone on the list. >>> Is this agg only? >>> >> >> It doesn't happen with PS or SVG, so I'll say yes. >> >> - >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> ___ >> Matplotlib-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> > > > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > > ___ > Matplotlib-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] any git clones of the MPL svn repo out there?
I used rsync to mirror the entire SVN repo locally and then using "git svn clone" to import it (which took about 12 hours on a 2.5 GHz Core 2 machine, even with the local SVN mirror). I haven't been able to clone the new git repo such that the 2nd git copy would not need to do "git svn fetch" on the entire repository. Thus, it seems that putting my git svn mirror in a publicly accessible location isn't actually going to save anyone the pain of letting git call subversion a bazillion times to import all history. (At least not without me understanding things like http://utsl.gen.nz/talks/git-svn/intro.html#howto-track-rebuildmeta ) I'll plan to use my local git repository to interact with the MPL svn repo, but I don't plan to publish my git repo unless I figure out how to set it up so it's actually useful. Until or unless that happens, here's how I cloned the MPL repo: # Directories MPL_RSYNC_DIR="/mnt/workdisk/tmp/matplotlib-svn-rsync" MPL_GIT_DIR="/mnt/workdisk/tmp/matplotlib" # Copy the svn repo history locally mkdir -p $MPL_RSYNC_DIR cd $MPL_RSYNC_DIR rsync -av matplotlib.svn.sourceforge.net::svn/matplotlib/* . # Import into git mkdir -p $MPL_GIT_DIR cd $MPL_GIT_DIR git svn clone --trunk=trunk/matplotlib --tags=tags \ file://$MPL_RSYNC_DIR At this point, you should have a shiny new git MPL repo in $MPL_GIT_DIR suitable for use with git, including two of my favorites, git bisect and gitk. However, to update from svn without going through the rsync intermediate and to commit directly to the svn repo, you need to do the equivalent of "svn switch --relocate" to point your git repo at the SourceForge svn https URL rather than your local rsync copy. I'm at the mercy of my google searching skills here because I don't understand how git-svn works, but I followed the recipe at http://www.ciaran-lee.com/articles/6 . Here it is modified to be specific for this case: * In the [svn-remote "svn"] section of $MPL_GIT_DIR/.git/config, change the url to https://matplotlib.svn.sourceforge.net/svnroot/matplotlib (but note the old file:/// URL -- you'll need that in a minute). * (I think a commit has to have been made to the SourceForge SVN repo for this next step to work. Somewhere in this recipe this has to happen, and I forgot exactly where.) * Run "git svn fetch" in $MPL_GIT_DIR * Change the svn-remote url back to the original file:/// * Run "git svn rebase -l" to do a local rebase (with the changes that came in with the last fetch operation) * Change svn-remote url back to the new url. * "git svn rebase" and "git svn dcommit" should now work. Finally, a couple URLs that are useful for git-svn interaction: * http://andy.delcambre.com/2008/3/4/git-svn-workflow * http://git.or.cz/course/svn.html And the man page: * http://www.kernel.org/pub/software/scm/git/docs/git-svn.html Note that I'd actually suggest getting moderately comfortable with pure git before attempting to do git/svn juggling. I suggest playing with the sympy git repository: git clone git://git.sympy.org/sympy.git Michael Droettboom wrote: > I don't know of any, but if you create one let us know. I'd be > interested in playing with such a thing. I'm ready to see what all the > fuss is about... ;) > > Mike > > Andrew Straw wrote: >> Since using git for some time on several projects (including projects >> with a central svn repository), it's been hard to go back to the >> universally slow web-based subversion history browsers and the absence >> of 'git bisect'. Thus, I'm thinking about cloning the MPL SVN history >> into a git repo, but I wonder if anyone has already done this? Are there >> any git clones of the MPL svn repo out there? >> >> Thanks, >> Andrew >> >> - >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> ___ >> Matplotlib-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Matplotlib-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge B
Re: [matplotlib-devel] help request: wx, tk, qt backend leave event
On Wed, Nov 26, 2008 at 2:05 PM, John Hunter <[EMAIL PROTECTED]> wrote: > I recently added support for a figure/axes enter/leave event. The > figure enter and axes enter/leave are easy to do with nothing new in > the backends, just using the native mpl events. The figure leave > event is harder, because when a user leaves a figure and activates > another window, mpl gets no events. > > To correct this, I added a leave_notify_event method to > backend_bases.FigureCanvasBase (note this is not an mpl Event) but > when called it will trigger a callback to those registered to the > figure_leave_event with the last event that occurred in the window. > > I added support for this in gtk by connecting the the gtk signal > 'leave_notify_event' to the mpl backend method leave_notify_event. If > you know something about tk, wx or qt event handling, could you add a > similar method to the appropriate backend? You can follow the example > in backend_gtk. > > > You can test with examples/event_handling/figure_axes_enter_leave.py > I implemented this in backend_qt4. Darren - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
