[Matplotlib-users] axes properties

Amit Yaron amit at phpandmore.net
Tue Mar 14 11:43:06 EDT 2017


Try using the methods 'set_xticks', 'set_yticks' and 'set_zticks' of the 
Axes object.
Each of them accepts a list of values that will be displayed.
For example:
   ax.set_xticks(np.r_[-10:10:3j])

Will display ticks for values -10,0 and 10 only.


On 11/03/17 19:54, Jean-Philippe GRIVET wrote:
> Hello,
>
> I have two questions related to axes in a 3-D plot.
>
> 1. I often find that ticks are too close together so that labels
> overlap.  How
> can I change the number of ticks or the step length ?
>
> 2. The default axes lay-out has x increasing from left to right and y
> increasing
> from front to back. My finction decrease quickly with increasing y, so
> that the
> corresponding parts of the surface are hidden. Therefore, I would like
> to have
> y values increasing from back to front. I understand that yaxis_invert
> can do it
> but how is it used ?
>
> Thank you for your help
> Jean-Philippe
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>




More information about the Matplotlib-users mailing list