On Thu, Jul 5, 2012 at 12:17 PM, Benjamin Root <ben.r...@ou.edu> wrote:
>
> Actually, looking at Fabrice's code, you might be able to get it to be
> slightly faster. Lines 39-41 should be protected by a "if i == 0"
> statement because it only needs to be done once. Furthermore, you might
> get some more improvements if you allow the subplots to share_all, in which
> case, you only need to set the limits and maybe the scale and the locator
> once.
>
> Cheers!
> Ben Root
>
>
Good catch. Bringing lines 39-41 in the if i==0 block makes the label texts
appear jagged. See my output for this case at ->
http://atmos.uwyo.edu/~gsever/data/matplotlib/test_speed3_jaggedlabels.pdf
Putting these lines right below main fig and grid object creations make
them look normal, and this case saves me 3-5 more seconds.
Setting share_all option to 1 makes x-ticks unreasonably placed on the
axes. As if the share_all option is applied only to the first plot call.
See the example output at ->
http://atmos.uwyo.edu/~gsever/data/matplotlib/test_speed3_badxaxes.pdf
I actually started with share_all=1 from this example ->
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/examples/demo_axes_grid.py
Particularly the construction given in def demo_grid_with_single_cbar(fig).
However I noticed, this behavior earlier and explicit grid calls solved
this issue.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users