Re: [Matplotlib-users] Noob confusion: Pcolor

2009-11-11 Thread Shrividya Ravi
Thanks for your reply, Giorgio. I had a look at the documentation for pcolor but unfortunately, I can't pick out where I have gone wrong. I have attached my data array as a txt file. In ipython, I use the 'loadtxt' command to load the dataset and then assigned the variables x,y, and z to the

[Matplotlib-users] contourf doesn't like a rectangular grid

2010-03-07 Thread Shrividya Ravi
Hi all, I have been using contourf quite happily with a square number of grid points. e.g. a 20 by 20 grid. I recently decided to do a contourf plot of a 20 by 15 grid (300 points) and I get errors. Unfortunately, I am plotting experimental data so I cannot really tailor the grid size. Here is

Re: [Matplotlib-users] contourf doesn't like a rectangular grid

2010-03-08 Thread Shrividya Ravi
Hi there, I think I made a mistake with putting in a tuple in my first email, but here is the error output from the contourf that I call within a script. I use this script before with a square grid and there is no problem. Anyway, after your email, I played with the script again and I think I have

[Matplotlib-users] Incompatibility with axvspan and legend on a semilog plot

2010-04-28 Thread Shrividya Ravi
Hi all, I am having a problem having both a vspan and a legend in a figure plotted on a semilog axis. A simple code that gives the following error is shown in red: ERROR return self.frozen().__array__() File /usr/lib/pymodules/python2.6/matplotlib/transforms.py, line 1051, in __array__

Re: [Matplotlib-users] colorbar+log+latex

2011-01-25 Thread Shrividya Ravi
Hi there, I too want a log scale on the colorbar for an imshow plot. I have tried the solution proposed by Jae-Joon but I cannot get the ticklabels to show. I have tried to dynamically change the matplotlibrc settings in ipython using mpl.rc('text',usetex=True) - where mpl = matplotlib. When I run

Re: [Matplotlib-users] colorbar+log+latex

2011-01-26 Thread Shrividya Ravi
Hi All, Thanks a bunch for your help! Eric: your suggestion works brilliantly ( I didn't use the interpolation kwarg though because I like the 'smudged' look). Paul: thanks for your suggestions but I get errors when trying to execute * cbar.set_ticks(np.linspace(300,350,6))*. The c.bar.set_ticks