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] 
>> > 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 there an
>>> architectural overview floating around somewhere that I'm not aware of?
>>
>> Check out http://matplotlib.sourceforge.net/doc/html/users/artists.html
> 
> That's just what I was looking for.
> 
> However, unfortunately there appears to be some problem with the 
> generation of the figures which are supposed to be embedded within that 
> documentation - they're all appearing as nothing but blank white spaces, 
> both in Firefox 3.0.3 on OS X 10.5.5, and when I download the files and 
> view them with other programs.  Do other people see this problem?

Yes, something is broken.  I don't know how to fix it, though.

Eric

> 
> Thanks again,
> Zane
> 
> --
> Zane Selvans
> Amateur Earthling
> [EMAIL PROTECTED] 
> 303/815-6866
> http://zaneselvans.org
> PGP Key: 55E0815F
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> 
> 
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 depends on the
>>> displayed interval.
>>>
>>> I can get my preferred format back by calling set_major_formatter again,
>>> but this is inconvenient for interactive use.
>>>
>>> I wonder if there is a better way for changing x limits while keeping
>>> tick labels format unchanged.
>>>
>>> I'm using matplotlib 0.98.3
>>>
>>> Thanks
>>>
>>> Goyo
>>>
>>>
>>> Sample code -- you need a combination of python shell and matplotlib GUI
>>> which allows for interactive use in order to get this working as
>>> expected:
>>>
>>> 
>>>
>>> from matplotlib import pyplot
>>> from matplotlib import dates
>>> from datetime import datetime, timedelta
>>> from numpy import random
>>>
>>> pyplot.ion()
>>>
>>> # create data
>>> dstart = datetime(2008, 1, 1, 0, 0)
>>> dend = datetime(2008, 1, 5, 23, 50)
>>> delta = timedelta(minutes=10)
>>> x = dates.drange(dstart, dend, delta)
>>> y = random.random_sample(len(x))
>>>
>>> # plot data
>>> pyplot.plot(x, y)
>>>
>>> # format x tick labels
>>> axis = pyplot.gca()
>>> fig = pyplot.gcf()
>>> axis.xaxis.set_major_formatter(dates.DateFormatter('%Y-%b-%d %H:%M'))
>>> fig.autofmt_xdate()
>>>
>>> # draw the figure
>>> pyplot.draw()
>>>
>>> --
>>>
>>> Look at the tick labels, they show both date and time even if you zoom
>>> and pan using the GUI.
>>>
>>> Now if I want to look at the second day:
>>>
>>> dstart = datetime(2008, 1, 1, 0, 0)
>>> dend = datetime(2008, 1, 1, 23, 50)
>>> pyplot.xlim(dstart, dend)
>>>
>>> And the format has changed.
>> I don't see this problem using ipython -pylab with mpl from svn on 
>> linux, gtkagg backend.  What version, backend, and platform are you using?
> 
> matplotlib 0.98.3-3ubuntu1~ppa1 from Benjamin Drung's ppa
> () on Ubuntu Hardy.
> 
> It was the standard python shell and TKAgg, but I get the same result
> with ipython -pylab and GTKAgg. Indeed the format change can be
> "documented":
> 
> print axis.xaxis.get_major_formatter()
> pyplot.xlim(dstart, dend)
> print axis.xaxis.get_major_formatter()
> 
> The first print:
> 
> and the second:
> 
> 
> I did some debugging and realized that xaxis.units is None after
> plotting, so xlim triggers a call to xaxis.set_units which sets the
> default formatter (and units, whatever it means).
> 
> If I set my formatter again, xaxis.units is not None anymore but still
> xaxis._update_axisinfo sets the default formatter.
> 
> Anyway I worked around this by writing my own version of xlim which
> first saves the formatter, then sets xlim and sets the saved formatter
> again.
> 
> Goyo
> 

I know some work was done on units support since 0.98.3; given that I am 
not seeing the problem when I try your original example with svn mpl, I 
hope and suspect that this problem has in fact already been solved.

Eric


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 there  
an
architectural overview floating around somewhere that I'm not aware  
of?


Check out http://matplotlib.sourceforge.net/doc/html/users/ 
artists.html


That's just what I was looking for.

However, unfortunately there appears to be some problem with the  
generation of the figures which are supposed to be embedded within  
that documentation - they're all appearing as nothing but blank white  
spaces, both in Firefox 3.0.3 on OS X 10.5.5, and when I download the  
files and view them with other programs.  Do other people see this  
problem?


Thanks again,
Zane

--
Zane Selvans
Amateur Earthling
[EMAIL PROTECTED]
303/815-6866
http://zaneselvans.org
PGP Key: 55E0815F






-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 the
> > displayed interval.
> > 
> > I can get my preferred format back by calling set_major_formatter again,
> > but this is inconvenient for interactive use.
> > 
> > I wonder if there is a better way for changing x limits while keeping
> > tick labels format unchanged.
> > 
> > I'm using matplotlib 0.98.3
> > 
> > Thanks
> > 
> > Goyo
> > 
> > 
> > Sample code -- you need a combination of python shell and matplotlib GUI
> > which allows for interactive use in order to get this working as
> > expected:
> > 
> > 
> > 
> > from matplotlib import pyplot
> > from matplotlib import dates
> > from datetime import datetime, timedelta
> > from numpy import random
> > 
> > pyplot.ion()
> > 
> > # create data
> > dstart = datetime(2008, 1, 1, 0, 0)
> > dend = datetime(2008, 1, 5, 23, 50)
> > delta = timedelta(minutes=10)
> > x = dates.drange(dstart, dend, delta)
> > y = random.random_sample(len(x))
> > 
> > # plot data
> > pyplot.plot(x, y)
> > 
> > # format x tick labels
> > axis = pyplot.gca()
> > fig = pyplot.gcf()
> > axis.xaxis.set_major_formatter(dates.DateFormatter('%Y-%b-%d %H:%M'))
> > fig.autofmt_xdate()
> > 
> > # draw the figure
> > pyplot.draw()
> > 
> > --
> > 
> > Look at the tick labels, they show both date and time even if you zoom
> > and pan using the GUI.
> > 
> > Now if I want to look at the second day:
> > 
> > dstart = datetime(2008, 1, 1, 0, 0)
> > dend = datetime(2008, 1, 1, 23, 50)
> > pyplot.xlim(dstart, dend)
> > 
> > And the format has changed.
> 
> I don't see this problem using ipython -pylab with mpl from svn on 
> linux, gtkagg backend.  What version, backend, and platform are you using?

matplotlib 0.98.3-3ubuntu1~ppa1 from Benjamin Drung's ppa
() on Ubuntu Hardy.

It was the standard python shell and TKAgg, but I get the same result
with ipython -pylab and GTKAgg. Indeed the format change can be
"documented":

print axis.xaxis.get_major_formatter()
pyplot.xlim(dstart, dend)
print axis.xaxis.get_major_formatter()

The first print:

and the second:


I did some debugging and realized that xaxis.units is None after
plotting, so xlim triggers a call to xaxis.set_units which sets the
default formatter (and units, whatever it means).

If I set my formatter again, xaxis.units is not None anymore but still
xaxis._update_axisinfo sets the default formatter.

Anyway I worked around this by writing my own version of xlim which
first saves the formatter, then sets xlim and sets the saved formatter
again.

Goyo


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 <[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 need to post
> a complete example.  Perhaps you are not setting the correct Axes
> instance?
>
> JDH
>
>   



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 of ~18 months ago was posted to the list:
> 
> http://www.nabble.com/Re:-Trying-p8831162.html
> 
> but it fails when I try to use it with matplotlib 0.98.3 and imshow.
> Does anyone have an updated version?
> 
> Thanks,
> 
> -michael
> 

Michael,

In the mpl "examples" directory there is a script that might be directly 
relevant:

examples/pylab_examples/image_masked.py

Eric

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 the list:

http://www.nabble.com/Re:-Trying-p8831162.html

but it fails when I try to use it with matplotlib 0.98.3 and imshow.
Does anyone have an updated version?

Thanks,

-michael

-- 
Michael Lerner, Ph.D.
IRTA Postdoctoral Fellow
Laboratory of Computational Biology NIH/NHLBI
5635 Fishers Lane, Room T909, MSC 9314
Rockville, MD 20852 (UPS/FedEx/Reality)
Bethesda MD 20892-9314 (USPS)
http://www.umich.edu/~mlerner

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 need to post
a complete example.  Perhaps you are not setting the correct Axes
instance?

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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
> 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
>
>
> Angus McMorland wrote:
>   
>> 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 lat/lon). Similar idea
>> for the Y axis.
>>
>> So, given my figure, how do I get the X and Y axis? All I see is
>> gca().
>> But how can I get both? Using fig.get_axes() I only got 1 axis.
>>
>>
>> I think this is a terminology issue: the axis objects returned by 
>> gca() or in the list returned by get_axes() incorporate both the 
>> 'axes' in the sense of x and y axes. With the single result of gca() 
>> you can get at both the x and y axes. For example:
>>
>> import matplotlib.pyplot as plt
>> ax = plt.gca()
>> ax.set_xlims(xmin=-1)
>> ax.set_ylims(ymax=0)
>> ax.format_xdata = ... # if this is how you use this bit - haven't 
>> needed to change these myself
>> ax.format_ydata = ... 
>>
>> I hope that helps,
>>
>> Angus.
>>
>> -- 
>> AJC McMorland
>> Post-doctoral research fellow
>> Neurobiology, University of Pittsburgh
>> 
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>   



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 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()
>

I've just dug around in some old code, now that you've shown me this example
to jog my memory. Perhaps you want to try res.fmt_xdata=foo (i.e. no
brackets, so you pass the function, not the result of the function).

Angus.


> although, like I said, it only first for the first event. Somehow
> res.fmt_xdata is getting set back to None
>
>
> Mathew
>
>
> Angus McMorland wrote:
>
>> Hi Mathew,
>>
>> 2008/10/13 Mathew Yeates <[EMAIL PROTECTED] > [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 lat/lon). Similar idea
>>for the Y axis.
>>
>>So, given my figure, how do I get the X and Y axis? All I see is
>>gca().
>>But how can I get both? Using fig.get_axes() I only got 1 axis.
>>
>>
>> I think this is a terminology issue: the axis objects returned by gca() or
>> in the list returned by get_axes() incorporate both the 'axes' in the sense
>> of x and y axes. With the single result of gca() you can get at both the x
>> and y axes. For example:
>>
>> import matplotlib.pyplot as plt
>> ax = plt.gca()
>> ax.set_xlims(xmin=-1)
>> ax.set_ylims(ymax=0)
>> ax.format_xdata = ... # if this is how you use this bit - haven't needed
>> to change these myself
>> ax.format_ydata = ...
>> I hope that helps,
>>
>> Angus.
>>
>> --
>> AJC McMorland
>> Post-doctoral research fellow
>> Neurobiology, University of Pittsburgh
>>
>
>
>


-- 
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh



-- 
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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


Angus McMorland wrote:
> 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 lat/lon). Similar idea
> for the Y axis.
>
> So, given my figure, how do I get the X and Y axis? All I see is
> gca().
> But how can I get both? Using fig.get_axes() I only got 1 axis.
>
>
> I think this is a terminology issue: the axis objects returned by 
> gca() or in the list returned by get_axes() incorporate both the 
> 'axes' in the sense of x and y axes. With the single result of gca() 
> you can get at both the x and y axes. For example:
>
> import matplotlib.pyplot as plt
> ax = plt.gca()
> ax.set_xlims(xmin=-1)
> ax.set_ylims(ymax=0)
> ax.format_xdata = ... # if this is how you use this bit - haven't 
> needed to change these myself
> ax.format_ydata = ... 
>
> I hope that helps,
>
> Angus.
>
> -- 
> AJC McMorland
> Post-doctoral research fellow
> Neurobiology, University of Pittsburgh



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 lat/lon). Similar idea
> for the Y axis.
>
> So, given my figure, how do I get the X and Y axis? All I see is gca().
> But how can I get both? Using fig.get_axes() I only got 1 axis.


I think this is a terminology issue: the axis objects returned by gca() or
in the list returned by get_axes() incorporate both the 'axes' in the sense
of x and y axes. With the single result of gca() you can get at both the x
and y axes. For example:

import matplotlib.pyplot as plt
ax = plt.gca()
ax.set_xlims(xmin=-1)
ax.set_ylims(ymax=0)
ax.format_xdata = ... # if this is how you use this bit - haven't needed to
change these myself
ax.format_ydata = ...

I hope that helps,

Angus.

-- 
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 figure, how do I get the X and Y axis? All I see is gca(). 
But how can I get both? Using fig.get_axes() I only got 1 axis.

Anybody know?

Mathew







-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users