Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Suresh Pillai
This is correct, and is standard for almost all publications I know. You are allowed to publish the article on your own personal website (provided you use the published version or explicitly list the copyrights), but nowhere else. Cheers, Suresh On Wed, 25 Apr 2007, Fernando Perez wrote: > We

Re: [Matplotlib-users] Program hangs when I call pylab.show()

2007-04-09 Thread Suresh Pillai
I get this behaviour as well, but only on first usage of show(). However, after that there is no problem. The default is to start off with interactive mode off, but the first usage of show() turns it on. So I would guess that the problem is that with interactive mode turned off, the figure win

Re: [Matplotlib-users] Problem with matplotlib.colors.LogNorm

2007-04-02 Thread Suresh Pillai
ast one problem) is, and I will try to get > it fixed by tomorrow. In the meantime, I think you will get the results you > want by simply converting your arrays to floating point: > > matshow(matrix.astype(float), ...) > > Eric > > Suresh Pillai wrote: > > So I

[Matplotlib-users] Problem with matplotlib.colors.LogNorm

2007-04-02 Thread Suresh Pillai
So I been using the log scale provided by matplotlib.colors.LogNorm, but have been seing bizarre behaviour. Basically, high values are not displayed properly. I give simple examples below with just two possible values in the matrix, but all the same issues arise with more varied values. Firs

[Matplotlib-users] tick locations in new matshow()

2007-03-28 Thread Suresh Pillai
The new matshow() seems to like ticks every 4 units (or multiples of 4 for larger scales) rather than the normal, more desirable every 5 units. Compare: import pylab matrix = pylab.rand(30,30) pylab.matshow(matrix) pylab.show() with import pylab matrix = pylab.rand(30,30) pylab.imshow(matrix)

[Matplotlib-users] colorbar() with new matshow()

2007-03-28 Thread Suresh Pillai
Continuing from a previous thread re the new matshow(), adding a colorbar() causes the matrix to shrink relative to the colorbar. Furthermore this colorbar overlaps with the figure title. For those like me who need a colorbar as a legend and/or who do not want the matrix visualisation in a new

Re: [Matplotlib-users] matshow?

2007-03-26 Thread Suresh Pillai
Thanks again Eric for the updated matshow(). I apologise for repeating: Since it has been decided (has it?) that matshow will retain the feature that a new figure is created (with aspect ratio matching the matrix), then if one adds a colorbar (a typical thing to do), the matrix height is small

Re: [Matplotlib-users] matshow?

2007-03-18 Thread Suresh Pillai
On Sun, 18 Mar 2007, Eric Firing wrote: > One of the matshow anomalies is that it is a pylab function only instead > of a wrapper for an Axes method, so I made a new Axes.matshow(), and a > temporary matshow1() pylab function that calls it. Differences between > matshow() and matshow1(): > > 1) T

Re: [Matplotlib-users] Bug in aspect ratio for matshow() when using colorbar()

2007-03-09 Thread Suresh Pillai
fore to get the output looking like matshow() Cheers, Suresh On Thu, 8 Mar 2007, Suresh Pillai wrote: > If one inserts a colorbar after using matshow, then the matrix plot's aspect > ratio is incorrect altered. Here are 2 cases to compare > > import pylab > matrix = pylab.

Re: [Matplotlib-users] [mailinglist] Re: Nonlinear colormap ?

2007-03-09 Thread Suresh Pillai
I discovered the same problem, so I went looking and found the mailing list properly archived at nabble.com: http://www.nabble.com/Creating-a-non-linear-colormap.-t3362841.html Cheers, Suresh On Fri, 9 Mar 2007, Ken McIvor wrote: > On Mar 9, 2007, at 5:11 AM, Uwe Schmitt wrote: >> >> Thanks, b

[Matplotlib-users] Bug in aspect ratio for matshow() when using colorbar()

2007-03-08 Thread Suresh Pillai
If one inserts a colorbar after using matshow, then the matrix plot's aspect ratio is incorrect altered. Here are 2 cases to compare import pylab matrix = pylab.rand(30,30) 1) matshow() before colorbar() pylab.matshow(matrix) pylab.colorbar() pylab.show() The matrix plot is squished in the x-

Re: [Matplotlib-users] imshow y axis question

2007-03-02 Thread Suresh Pillai
On Thu, 1 Mar 2007, Eric Firing wrote: > I agree, and this is a problem with spy also. If I remember, I will fix it. > It is only a minor annoyance, so it is low priority, though. > > There is a difference in the way the axes are labeled between spy and > matshow, and I would like to change m

Re: [Matplotlib-users] imshow y axis question

2007-03-01 Thread Suresh Pillai
ng this without manually setting the ticks and labels (ironically using forced *.5 ticks)? I guess I should code and submit it myself. :) Thanks very much, Suresh On Thu, 1 Mar 2007, Eric Firing wrote: > Suresh Pillai wrote: >> I am using imshow to visualise matrices. When I use al

[Matplotlib-users] imshow y axis question

2007-03-01 Thread Suresh Pillai
I am using imshow to visualise matrices. When I use align='upper' (default), the origin is still displayed in the lower left corner on the axes - i.e. the y-axis is wrong. The data is plotted correctly with the origin in the upper left corner. Seems to be a bug? Cheers, Suresh -

Re: [Matplotlib-users] Problem when Rotating xlabels with subplots

2007-02-28 Thread Suresh Pillai
import pylab data1=[1,2,3,4,5,6,7] data2=[8,9,10,11,12,13,14] dates=['01','02','03','04','05','06','07'] pylab.subplot(211) pylab.plot(data1, label='Score 2005') pylab.plot(data2, label='Num 2006') pylab.setp(pylab.gca(), xticklabels=[]) pylab.ylabel('Score 2') pylab.title('Historical Statistics'

Re: [Matplotlib-users] Problem when Rotating xlabels with subplots

2007-02-28 Thread Suresh Pillai
n an empty plot of subplot 212 (no data, no legend, but yes for ticks and axis titles). Thanks, Suresh On Wed, 28 Feb 2007, Suresh Pillai wrote: > I posed the question below back in Nov, but never received a response. > Thought I'd try again, as I really do need this kind of plot

[Matplotlib-users] Problem when Rotating xlabels with subplots

2007-02-28 Thread Suresh Pillai
I posed the question below back in Nov, but never received a response. Thought I'd try again, as I really do need this kind of plot, and I don't want to leave the world of matplotlib, which has improved my efficiency greatly in plotting. Thanks, Suresh -- Forwarded message --

[Matplotlib-users] Problem when Rotating xlabels with subplots

2006-11-06 Thread Suresh Pillai
I have a figure with two subplots as below. However, everything breaks when I try to rotate the x-labels as indicated in the two commented out lines. I obtain a small empty plot embedded in a large empty plot with no x-labels and no legend either. I got this code from the tutorial; it works

Re: [Matplotlib-users] Error with bar charts

2006-10-27 Thread Suresh Pillai
Thanks for the support. I uninstalled numarray, and then compiled/installed most recent numpy and matplotlib from the tarballs. And I am happy to announce I can now perform the mundane task of plotting barcharts and histograms. :) Thanks again everyone, Suresh On Thu, 26 Oct 2006, Eric Firing

Re: [Matplotlib-users] Error with bar charts

2006-10-27 Thread Suresh Pillai
Yes, both are mandriva packages: python-matplotlib-0.87.4-2mdv2007.0 python-numarray-1.5.2-1mdv2007.0 Given there isnt a python-numpy package for x64-64 right now (there is a devel one, so not sure why no main package), I will go ahead and try to build from scratch. Thanks, Suresh On Thu, 2

Re: [Matplotlib-users] Error with bar charts

2006-10-26 Thread Suresh Pillai
And yes my numerix is set to numarray as default: $ python barchart_demo.py --verbose-helpful ... numerix numarray 1.5.2 ... Thanks, Suresh On Thu, 26 Oct 2006, Suresh Pillai wrote: > The exception I posted is being thrown by numarray, so it is definitely > being used. > > As

Re: [Matplotlib-users] Error with bar charts

2006-10-26 Thread Suresh Pillai
The exception I posted is being thrown by numarray, so it is definitely being used. As I stated, it was thrown while executing one of the examples provided with the matplotlib package: #!/usr/bin/env python # barchart_demo.py # a bar plot with errorbars from pylab import * N = 5 menMeans = (20