Simson L. Garfinkel's Treo 700p wrote:
> Yep. I would like to pass in a list of lists, where each sublist (or array) 
> describes a boxplot to plot.

This is now present in svn.

> 
> Meanwhile, i've been having fun with histograms. The Y axis labels are a 
> pain. I think defaulting to scientific notation, as matplotlib frequently 
> does, is annoying...

I think you are not the first who has been annoyed by this, so I added a 
couple of methods to the ScalarFormatter class, which is used by default 
for labelling ticks with linear axes.

If you have a plot with linear axes and you want to turn off scientific 
notation on the x-axis, for example, this will do it:

gca().xaxis.major.formatter.set_scientific(False)

(If plotting interactively with ipython you will need to force a redraw. 
The draw() command is one way to do it.)

If you want to use scientific notation but with a different threshold, 
you can do:

gca().xaxis.major.formatter.set_powerlimits((-2,3))

to change the thresholds from the default, 1e-3 and 1e4, to 1e-2 and 1e3.

It may make sense to have a simpler interface to this--especially simply 
turning scientific notation on or off on one or both axes--at the Axes 
class level and the pylab level, but I thought I would take it a step at 
a time.  I am open to suggestions as to method/function name and 
signature.  The matplotlibrc interface could even be used if people 
really want to be able to make no-scientific-notation their default, but 
I am wary of dumping more and more knobs into matplotlibrc.

Eric

-------------------------------------------------------------------------
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

Reply via email to