Eric Firing wrote:
> John Hunter wrote:
>> On Thu, Jul 24, 2008 at 10:00 PM, Ryan May <[EMAIL PROTECTED]> wrote:
>>
>>> What else is confusing is how that relates to DPI.  When I change the
>>> figure's dpi, using set_dpi, (and redraw), I get physically *bigger* 
>>> barbs.
>>>  To me, if I'm actually specifying pixels, there's no way that they 
>>> should
>>> get bigger when I change the DPI.
> 
> Ryan,  I think you are giving the length in points (sort of, because of 
> the bizarre size kwarg), not pixels.  So you are right--the barbs are 
> not 7 pixels long.  The translation from points to pixels for the Agg 
> backend depends on the dpi, as John says below.

Now I know what you were saying, I was too braindead to understand last 
night.  I am drawing in points (or whatever scatter uses for size), 
because I modeled my code off of scatter.  Scatter also uses an Identity 
Transform() for it's Collection objects (which is where I got the idea). 
  Not coincidentally, it shows a similar issue.  While  it's not as bad 
as my barbs issue (for reasons unknown to me), you can change the size 
of the scatter object relative to the size of the canvas just by 
changing the dpi passed to savefig. Again, it takes passing in dpi=72 to 
get a figure to match what's on screen, even though 72 is supposedly 
what's hard coded.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

-------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to