AxisArtist utilizes a different (compared to the vanilla matplotlib)
mechanism for determining tick location etc., so some of the
matplotlibcommands do not work.
Unfortunately, AxisArtist is still not well documented, and things are
often opaque. Below I implemented a method that you can use to control the
nbins. To manually specify  the tick locations you need to use the
FixedLocator.

IHTH,

-JJ


class TaylorDiagram(object):
    ...
    def set_nbins(self, nbins):
        ghelper = self._ax.get_grid_helper() # get grid_helper
        ghelper.grid_finder.grid_locator2.set_params(nbins=nbins) # update
the parameter of the grid_locator2 (2 means 2nd coordinate).
        Helper. invalidate () # invalidate the helper so that new
parameters become effective




On Thu, Feb 21, 2013 at 6:08 PM, patricia <ptramba...@hotmail.com> wrote:

> Dear Jody,
> This is the original code that I am using:
> http://old.nabble.com/Taylor-diagram-(2nd-take)-p33364690.html
> It is a code that plots Taylor diagrams.
> I would like to get ticks every two points in the standard deviation axis
> of
> the Taylor diagrams to avoid overlapping of labels (as I am making a figure
> with several small Taylor Diagrams subplots).
> Thanks!
> Patricia
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/I-cannot-change-the-axis-tick-separation-or-nbins-in-Axis-artist-tp40446p40454.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to