2010/7/29 Waléria Antunes David <waleriantu...@gmail.com>:
> Hi Benjamim,
>
> I made the changes as bellow and it displays the x-axis values formatted as
> expected, see my current image and my code. But, now i need to change the
> scale and the numbers of decimal places in order to appear on the graph like
> this: 3.0     3.1      3.2      ......           3.4

I think you need:

import matplotlib.ticker
[...]
axes.xaxis.set_major_locator(matplotlib.ticker.MaxNLocator(nbins=4)

maybe with an additional argument steps=[1, 2, 5, 10] as done by AutoLocator.

Your pastebin code has expired, so I don't know how your variables are
named now.

Friedrich

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to