On Fri, Apr 9, 2010 at 12:16 AM, Peter Butterworth <butt...@gmail.com> wrote:
> Hi,
>
> I'm having trouble getting some properties that are easily set :
>
>
> leg=legend(loc=0)
> is there a way to retrieve the legend location ?

leg._loc

I'm not sure why it's given a leading '_' to signal a private
variable, since it's implemented as a property. I'd probably still use
it.

> In a similar vein :
> axis('scaled')
> is there a way to retrieve the "scaled" property ?

Not really, since scaled isn't stored, but is merely a helper for

self.set_aspect('equal', adjustable='box', anchor='C')
self.set_autoscale_on(False)

You can get all of these properties individually:
ax = plt.gca()
ax.get_aspect()
ax.get_adjustable()
ax.get_anchor()
ax.get_autoscale_on()

Ryan

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

------------------------------------------------------------------------------
Download Intel&#174; 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-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to