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

2013-02-20 Thread patricia
Hi, I am working on a plot that requires AxisArtist and I cannot set the tick separation (or nbins) that I want to avoid overlapping of ticklabels. I read http://www.ce.mu.edu.tr/sharedoc/python-matplotlib-doc-1.0.1/html/mpl_toolkits/axes_grid/users/axisartist.html#gridhelper, where they

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] cross correlation

2013-02-20 Thread Sudheer Joseph
Thank you  very much Smith and Paul,                                           I was away from office due to a medical situation. So could not respond and thank you regarding the help. I have got the results now and the tips from both of you were extremely useful. I am facing an issue with the

[Matplotlib-users] PGF/Tikz backend and Rasterize

2013-02-20 Thread Bernard Willers
I'm using the recently added PGF/Tikz support to save figures as .pgf commands to include in a Latex document (I love this new feature!). The final rendered figures look great after running through pdflatex, but occasionally it's impractical to use pure vector drawing instructions. For example,

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))

Re: [Matplotlib-users] Multiple XY plots

2013-02-20 Thread ChaoYue
Hi, could you use a loop to solve it? arr1list = [np.arange(10) + i for i in range(10)] arr2list = [np.arange(10) -i for i in range(10)] for arr1,arr2 in zip(arr1list,arr2list): plot(arr1,arr2) you can use a more object oriented way: fig = plt.figure() ax = fig.add_subplot() for arr1,arr2