markersize change

Hi All,

I have been testing the latest svn matplotlib, which failed to produce
any visible data in some long-standing scripts of mine. :frowning:

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

markersize-0.98.3.png

markersize-r6457.png

mpl_markersize.py (745 Bytes)

Is this agg only?

JDH

路路路

On Sat, Nov 29, 2008 at 3:55 PM, Andrew Straw <strawman@...36...> 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. :frowning:

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.

John Hunter wrote:

路路路

On Sat, Nov 29, 2008 at 3:55 PM, Andrew Straw <strawman@...36...> 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. :frowning:

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:

_backend_agg_disappearing_markers.cpp.diff (733 Bytes)

路路路

John Hunter wrote:
  

On Sat, Nov 29, 2008 at 3:55 PM, Andrew Straw <strawman@...36...> 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. :frowning:

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
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

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 <strawman@...36...> >>> 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. :frowning:

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
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options
  
------------------------------------------------------------------------

-------------------------------------------------------------------------
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
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

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 <strawman@...36...> >>>> 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. :frowning:

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
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options
  

------------------------------------------------------------------------

-------------------------------------------------------------------------
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
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options
    
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA