[Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-13 Thread chris
LaTeX can accept embedded Python code with a python.sty file. This is handy to dynamically generate plots with Matplotlib for a LaTeX slide presentation. I successfully embedded lots of matplotlib plot code into my slides and then had problems with zorder. For some reason zorder seems to mess

[Matplotlib-users] displaying lat/lon in toolbar for Baemap

2008-10-13 Thread Mathew Yeates
Hi Is there a way to display the latitude and longitude of the cursor when displaying a Basemap? Mathew - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based

[Matplotlib-users] how do I get my axis

2008-10-13 Thread Mathew Yeates
Okay, I've gotten this far. I have a Figure and I think I can change the formatting of the values displayed in the toolbar by setting taking the X axis and setting the function format_xdata to something of my own (something that computes lat/lon). Similar idea for the Y axis. So, given my

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread Angus McMorland
Hi Mathew, 2008/10/13 Mathew Yeates [EMAIL PROTECTED] Okay, I've gotten this far. I have a Figure and I think I can change the formatting of the values displayed in the toolbar by setting taking the X axis and setting the function format_xdata to something of my own (something that computes

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread Mathew Yeates
Thanks Angus. I tried this out ... it works once and only once! BTW, The correct thing to do is res=fig.gca() res.fmt_xdata=foo() #instead of format_xdata res.fmt_ydata=foo() although, like I said, it only first for the first event. Somehow res.fmt_xdata is getting set back to None Mathew

[Matplotlib-users] Fwd: how do I get my axis

2008-10-13 Thread Angus McMorland
And forwarded to the list... forgot to hit reply to all. -- Forwarded message -- From: Angus McMorland [EMAIL PROTECTED] Date: 2008/10/13 Subject: Re: [Matplotlib-users] how do I get my axis To: Mathew Yeates [EMAIL PROTECTED] 2008/10/13 Mathew Yeates [EMAIL PROTECTED] Thanks

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread Mathew Yeates
Angus pointed out that I need to do res.fmt_xdata=foo Duh. I was evaluating foo. But this still doesn't work! The default formatting operation is still called. Mathew Mathew Yeates wrote: Thanks Angus. I tried this out ... it works once and only once! BTW, The correct thing to do is

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread John Hunter
On Mon, Oct 13, 2008 at 2:27 PM, Mathew Yeates [EMAIL PROTECTED] wrote: Angus pointed out that I need to do res.fmt_xdata=foo Duh. I was evaluating foo. But this still doesn't work! The default formatting operation is still called. This is the correct usage -- so if it is not working you

[Matplotlib-users] Does anyone have an updated version of SentinelMap?

2008-10-13 Thread Michael Lerner
Hi, I'm trying to plot some data where certain values are marked by a sentinel, as per the Cookbook example: http://www.scipy.org/Cookbook/Matplotlib/Plotting_Images_with_Special_Values However, that code is fairly old, and doesn't work. A version that worked as of ~18 months ago was posted to

Re: [Matplotlib-users] Does anyone have an updated version of SentinelMap?

2008-10-13 Thread Eric Firing
Michael Lerner wrote: Hi, I'm trying to plot some data where certain values are marked by a sentinel, as per the Cookbook example: http://www.scipy.org/Cookbook/Matplotlib/Plotting_Images_with_Special_Values However, that code is fairly old, and doesn't work. A version that worked as

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread Mathew Yeates
The reason it wasn't working is that my function foo didn't have the right signature.fmt_xdata takes 1 argument. I have no idea why I didn't see an exception displayed. It's working now that I have def foo(x) pass Mathew John Hunter wrote: On Mon, Oct 13, 2008 at 2:27 PM, Mathew Yeates

Re: [Matplotlib-users] Calling xlim makes x tick labels format get lost

2008-10-13 Thread Goyo
El dom, 12-10-2008 a las 13:22 -1000, Eric Firing escribió: Goyo wrote: Hi all, I'm plotting time series and using a custom format for x tick labels because I want to see both date and time. But calling xlim makes the default format return -- only dates or only times, it depends on

Re: [Matplotlib-users] Figures missing from matplotlib documentation?

2008-10-13 Thread Zane Selvans
On Oct 9, 2008, at 12:55 PM, John Hunter wrote: On Thu, Oct 9, 2008 at 2:40 PM, Zane Selvans [EMAIL PROTECTED] wrote: I too often feel like I'm just hacking my way around in Matplotlib, without understanding how it is actually supposed to be used (i.e. how it was designed to work). Is

Re: [Matplotlib-users] Calling xlim makes x tick labels format get lost

2008-10-13 Thread Eric Firing
Goyo wrote: El dom, 12-10-2008 a las 13:22 -1000, Eric Firing escribió: Goyo wrote: Hi all, I'm plotting time series and using a custom format for x tick labels because I want to see both date and time. But calling xlim makes the default format return -- only dates or only times, it

Re: [Matplotlib-users] Figures missing from matplotlib documentation?

2008-10-13 Thread Eric Firing
Zane Selvans wrote: On Oct 9, 2008, at 12:55 PM, John Hunter wrote: On Thu, Oct 9, 2008 at 2:40 PM, Zane Selvans [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I too often feel like I'm just hacking my way around in Matplotlib, without understanding how it is actually supposed to be