It's still a problem.  It takes the dpi at the time of plot building and 
uses that to scale each of the objects.  I have followed the example of 
RegularPolyCollection and now do this scaling during draw.

There was another dpi-related bug that affected the example only:

   trans = transforms.Affine2D().scale(fig.dpi/72.0)

Obviously hard-codes the dpi at plot-building time.  This will be dynamic:

  trans = fig.dpi_scale_trans + transforms.Affine2D().scale(1.0/72.0)

I'll commit these to SVN shortly.

Cheers,
Mike

John Hunter wrote:
> On Thu, Jun 5, 2008 at 11:02 AM, Tony Yu <[EMAIL PROTECTED]> wrote:
>   
>> I think the arguments for RegularPolyCollection were changed from
>> 0.91.x to 0.98.0, but the example in collections_demo.py were not
>> changed.
>>     
>
> Thanks Tony,
>
> I committed this.  Michael, when looking over the collection and
> scatter code to see what had replaced this dpi setting, I saw this in
> Axes.scatter:
>
>
>             # MGDTODO: This has dpi problems
>             # rescale verts
>             rescale = np.sqrt(max(verts[:,0]**2+verts[:,1]**2))
>             verts /= rescale
>
> Do we need to revisit the dpi scaling in this function or is this comment 
> stale?
>
> JDH
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> 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


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to