Well, to be clear.
How to get tick labels at the very end of the axes?
If the x-axis goes from is 0, 1 the axis ticks will be at 0.2,0.4,0.6 and
0.8 as you can here: see
http://matplotlib.sourceforge.net/examples/mplot3d/2dcollections3d_demo.html
How do I additionally get labels at 0 and 1?
Hope this triggers a few responses. :D Thanks in advance.
Martin
On Sun, Mar 21, 2010 at 12:43 PM, Martin Bothe
<martin.bo...@googlemail.com>wrote:
> Hello everyone,
>
> got a question concerning the right tick format in mplot3d.
> Using the example from
> http://matplotlib.sourceforge.net/plot_directive/mpl_examples/mplot3d/lines3d_demo.py
> with
> python 2.6.4 and mpl Version: 0.99.0-1ubuntu1, I get a nice 3dplot, but the
> ticks are not reaching the corners of the z-axis.
> But if I ask him for the ticklabels and locations, on the terminal he gives
> out what I would like to have: 9 labels from -2 to 2.
>
> In [3]: ax.w_zaxis.get_ticklabels
> ------> ax.w_zaxis.get_ticklabels()
> Out[3]: <a list of 9 Text major ticklabel objects>
>
> In [4]: ax.w_zaxis.get_ticklocs
> ------> ax.w_zaxis.get_ticklocs()
> Out[4]: array([-2. , -1.5, -1. , -0.5, 0. , 0.5, 1. , 1.5, 2. ])
>
> However, in the figure (attached as png) the labels are only reaching from
> -1.5 to 1.5, meaning 7 tick labels.
> How to fix this? What is wrong here?
> Thanks for your help.
>
> Greetings from Berlin
> Martin
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users