From: Ryan M. <rm...@gm...> - 2010-04-09 14:34:17
|
On Fri, Apr 9, 2010 at 12:16 AM, Peter Butterworth <bu...@gm...> 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 |