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. -Andrew
On Sat, Nov 29, 2008 at 3:55 PM, Andrew Straw <str...@as...> 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? JDH
John Hunter wrote: > On Sat, Nov 29, 2008 at 3:55 PM, Andrew Straw <str...@as...> 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 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 <str...@as...> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >
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 <str...@as...> >>> 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 >> Mat...@li... >> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Ok. I'll apply this fix to SVN. I'll have to go back and find a better way to do this later. Personally, I think the markers at normal to largish size (5+ pixels in diameter) look too fuzzy without the pixel quantizing. Mike Andrew Straw wrote: > 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 <str...@as...> >>>> 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 >>> Mat...@li... >>> 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 >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA