From: Darren D. <dd...@co...> - 2006-11-24 20:43:39
|
On Friday 24 November 2006 3:34 pm, Pierre GM wrote: > On Friday 24 November 2006 15:14, Darren Dale wrote: > > Or, you can change the formatter of your yaxis to OldScalarFormatter, > > which renders the scientific notation in each tick label, rather than at > > the top of the axis. > > Thinking about it: is there a way to grab this scientific notation ? The > idea would be to get the corresponding object as a string, and update the > ylabel with it. Yes, the scientific notation is a matplotlib text object, which you can grab like this: plot([0,1e10]) a=gca() t=a.yaxis.get_offset_text() and then you can get the string: s=t.get_text() Darren |