On Tue, Feb 8, 2011 at 8:27 AM, Massimo Di Stefano <massimodisa...@gmail.com
> wrote:

> Hi Benjamin,
>
> have you reied the mat file ?
>
> i treid using  a simple python array in a 2d plot  and i'm having the same
> behavioure
> the x,y coordinates are displayed ok when the mouse roll over the graph
> but they are wrong in the axis labels.
>
>
>
Massimo,

Perhaps you missed my previous email, so I will explain what I have found so
far.

First, in the 3d plots, the axes labels appear "wrong" because the offset
label is missing.  Offset labeling for 3d plots is a new feature that hasn't
been released yet.  However, if you do a pcolor() of the data on a 2D plot,
you will see similar axes labels, but with the addition of the offset labels
(the -7.025e1 and +4.259e1 in the attached plot).  This means that all the
labels should have that offset added to it to get the actual axis value.
This is a way to save space.  The reason for the offset labels to occur in
the first place is that the range of axis values is so small, that it would
take too much space to label each tick to the appropriate precision.

Therefore, in order to display your plot sufficiently, you will need to take
control of the tickers and the tick formatters.

The API documentation can be found here:
http://matplotlib.sourceforge.net/api/ticker_api.html

There are a couple of examples of how to use tickers here:
http://matplotlib.sourceforge.net/examples/pylab_examples/custom_ticker1.html
http://matplotlib.sourceforge.net/examples/pylab_examples/centered_ticklabels.html

There are others, but that's what I noticed from a quick look at
http://matplotlib.sourceforge.net/examples/index.html

I hope this helps!

Ben Root
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to