Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-09 Thread Eric Firing
On 2012/10/08 6:21 PM, Jody Klymak wrote: Hi Eric, Not sure if this is exactly what Jinbao is referring to, but: ax=gca() X = randn(300,300) pcolor(X) ax.set_yscale('log') ylim(1,100) Brings my computer to a standstill for over a minute. Removing the set_yscale command speeds things

[Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-09 Thread Anand Sivaramakrishnan
I ask having trouble getting imshow to plot e.g. a detector image showing pixels as little rectangular or square uniform color blocks - imshow seems to want to interpolate or smooth the image. Using imshow(nearest) still produces a 'soft' image. I have solved this problem earlier using

Re: [Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-09 Thread Warren Weckesser
On Tue, Oct 9, 2012 at 10:11 AM, Anand Sivaramakrishnan an...@stsci.eduwrote: I ask having trouble getting imshow to plot e.g. a detector image showing pixels as little rectangular or square uniform color blocks - imshow seems to want to interpolate or smooth the image. Using imshow(nearest)

Re: [Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-09 Thread Pierre Haessig
Hi, Le 09/10/2012 16:37, Warren Weckesser a écrit : That's strange. `imshow(img, interpolation='nearest')` works for me. I'm not sure I understand well the subtle difference between 'nearest' and 'none' interpolations, but I found in this commit

[Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Nikolaus Rath
Hello, For some reason, my matplotlib isn't able to print percent signs ('%') properly: [1] inspiron:~/tmp# cat mplbug.py import matplotlib import matplotlib.pyplot as plt import numpy as np print matplotlib.__version__ plt.plot(np.arange(10), np.arange(10)**2) plt.xlabel('Percent [%]')

[Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-09 Thread Rich Signell
Matplotlib folks, Probably the two most common web map services are the OGC-standard WMS service and ESRI's non-standard custom REST service. I was looking for how to do WMS request in basemap and found testarcgisimage.py which uses the arcgisimage method. It look like there was a wmsimage

Re: [Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Daπid
On Windows it works just fine. Just a wild guess, can you try to make it a raw string? plt.xlabel(r'Percent [%]') On Tue, Oct 9, 2012 at 10:45 PM, Francesco Montesano franz.berges...@gmail.com wrote: Hi 2012/10/9 Nikolaus Rath nikol...@rath.org Hello, For some reason, my matplotlib isn't

Re: [Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Damon McDougall
On Tue, Oct 9, 2012 at 10:32 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, For some reason, my matplotlib isn't able to print percent signs ('%') properly: [1] inspiron:~/tmp# cat mplbug.py import matplotlib import matplotlib.pyplot as plt import numpy as np print

Re: [Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Damon McDougall
On Tue, Oct 9, 2012 at 10:56 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Tue, Oct 9, 2012 at 10:32 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, For some reason, my matplotlib isn't able to print percent signs ('%') properly: [1] inspiron:~/tmp# cat mplbug.py import

Re: [Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Nikolaus Rath
Damon McDougall damon.mcdougall-re5jqeeqqe8avxtiumw...@public.gmane.org writes: On Tue, Oct 9, 2012 at 10:56 PM, Damon McDougall damon.mcdougall-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: On Tue, Oct 9, 2012 at 10:32 PM, Nikolaus Rath nikolaus-bth8mxji...@public.gmane.org wrote: Hello,

[Matplotlib-users] Pylab import error due to dateutil

2012-10-09 Thread Gökhan Sever
Hello, With a fresh git clone git://github.com/matplotlib/matplotlib.git sudo python setupegg.py develop Starting ipython --pylab I get this error: .../matplotlib/lib/matplotlib/dates.py in module() 120 import matplotlib.ticker as ticker 121 -- 122 from dateutil.rrule import rrule, MO,

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-09 Thread Jody Klymak
Hi Eric, The pcolormesh docstring notes that it is much faster than pcolor; the pcolor docstring probably should refer people to pcolormesh, since matlab users are likely to go straight to pcolor without realizing that they should be using pcolormesh. I'd agree with this. pcolormesh is

Re: [Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Benjamin Root
On Tuesday, October 9, 2012, Nikolaus Rath wrote: Damon McDougall damon.mcdougall-re5jqeeqqe8avxtiumw...@public.gmane.orgjavascript:; writes: On Tue, Oct 9, 2012 at 10:56 PM, Damon McDougall damon.mcdougall-re5jqeeqqe8avxtiumw...@public.gmane.org javascript:; wrote: On Tue, Oct 9, 2012

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-09 Thread Mike Kaufman
On 10/9/12 10:03 PM, Jody Klymak wrote: Hi Eric, The pcolormesh docstring notes that it is much faster than pcolor; the pcolor docstring probably should refer people to pcolormesh, since matlab users are likely to go straight to pcolor without realizing that they should be using

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-09 Thread Eric Firing
On 2012/10/09 4:46 PM, Mike Kaufman wrote: On 10/9/12 10:03 PM, Jody Klymak wrote: Hi Eric, The pcolormesh docstring notes that it is much faster than pcolor; the pcolor docstring probably should refer people to pcolormesh, since matlab users are likely to go straight to pcolor without