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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users