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

2012-10-10 Thread Michael Droettboom
It's a known bug, fixed since 1.1.1. https://github.com/matplotlib/matplotlib/issues/1211 BTW: If you're running the Debian package, how come the version is a release candidate? (1.1.1rc2) Mike On 10/09/2012 04:32 PM, Nikolaus Rath wrote: Hello, For some reason, my matplotlib isn't able

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Michael Droettboom
This is related to using develop mode. I never use that (I use virtualenvs instead), so this doesn't get much testing. This seems to have broken when we started to ship separate versions of dateutil for python2 and python3. setuptools doesn't seem to like the fact that we rename dateutil_py2

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

2012-10-10 Thread Benjamin Root
On Wed, Oct 10, 2012 at 8:23 AM, Michael Droettboom md...@stsci.edu wrote: It's a known bug, fixed since 1.1.1. https://github.com/matplotlib/matplotlib/issues/1211 BTW: If you're running the Debian package, how come the version is a release candidate? (1.1.1rc2) Mike Mike, We didn't

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Michael Droettboom
I think this stack overflow question [1] sort of sums up the problem -- setuptools develop is kind of a hack and only really works if the source structure matches the installed structure. That used to be true of matplotlib, but installing different packages based on the Python version breaks

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

2012-10-10 Thread Anand Sivaramakrishnan
Thanks for the many useful responses - I eventuallyfound by experiment that imshow( interpolation='nearest' works *if* I write a png file. Saving a pdf file mushed up my crisp pixel boundaries. However, saving as png, then using (mac osx) preview to convert to pdf worked fine. Go figure()!

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Michael Droettboom
I filed an issue for this. We should try to get the fix into 1.2.x https://github.com/matplotlib/matplotlib/issues/1354 Mike On 10/10/2012 09:00 AM, Michael Droettboom wrote: I think this stack overflow question [1] sort of sums up the problem -- setuptools develop is kind of a hack and only

Re: [Matplotlib-users] Format date tick labels

2012-10-10 Thread Benjamin Root
On Mon, Oct 8, 2012 at 12:06 PM, Jianbao Tao jianbao@gmail.com wrote: Thanks, Ben. Your fix works when the view interval is greater than 1 minute, but not so much when the view interval is less than one minute. BTW, what I am trying to accomplish is to use matplotlib to plot

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

2012-10-10 Thread Nikolaus Rath
Benjamin Root ben.root-grryuj3d...@public.gmane.org writes: 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__

[Matplotlib-users] data grid problem

2012-10-10 Thread rand0m
Hello, I'm new to matplotlib and I hope you can help me out with my question. When drawing for example a Rectangle() I have to specify it like the following: rect = Rectangle((1, 3), 2, 20, facecolor=#aa) Where 2 is the length and 20 is the height. (1,3) is for xy. Imagine a coordination

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

2012-10-10 Thread Nikolaus Rath
Michael Droettboom mdroe-pfb3ainihtehxe+lvdl...@public.gmane.org writes: For some reason, my matplotlib isn't able to print percent signs ('%') properly: It's a known bug, fixed since 1.1.1. https://github.com/matplotlib/matplotlib/issues/1211 Indeed. Luckily 1.2.0~rc2-1 is in experimental,

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

2012-10-10 Thread Michael Droettboom
On 10/10/2012 09:45 AM, Nikolaus Rath wrote: Michael Droettboom mdroe-pfb3ainihtehxe+lvdl...@public.gmane.org writes: For some reason, my matplotlib isn't able to print percent signs ('%') properly: It's a known bug, fixed since 1.1.1. https://github.com/matplotlib/matplotlib/issues/1211

Re: [Matplotlib-users] data grid problem

2012-10-10 Thread Benjamin Root
On Wed, Oct 10, 2012 at 9:40 AM, rand0m ran...@0x06.net wrote: Hello, I'm new to matplotlib and I hope you can help me out with my question. When drawing for example a Rectangle() I have to specify it like the following: rect = Rectangle((1, 3), 2, 20, facecolor=#aa) Where 2 is the

Re: [Matplotlib-users] Format date tick labels

2012-10-10 Thread Mark Lawrence
On 10/10/2012 14:29, Benjamin Root wrote: I know of a few people who have difficulties with matplotlib's datetime handling, but they are usually operating on the scale of milliseconds or less (lightning data), in which case, one is already at the edge of the resolution handled by python's

Re: [Matplotlib-users] Format date tick labels

2012-10-10 Thread Mark Lawrence
On 10/10/2012 15:41, Mark Lawrence wrote: On 10/10/2012 14:29, Benjamin Root wrote: I know of a few people who have difficulties with matplotlib's datetime handling, but they are usually operating on the scale of milliseconds or less (lightning data), in which case, one is already at the edge

Re: [Matplotlib-users] Format date tick labels

2012-10-10 Thread Benjamin Root
On Wed, Oct 10, 2012 at 10:55 AM, Mark Lawrence breamore...@yahoo.co.ukwrote: On 10/10/2012 15:41, Mark Lawrence wrote: On 10/10/2012 14:29, Benjamin Root wrote: I know of a few people who have difficulties with matplotlib's datetime handling, but they are usually operating on the scale

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Gökhan Sever
setupegg.py develop is the easiest way for me to install the latest mpl and also ipython from the github repos. I see that your suggested symlink fix also resolves this issue. Thanks Mike for looking into this quickly. On Wed, Oct 10, 2012 at 7:09 AM, Michael Droettboom md...@stsci.edu wrote:

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

2012-10-10 Thread klo uo
Hi Rich, On Tue, Oct 9, 2012 at 10:38 PM, Rich Signell wrote: It look like there was a wmsimage method in Basemap that was folded into a arcgisimage method? IIRC, it was named like that in the test cycle, then renamed correctly to arcgis I made my first step in adding WMS method:

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

2012-10-10 Thread Jeff Whitaker
On 10/10/12 2:38 PM, klo uo wrote: Hi Rich, On Tue, Oct 9, 2012 at 10:38 PM, Rich Signell wrote: It look like there was a wmsimage method in Basemap that was folded into a arcgisimage method? IIRC, it was named like that in the test cycle, then renamed correctly to arcgis I made my

Re: [Matplotlib-users] drawing secondary x axis for months: a better way?

2012-10-10 Thread Paul Tremblay
A bit of searching gave me this much simpler solution: import matplotlib import matplotlib.pyplot as plt import numpy as np import datetime import matplotlib.dates as m_dates import matplotlib.ticker as ticker def

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

2012-10-10 Thread klo uo
On Wed, Oct 10, 2012 at 11:28 PM, Jeff Whitaker wrote: I wonder whether it would be better to use OWSlib (http://geopython.github.com/OWSLib/) for OGS/WMS support, instead of trying to roll our own solution. It only has ElementTree as a dependency. Klo - would you be interested in

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

2012-10-10 Thread Jeff Whitaker
On 10/10/12 7:16 PM, klo uo wrote: On Wed, Oct 10, 2012 at 11:28 PM, Jeff Whitaker wrote: I wonder whether it would be better to use OWSlib (http://geopython.github.com/OWSLib/) for OGS/WMS support, instead of trying to roll our own solution. It only has ElementTree as a dependency. Klo -

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

2012-10-10 Thread klo uo
On Thu, Oct 11, 2012 at 3:31 AM, Jeff Whitaker wrote: But warpimage assumes the image is of global extent - perhaps we could make warpimage smart enough to get the georeferencing from the wms instance but that would require some work. There must be some way to let the WMS server do the image

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

2012-10-10 Thread klo uo
On Thu, Oct 11, 2012 at 4:40 AM, klo uo wrote: Not sure, but as in example posted, 'img' is HTTPmessage pointing to server, and I can't see how we can deduce georeference as 'wms' object is named arbitrary, it could have been named to anything: What am I talking about? We can deduce from

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

2012-10-10 Thread klo uo
I guess that's it? warpimage() as it is now, checks if passed image is url, so we can add additional check if image is url, with urlparse to deduce image coordinates and projection if present, then overlay it over already created Basemap object.