Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-24 Thread patricia
Thanks a lot JJ, this worked perfectly! Patricia -- View this message in context: http://matplotlib.1069221.n5.nabble.com/I-cannot-change-the-axis-tick-separation-or-nbins-in-Axis-artist-tp40446p40467.html Sent from the matplotlib - users mailing list archive at Nabble.com.

Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-21 Thread patricia
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

Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-21 Thread Paul Hobson
On Thu, Feb 21, 2013 at 1:08 AM, 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

Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-21 Thread Jae-Joon Lee
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

Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-20 Thread Jody Klymak
Does xticks not do what you want? Maybe I am misundertsanding because you are trying to do something with a raw Artist... http://matplotlib.org/api/pyplot_api.html?highlight=xticks#matplotlib.pyplot.xticks Cheers, Jody On Feb 20, 2013, at 10:31 AM, patricia ptramba...@hotmail.com wrote:

Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-20 Thread patricia
Dear Jody, No, I tried it also... ax.axis[left].xticks() results in error: 'AxisArtist' object has no attribute 'xticks' ax.xticks() results in error: 'Floating AxesHostAxesSubplot' object has no attribute 'xticks' plt.xticks() or just xticks() does not produce any change. Any idea?

Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-20 Thread Jody Klymak
Perhaps you could include some code that illustrates what you are trying to do? I'm confused if you are trying to do something simple and are just going about it the wrong way, or if you are doing something hard. If I do ax=axes() ax.plot(arange(1.,10.)) xticks(range(0,10,2))