Jae-Joon Lee wrote:

> 
> By the way, given that we now have "suplots" in the pyplot namespace,
> can we have sca also?

Done in svn 8205.

> For example,
> 
>  # Two subplots, the axes array is 1-d
>  f, axarr = subplots(2, sharex=True)
> 
>  sca(axarr[0])
>  plot(x, y)
>  title('Sharing X axis')
> 
>  sca(axarr[1])
>  scatter(x, y)
> 
> Or, how about we make axes an context manager.

This would require dropping support for Python 2.4.

Eric

> 
>  # Two subplots, the axes array is 1-d
>  f, axarr = subplots(2, sharex=True)
> 
>  with axarr[0]:
>    plot(x, y)
>    title('Sharing X axis')
> 
>  with axarr[1]:
>    scatter(x, y)
> 
> This may not very useful in the interactive mode, but may make a
> script (written in pylab mode) more readable.
> 
> Regards,
> 
> -JJ

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to