Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Sterling Smith
Sudheer, Although the documentation is not consistent with the following (as of v1.0.1), the X and Y arguments to contourf can be 1D arrays. Consider: >>> from pylab import * >>> x=range(100) >>> y=range(20) >>> xx,yy=meshgrid(x,y) >>> z=xx**2+yy**2 >>> contourf(x,y,z) -Sterling On Jul 12, 20

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Sudheer Joseph
Finally I got installed by following link below http://osgeo-org.1560.x6.nabble.com/Iris-draft-installer-td5061171.html   *** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of Indi

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Sudheer Joseph
Hi, I did not understand 1d mentioned by you? for a diagram like this 2D is must as it need longitude /latitude and also time with best regards, Sudheer From: Andrew Dawson To: Phil Elson >Cc: Sudheer Joseph ; >"matplotlib-users@lists.sourceforge.net" > >Sent: Friday, 12 July 2013 1:28 PM

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Sudheer Joseph
Thank you Phil,    Which repository I need to add to source list which allow me to install iris with apt-get install python-iris. I do not have it in my default lists. with best regards, Sudheer *** Sudheer Joseph

Re: [Matplotlib-users] Install problems, OSX 10.6.8, Python 3.3.1

2013-07-12 Thread p.maxted
Also tried building from source with python2.7 - same problem: I deleted the old build/source directory, re-extracted the source from the tar file and tried... [lap3:~/matplotlib-1.2.1] pflm% sudo python2.7 setup.py install Build runs ok except for some warnings like ... warning: #warning "Usi

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Sterling Smith
Skip, I am not at all familiar with dates in matplotlib, but what does plt.xlim() yield? Or are the limits not updated before calling the tick formatter? -Sterling On Jul 12, 2013, at 8:49AM, Skip Montanaro wrote: > Let me return to my FuncFormatter usage. As I indicated in an earlier > post

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
> I am not at all familiar with dates in matplotlib, but what does plt.xlim() > yield? Or are the limits not updated before calling the tick formatter? Bingo! I changed "plt" to "pylab" and now I have access to the x range of the current viewport. Thanks, Skip ---

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
Let me return to my FuncFormatter usage. As I indicated in an earlier post, I made a single format decision based on the x range of the entire data set. The decision code was straightforward: x_delta = x_range[1] - x_range[0] if x_delta > int(1.5 * 365) * ONE_DAY: xfmt = "%Y-%m-%

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
On Fri, Jul 12, 2013 at 8:47 AM, Skip Montanaro wrote: > Is there some way to get the x axis to display > fractions of a second? There is no strftime format character > corresponding to that. (I proposed one on python-dev several years > ago, but I don't think it was ever adopted.) My memory fa

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
> You're suggesting that I shouldn't have to do anything with formatters > and locators if my X values are datetime objects? Maybe I should > simply scrub any locator/formatter initialization altogether. Did that. Works just as before with my custom FuncFormatter, and with my explicit AutoDateFo

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
> Are you definately passing through datetime objects, or are you passing > through the datetime "ordinals" / Julian time? Definitely datetime objects: if xtime: min_x = datetime.datetime(, 12, 31, 23, 59, 59) max_x = datetime.datetime(1970, 1, 1, 0, 0, 0) def pars

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Tim Michelsen
Am 12.07.2013 09:51, schrieb Phil Elson: > for instance last week we added a PPA so that with the necessary repos > added you would be able to "apt-get install python-iris" on an Ubuntu > machine Could you please point me to this PPA? Where can I find the link? ---

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Andrew Dawson
As long as you use contour or contourf and your coordinates are 1d you should be able to do this no problem, just like Phil said. However, there is a bug that will prevent you from using pcolormesh or pcolor unfortunately. Andrew On 12 July 2013 08:51, Phil Elson wrote: > The balance of time t

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Phil Elson
This surprises me as the AutoDateFormatter automatically kicks in once you pass through some datetime objects, and the AutoDateFormatter & Locator do the right thing when zooming (the format changes depending on the temporal resolution). For example, the following code behaves nicely when I zoom in

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Phil Elson
The balance of time to install vs time to re-implement a feature is only something you can decide, but i suspect it is worth your while getting iris installed (I would say that as an iris developer though). The installation process is only going to get easier over time, for instance last week we ad