On 11/27/2011 05:30 PM, Tom Bennett wrote:
> Hi,
> I am new to Matplotlib. I am using matplotlib under ipython. A
> function script generates a figure that has three subplots. The thing is
> that I would like to continue to interact with a specific subplot under
> the interactive prompt through pylab after I run that function. However,
> gca() returns the last subplot which is not what I want.
> The question is if there is any way to tell gca() which Axes is the
> current Axes.
> Thanks,
> Tom
>

If you keep a reference to the Axes when you create it, or if you use 
gca() to return a reference before creating the next one, then you can 
use sca(ax) to make ax the current axes.

Eric

>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to