Re: [Matplotlib-users] Replying with Thunderbird. Reply All doesn't cut it all the time.

2009-12-07 Thread Scott Sinclair
>2009/12/8 Robert Kern :
> Scott Sinclair wrote:
>>> 2009/12/7 Wayne Watson :
>>> I see a variance with replying to a post on this list and other Python
>>
>> The moral? Always use "Reply To", and hope everyone else remembers to
>> do so as well :)
>
> Did you mean "Reply All"?

Yes. Thanks for spotting that. Slip of the brain.

Cheers,
Scott

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Replying with Thunderbird. Reply All doesn't cut it all the time.

2009-12-07 Thread Robert Kern
Scott Sinclair wrote:
>> 2009/12/7 Wayne Watson :
>> I see a variance with replying to a post on this list and other Python
>> lists. It appears to be a difference between the way people post. If I
>> see From: a...@xyz.net and To: 
>> matplotlib-users-5nwgofrqmnerv+lv9mx5uipxlwaov...@public.gmane.org,
>> then Reply All gets both. If I see, From: joe...@xyz.net and To: my
>> e-mail address (or any personal e-address), then Reply All only goes to
>> the From e-address, which means I have to fill in the e-address for this
>> mail list. Apparently, some people from outside using a mail program
>> like Thunderbird. How do I get two for price of one, so to speak?
> 
> The default "Reply To" on this list is set to go to the original
> poster. It's a setting in the mailing list software, not anyone's
> e-mail client.
> 
> If you post a question and someone responds using "Reply To", then
> their response will go directly to you. If they respond using "Reply
> To All" (as I have here) then the e-mail is copied to the list address
> as well.
> 
> The moral? Always use "Reply To", and hope everyone else remembers to
> do so as well :)

Did you mean "Reply All"?

Some of us would appreciate it if people just responded to the list and not 
including our individual addresses at all. With very rare exceptions, everyone 
who posts is already on the list. I subscribe to the list via the GMane NNTP 
interface and hate receiving private-looking (hence urgent-looking) replies in 
my inbox.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco


--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Replying with Thunderbird. Reply All doesn't cut it all the time.

2009-12-07 Thread Scott Sinclair
> 2009/12/7 Wayne Watson :
> I see a variance with replying to a post on this list and other Python
> lists. It appears to be a difference between the way people post. If I
> see From: a...@xyz.net and To: matplotlib-users@lists.sourceforge.net,
> then Reply All gets both. If I see, From: joe...@xyz.net and To: my
> e-mail address (or any personal e-address), then Reply All only goes to
> the From e-address, which means I have to fill in the e-address for this
> mail list. Apparently, some people from outside using a mail program
> like Thunderbird. How do I get two for price of one, so to speak?

The default "Reply To" on this list is set to go to the original
poster. It's a setting in the mailing list software, not anyone's
e-mail client.

If you post a question and someone responds using "Reply To", then
their response will go directly to you. If they respond using "Reply
To All" (as I have here) then the e-mail is copied to the list address
as well.

The moral? Always use "Reply To", and hope everyone else remembers to
do so as well :)

Cheers,
Scott

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] scientific notation \times symbol

2009-12-07 Thread Eric Firing
Hao Wen wrote:
> Hi there:
> 
> I tried to plot large numbers and scientific notation has to be used.
> But instead of "\times" symbol, it used "e", which cannot be accepted as
> publishable. Anyone know how to deal with that?

Add a kwarg to your formatter initialization.  See below.

Eric

> 
> My original code is:
> 
> import matplotlib.pyplot as plt
> import numpy as np
> from matplotlib.ticker import ScalarFormatter
> 
> # data generation
> x = np.arange(1,1e3,20)
> y = x**2
> 
> formatter = ScalarFormatter()

formatter = ScalarFormatter(useMathText=True)


> formatter.set_scientific(True)
> formatter.set_powerlimits((-3,3))
> 
> fig = plt.figure()
> ax = fig.add_subplot(111)
> ax.xaxis.set_major_formatter(formatter)
> ax.yaxis.set_major_formatter(formatter)
> ax.plot(x,y)
> 
> plt.show()
> 
> 

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] scientific notation \times symbol

2009-12-07 Thread Hao Wen
Hi there:

I tried to plot large numbers and scientific notation has to be used.
But instead of "\times" symbol, it used "e", which cannot be accepted as
publishable. Anyone know how to deal with that?

My original code is:

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import ScalarFormatter

# data generation
x = np.arange(1,1e3,20)
y = x**2

formatter = ScalarFormatter()
formatter.set_scientific(True)
formatter.set_powerlimits((-3,3))

fig = plt.figure()
ax = fig.add_subplot(111)
ax.xaxis.set_major_formatter(formatter)
ax.yaxis.set_major_formatter(formatter)
ax.plot(x,y)

plt.show()




--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
I thought the console was the only way to use IPython. I go to 
Start->Allprograms->IPython, and select IPython. Oh, I see *Console" is 
something of a replacement for the Win Cmd Console. Is there some site 
that shows off it's features?

Gary Ruben wrote:
> In Windows I recommend running iPython inside Console 
> 
> particularly for its vastly improved copy and pasting.
>
> Gary R.
>
> phob...@geosyntec.com wrote:
>   
>> Third Google result for "copy paste in DOS prompt"
>> http://www.copy--paste.org/copy-paste-between-dos-windows.htm
>>
>> Note that right-clicking is going to execute behavior, not bring up a 
>> contextual menu.
>>
>> -p
>>
>> 
>>> -Original Message-
>>> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
>>> Sent: Monday, December 07, 2009 12:57 PM
>>> To: Gary Pajer
>>> Cc: matplotlib-users@lists.sourceforge.net
>>> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to
>>> Get Started on IPython
>>>
>>> Right-click does nothing on the IPython window.
>>>
>>> The Windows command console is, I think, a lost cause all together. I've
>>> tried a right-click on it with the same result as in IPython.
>>> I'm using Win XP, and I hope they improve on Win 7, which I plan to
>>> install on all my machines this month.
>>>
>>>   
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>   

-- 
   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet  

 "... humans'innate skills with numbers isn't much
  better than that of rats and dolphins." 
   -- Stanislas Dehaene, neurosurgeon 
 
Web Page: 


--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
OK, here I go. Quick Edit is checked, and I'm running from what looks 
like the Win XP command console. I am not in full screen mode. I've 
applied changes to the window. It has scroll bars side and bottom. I've 
moused the area, and now am going to Edit on the window menu. It works!  
I just pasted it into a txt file. Thanks. Pretty convoluted, but it works.

Is it possible to paste from outside? For example copy and paste from a 
txt file.

phob...@geosyntec.com wrote:
> Third Google result for "copy paste in DOS prompt"
> http://www.copy--paste.org/copy-paste-between-dos-windows.htm
>
> Note that right-clicking is going to execute behavior, not bring up a 
> contextual menu.
>
> -p
>
>   
>> -Original Message-
>> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
>> Sent: Monday, December 07, 2009 12:57 PM
>> To: Gary Pajer
>> Cc: matplotlib-users@lists.sourceforge.net
>> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to
>> Get Started on IPython
>>
>> Right-click does nothing on the IPython window.
>>
>> The Windows command console is, I think, a lost cause all together. I've
>> tried a right-click on it with the same result as in IPython.
>> I'm using Win XP, and I hope they improve on Win 7, which I plan to
>> install on all my machines this month.
>>
>> Gary Pajer wrote:
>> 
>>> On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson
>>> mailto:sierra_mtnv...@sbcglobal.net>>
>>> wrote:
>>>
>>> Good. Thanks. Interesting that ls and pwd are used for Win, but
>>>   
>> that's
>> 
>>> fine. How do I copy parts of the window?  All I can do at the
>>> moment is
>>> sweep out a rectangular area with the mouse. It looks like I
>>> underestimated the need for  automagic.
>>>
>>>
>>>
>>> Copy and paste from a Windows command shell is different that copy and
>>> paste from *nix command shell.
>>>
>>> Right-click in the command window
>>> Choose Mark from the drop-down menu
>>> Select the (rectangular) region of text you want to copy.
>>> Hit Return.
>>>
>>> That does a copy operation.  Then go to your other application, and
>>> paste however you like.
>>>
>>>
>>>
>>>
>>>
>>> David Arnold wrote:
>>> > Depends on whether "automagic" is enabled or not. If automagic
>>> is OFF,
>>> > you  need to enter the %, as in %cd. If automagic is ON (the
>>> default),
>>> > then you don't need to enter the %, as in cd.
>>> >
>>> > automagic can be toggled on and off as follows:
>>> >
>>> > In [8]: automagic
>>> >
>>> > Automagic is OFF, % prefix IS needed for magic functions.
>>> >
>>> > In [9]: %automagic
>>> >
>>> > Automagic is ON, % prefix NOT needed for magic functions.
>>> >
>>> > On my mac, I can change to my "home" directory as follows:
>>> >
>>> > In [10]: cd
>>> > /Users/darnold
>>> >
>>> > I can list the files in this directory with:
>>> >
>>> > In [11]: ls
>>> > Desktop/Movies/context/
>>> > Documents/Music/java.log.344
>>> > Downloads/NetBeansProjects/java.log.415
>>> > Dropbox/Pictures/luatex-cache/
>>> > Library/Public/matlab_crash_dump.344
>>> > LizThesis/Sites/matlab_crash_dump.415
>>> >
>>> > I can cd into my Sites folder with:
>>> >
>>> > In [12]: cd Sites
>>> > /Users/darnold/Sites
>>> >
>>> > I can get the current directory with:
>>> >
>>> > In [13]: pwd
>>> > Out[13]: '/Users/darnold/Sites'
>>> >
>>> > I can move up a directory level with:
>>> >
>>> > In [14]: cd ..
>>> > /Users/darnold
>>> >
>>> >
>>> > Hope this helps.
>>> >
>>> > D.
>>> >
>>> >
>>> > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
>>> >
>>> >> I've seen the tutorial, but need something more. How do I know
>>>   
>> what
>> 
>>> >> folder I'm in? How do I move from where I am to, for example,
>>> >> C:\abc\def? So far I've tried various combinations like this:
>>> >>
>>> >> cd ..
>>> >> cd C:\
>>> >> pwd (yes, I know it's not windows)
>>> >>
>>> >> I tried %cd .., and that may have moved me but I seem to get
>>> back to the
>>> >> same place.
>>> >>
>>> >> I seem to be in  C:\Documents and Settings\administrator. If I
>>> doa %cp
>>> >> ..\\ it looks like I get to C:\, but follwing that with pwd
>>> gets me back
>>> >> to where I started--C:\Documents and Settings\administrator.
>>> >>
>>> >> If I want to execute a program with %run, I need to be where
>>> abc.py is
>>> >> or, perhaps say something like %run C:\myPyPrograms\abc.py.
>>> >> Dir doesn't work and I haven't been able to even see what's in
>>>   
>> the
>> 
>>> >> folder.
>>> >>
>>> >>
>>> >> --
>>> >>   Wayne Watson (Watson Adventures, Prop., Nevada City,
>>>   

Re: [Matplotlib-users] figimage over plot?

2009-12-07 Thread Jason Heeris
2009/12/1 John Hunter :
> Some of this code is particularly tricky and difficult to get right
> across use cases (eg composite figimages) and this is exacerbated by
> the fact that this part of the codebase is lightly used.  So testing
> will be helpful.  I'm also posting an svn diff for other devs to
> review.

I've finally gotten around to installing from SVN HEAD in a virtual
python environment and it works perfectly for my needs. Thanks very
much for this :)

Cheers,
Jason

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Gary Ruben
In Windows I recommend running iPython inside Console 

particularly for its vastly improved copy and pasting.

Gary R.

phob...@geosyntec.com wrote:
> Third Google result for "copy paste in DOS prompt"
> http://www.copy--paste.org/copy-paste-between-dos-windows.htm
> 
> Note that right-clicking is going to execute behavior, not bring up a 
> contextual menu.
> 
> -p
> 
>> -Original Message-
>> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
>> Sent: Monday, December 07, 2009 12:57 PM
>> To: Gary Pajer
>> Cc: matplotlib-users@lists.sourceforge.net
>> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to
>> Get Started on IPython
>>
>> Right-click does nothing on the IPython window.
>>
>> The Windows command console is, I think, a lost cause all together. I've
>> tried a right-click on it with the same result as in IPython.
>> I'm using Win XP, and I hope they improve on Win 7, which I plan to
>> install on all my machines this month.
>>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread PHobson
Third Google result for "copy paste in DOS prompt"
http://www.copy--paste.org/copy-paste-between-dos-windows.htm

Note that right-clicking is going to execute behavior, not bring up a 
contextual menu.

-p

> -Original Message-
> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
> Sent: Monday, December 07, 2009 12:57 PM
> To: Gary Pajer
> Cc: matplotlib-users@lists.sourceforge.net
> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to
> Get Started on IPython
> 
> Right-click does nothing on the IPython window.
> 
> The Windows command console is, I think, a lost cause all together. I've
> tried a right-click on it with the same result as in IPython.
> I'm using Win XP, and I hope they improve on Win 7, which I plan to
> install on all my machines this month.
> 
> Gary Pajer wrote:
> > On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson
> > mailto:sierra_mtnv...@sbcglobal.net>>
> > wrote:
> >
> > Good. Thanks. Interesting that ls and pwd are used for Win, but
> that's
> > fine. How do I copy parts of the window?  All I can do at the
> > moment is
> > sweep out a rectangular area with the mouse. It looks like I
> > underestimated the need for  automagic.
> >
> >
> >
> > Copy and paste from a Windows command shell is different that copy and
> > paste from *nix command shell.
> >
> > Right-click in the command window
> > Choose Mark from the drop-down menu
> > Select the (rectangular) region of text you want to copy.
> > Hit Return.
> >
> > That does a copy operation.  Then go to your other application, and
> > paste however you like.
> >
> >
> >
> >
> >
> > David Arnold wrote:
> > > Depends on whether "automagic" is enabled or not. If automagic
> > is OFF,
> > > you  need to enter the %, as in %cd. If automagic is ON (the
> > default),
> > > then you don't need to enter the %, as in cd.
> > >
> > > automagic can be toggled on and off as follows:
> > >
> > > In [8]: automagic
> > >
> > > Automagic is OFF, % prefix IS needed for magic functions.
> > >
> > > In [9]: %automagic
> > >
> > > Automagic is ON, % prefix NOT needed for magic functions.
> > >
> > > On my mac, I can change to my "home" directory as follows:
> > >
> > > In [10]: cd
> > > /Users/darnold
> > >
> > > I can list the files in this directory with:
> > >
> > > In [11]: ls
> > > Desktop/Movies/context/
> > > Documents/Music/java.log.344
> > > Downloads/NetBeansProjects/java.log.415
> > > Dropbox/Pictures/luatex-cache/
> > > Library/Public/matlab_crash_dump.344
> > > LizThesis/Sites/matlab_crash_dump.415
> > >
> > > I can cd into my Sites folder with:
> > >
> > > In [12]: cd Sites
> > > /Users/darnold/Sites
> > >
> > > I can get the current directory with:
> > >
> > > In [13]: pwd
> > > Out[13]: '/Users/darnold/Sites'
> > >
> > > I can move up a directory level with:
> > >
> > > In [14]: cd ..
> > > /Users/darnold
> > >
> > >
> > > Hope this helps.
> > >
> > > D.
> > >
> > >
> > > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
> > >
> > >> I've seen the tutorial, but need something more. How do I know
> what
> > >> folder I'm in? How do I move from where I am to, for example,
> > >> C:\abc\def? So far I've tried various combinations like this:
> > >>
> > >> cd ..
> > >> cd C:\
> > >> pwd (yes, I know it's not windows)
> > >>
> > >> I tried %cd .., and that may have moved me but I seem to get
> > back to the
> > >> same place.
> > >>
> > >> I seem to be in  C:\Documents and Settings\administrator. If I
> > doa %cp
> > >> ..\\ it looks like I get to C:\, but follwing that with pwd
> > gets me back
> > >> to where I started--C:\Documents and Settings\administrator.
> > >>
> > >> If I want to execute a program with %run, I need to be where
> > abc.py is
> > >> or, perhaps say something like %run C:\myPyPrograms\abc.py.
> > >> Dir doesn't work and I haven't been able to even see what's in
> the
> > >> folder.
> > >>
> > >>
> > >> --
> > >>   Wayne Watson (Watson Adventures, Prop., Nevada City,
> CA)
> > >>
> > >> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
> > >>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
> > >>
> > >> "... humans'innate skills with numbers isn't much
> > >>  better than that of rats and dolphins."
> > >>   -- Stanislas Dehaene, neurosurgeon
> > >>
> > >>Web Page:  > >
> > >>
> > >>
> > >>
> > ---

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
Right-click does nothing on the IPython window.

The Windows command console is, I think, a lost cause all together. I've 
tried a right-click on it with the same result as in IPython.
I'm using Win XP, and I hope they improve on Win 7, which I plan to 
install on all my machines this month.

Gary Pajer wrote:
> On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson 
> mailto:sierra_mtnv...@sbcglobal.net>> 
> wrote:
>
> Good. Thanks. Interesting that ls and pwd are used for Win, but that's
> fine. How do I copy parts of the window?  All I can do at the
> moment is
> sweep out a rectangular area with the mouse. It looks like I
> underestimated the need for  automagic.
>
>
>
> Copy and paste from a Windows command shell is different that copy and 
> paste from *nix command shell.
>
> Right-click in the command window
> Choose Mark from the drop-down menu
> Select the (rectangular) region of text you want to copy.
> Hit Return.
>
> That does a copy operation.  Then go to your other application, and 
> paste however you like.
>
>
>  
>
>
> David Arnold wrote:
> > Depends on whether "automagic" is enabled or not. If automagic
> is OFF,
> > you  need to enter the %, as in %cd. If automagic is ON (the
> default),
> > then you don't need to enter the %, as in cd.
> >
> > automagic can be toggled on and off as follows:
> >
> > In [8]: automagic
> >
> > Automagic is OFF, % prefix IS needed for magic functions.
> >
> > In [9]: %automagic
> >
> > Automagic is ON, % prefix NOT needed for magic functions.
> >
> > On my mac, I can change to my "home" directory as follows:
> >
> > In [10]: cd
> > /Users/darnold
> >
> > I can list the files in this directory with:
> >
> > In [11]: ls
> > Desktop/Movies/context/
> > Documents/Music/java.log.344
> > Downloads/NetBeansProjects/java.log.415
> > Dropbox/Pictures/luatex-cache/
> > Library/Public/matlab_crash_dump.344
> > LizThesis/Sites/matlab_crash_dump.415
> >
> > I can cd into my Sites folder with:
> >
> > In [12]: cd Sites
> > /Users/darnold/Sites
> >
> > I can get the current directory with:
> >
> > In [13]: pwd
> > Out[13]: '/Users/darnold/Sites'
> >
> > I can move up a directory level with:
> >
> > In [14]: cd ..
> > /Users/darnold
> >
> >
> > Hope this helps.
> >
> > D.
> >
> >
> > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
> >
> >> I've seen the tutorial, but need something more. How do I know what
> >> folder I'm in? How do I move from where I am to, for example,
> >> C:\abc\def? So far I've tried various combinations like this:
> >>
> >> cd ..
> >> cd C:\
> >> pwd (yes, I know it's not windows)
> >>
> >> I tried %cd .., and that may have moved me but I seem to get
> back to the
> >> same place.
> >>
> >> I seem to be in  C:\Documents and Settings\administrator. If I
> doa %cp
> >> ..\\ it looks like I get to C:\, but follwing that with pwd
> gets me back
> >> to where I started--C:\Documents and Settings\administrator.
> >>
> >> If I want to execute a program with %run, I need to be where
> abc.py is
> >> or, perhaps say something like %run C:\myPyPrograms\abc.py.
> >> Dir doesn't work and I haven't been able to even see what's in the
> >> folder.
> >>
> >>
> >> --
> >>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
> >>
> >> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
> >>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
> >>
> >> "... humans'innate skills with numbers isn't much
> >>  better than that of rats and dolphins."
> >>   -- Stanislas Dehaene, neurosurgeon
> >>
> >>Web Page:  >
> >>
> >>
> >>
> 
> --
> >>
> >> Join us December 9, 2009 for the Red Hat Virtual Experience,
> >> a free event focused on virtualization and cloud computing.
> >> Attend in-depth sessions from your desk. Your couch. Anywhere.
> >> http://p.sf.net/sfu/redhat-sfdev2dev
> >> ___
> >> Matplotlib-users mailing list
> >> Matplotlib-users@lists.sourceforge.net
> 
> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
> --
>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>
> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>  Obz Site:  39° 15' 7" 

[Matplotlib-users] positions of the ticks and ticklabels

2009-12-07 Thread Abhimanyu Lad
Hi,

How do I get the coordinates of the ticks and their labels in a coordinate
system that I can feed to figtext or text?
I want to display some additional text near one of the ticklabels on the x
axis. Although I could get the coordinates for figtext using trial and
error, but is there a correct way of doing this (using transformations?) so
that my text does not move relative to the tick labels.

Thanks!
Abhi
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] PolyCollection not supported by legend

2009-12-07 Thread Chuck Pepe-Ranney
I apologize for my previous posts.  I see that the PolyCollection object is
not supported by the legend command.  I will use a proxy artist as described
here .
- Chuck
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] legend for area chart made with fill_between method

2009-12-07 Thread Chuck Pepe-Ranney
How might create a legend for an area chart made with PolyCollection objects
via the fill_between method?  For example, on the following chart,

import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111)
ind = np.arange(3)
y1 = np.array([1,2,3])
y2 = y1 * 2
a = ax.fill_between(ind, y1, np.zeros(len(ind)), facecolor='r', label='a')
b = ax.fill_between(ind, y2, y1, facecolor='b', label='b')
plt.show()

I would like to create a legend that displays the label for a and b and the
corresponding fill color.  Unlike with non-collections objects, when I call
ax.legend() I get an AttributeError and the following output,

AttributeErrorTraceback (most recent call last)

/home/chuck/ in ()

/home/chuck/matplotlib/trunk/matplotlib/lib/matplotlib/axes.pyc in
legend(self, *args, **kwargs)
   4004
   4005 handles = cbook.flatten(handles)
-> 4006 self.legend_ = mlegend.Legend(self, handles, labels,
**kwargs)
   4007 return self.legend_
   4008

/home/chuck/matplotlib/trunk/matplotlib/lib/matplotlib/legend.pyc in
__init__(self, parent, handles, labels, loc, numpoints, markerscale,
scatterpoints, scatteryoffsets, prop, pad, labelsep, handlelen,
handletextsep, axespad, borderpad, labelspacing, handlelength,
handletextpad, borderaxespad, columnspacing, ncol, mode, fancybox, shadow,
title, bbox_to_anchor, bbox_transform)
307
308 # init with null renderer
--> 309 self._init_legend_box(handles, labels)
310
311 self.set_title(title)

/home/chuck/matplotlib/trunk/matplotlib/lib/matplotlib/legend.pyc in
_init_legend_box(self, handles, labels)
584
585 handle = handle_list[-1]
--> 586 handlebox.add_artist(handle)
587 if hasattr(handle, "_legmarker"):
588 handlebox.add_artist(handle._legmarker)

/home/chuck/matplotlib/trunk/matplotlib/lib/matplotlib/offsetbox.pyc in
add_artist(self, a)
489 'Add any :class:`~matplotlib.artist.Artist` to the container
box'
490 self._children.append(a)
--> 491 a.set_transform(self.get_transform())
492
493

AttributeError: 'NoneType' object has no attribute 'set_transform'
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] cone plots

2009-12-07 Thread Jae-Joon Lee
I updated the axes_grid toolkit in the svn, and I hope it is more useful.

Check the example

examples/axes_grid/demo_floating_axes.py

The output is attached.

-JJ


On Wed, Nov 4, 2009 at 9:19 AM, Jae-Joon Lee  wrote:
> Are you running svn version of mpl?
> Also, as I said, the example is based on the patch yet to be submitted.
> So, I can send you the example, but it will take me sometime to commit
> the patch.
> I'll give you a notice when this happen.
>
> As far as rotating the ticks, if you're using markers, than I guess
> you need a custom artist class.
> So, I recommend you to just use simple lines.
>
> Whatever path you take (even with my example), it will not be easy.
> So, again, finding other plotting tool that support cone plots may be
> more practical (unless someone comes up with a working example).
>
> Regards,
>
> -JJ
>
>
>
> On Wed, Nov 4, 2009 at 2:44 AM, ifriad  wrote:
>>
>> Hi,
>> Thanks, I think the attached sample is good enough for me, In fact I got
>> something similar except for the ticks I didn't know how to make them
>> slanted, so If I can get the code for you plot this will be really great.
>>
>> I can then fine tune it to my needs.
>>
>> Thanks Ihab
>>
>> Jae-Joon Lee wrote:
>>>
>>> Unfortunately, I don't think something like cone plots can be easily
>>> done with current matplotlib.
>>>
>>> I guess you can define custom projection and such, as in the example below
>>>
>>> http://matplotlib.sourceforge.net/examples/api/custom_projection_example.html
>>>
>>> but this will involve some (maybe a lot) coding + some knowledge of
>>> mpl internals.
>>>
>>> With the experimental curvelinear coordinate support in axes_grid
>>> toolkit (and with yet-to-be-committed patch), one can draw very basic
>>> cone plot (see the attached). However, the current support is far from
>>> complete. I'm willing to make it better, but I'm afraid that this may
>>> not happen in a near future (likely not in this year).
>>>
>>> Of course, you can try to plot everything  (axes boundary, ticks,
>>> ticklabels etc.) manually if you want, and maybe this is the best way
>>> currently available.
>>>
>>> Regards,
>>>
>>> -JJ
>>>
>>> On Sat, Oct 31, 2009 at 4:15 AM, ifriad  wrote:

 Hi,
 Does any one knows how to do those cone plots,

 I am attaching a sample plot.

 Thanks Ihab
 http://old.nabble.com/file/p26140834/cone.png cone.png
 --
 View this message in context:
 http://old.nabble.com/cone-plots-tp26140834p26140834.html
 Sent from the matplotlib - users mailing list archive at Nabble.com.


 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

>>>
>>>
>>> --
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> ___
>>> Matplotlib-users mailing list
>>> Matplotlib-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>
>> --
>> View this message in context: 
>> http://old.nabble.com/cone-plots-tp26140834p26192193.html
>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>
>>
>> --
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
<>--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Matplotlib-users mailing list
Matplotlib-use

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
Hi, I'm using IPython raw. I guess I'm not sure what a shell is in this
case. I used to work with Linux years ago and the shell concept was
clear there. I'm now simply a Win XP user. What advantages would be
available to use a shell?

In part of the thread above,(posted 57 minutes after the hour, I asked
how copy and paste operate? Quick IPyton seems to think it works quite
like a Win copy and paste. It doesn't work for me.

Below you've manage to post a session. How did that happen? Is there a
file that I can pick up that contains the log? From the ref manual, I
see this:
===


  Manual capture of command output¶
 


If the input line begins with two exclamation marks, !!, the command is
executed but its output is captured and returned as a python list, split
on newlines. Any output sent by the subprocess to standard error is
printed separately, so that the resulting list only captures standard
output. The !! syntax is a shorthand for the %sx magic command.

Finally, the %sc magic (short for ‘shell capture’) is similar to %sx,
but allowing more fine-grained control of the capture details, and ...
===end

Maybe this is somehow you did it?

phob...@geosyntec.com wrote:
> Wayne,
>
> Are you using the IPython shell? If so, cd, pwd, ls, etc will work just fine.
>
> If you using the standard python shell, AFAIK, you need to import the os 
> module and use that to navigate.
>
> Ipython session:
> C:\Documents and Settings\phobson>ipython
> Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.10 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help  -> Python's own help system.
> object?   -> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: pwd
> Out[1]: 'C:\\Documents and Settings\\phobson'
>
> In [2]: cd c:\stuff\utils\py
> c:\stuff\utils\py
>
> In [3]: pwd
> Out[3]: 'c:\\stuff\\utils\\py'
>
> In [4]: cd c:\
> c:\
>
> In [5]: cd c:\stuff\utils\py
> c:\stuff\utils\py
>
> In [6]: ls *.pdf
>  Volume in drive C has no label.
>  Volume Serial Number is 24FD-DA13
>
>  Directory of c:\stuff\utils\py
>
> 09/11/2009  11:39 AM 1,515,182 elev_test5.pdf
> 10/18/2009  01:06 PM   147,663 frLarch_elev.pdf
> 05/12/2009  10:30 AM28,029 gear.pdf
> 03/11/2009  09:56 AM30,622 test.pdf
> 08/27/2009  09:18 AM17,175 tidal_cdf.pdf
> 11/16/2009  08:20 AM   118,902 zoom_test.pdf
> 11/16/2009  08:18 AM   124,000 zoom_test_final.pdf
>7 File(s)  1,981,573 bytes
>0 Dir(s)  82,894,716,928 bytes free
>
> Paul M. Hobson  
> Senior Staff Engineer
>   

-- 
   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

 "... humans'innate skills with numbers isn't much
  better than that of rats and dolphins."
   -- Stanislas Dehaene, neurosurgeon

Web Page: 



--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Baseline pngmath

2009-12-07 Thread Michael Droettboom
Do you have the LaTeX preview package installed and 
"pngmath_use_preview" set to True in your conf.py?

See here:

http://sphinx.pocoo.org/ext/math.html#confval-pngmath_use_preview

Mike

David Arnold wrote:
> All,
>
> I tried using sphinx.ext.pngmath. See:  
> http://msemac.redwoods.edu/~darnold/html/cylinders.html
>
> Note in Exercise 1 how z = 6 - 2x^2 is placed so its baseline does not  
> align (it's lower) with the baseline of the text. How can I align the  
> baselines?
>
> David.
>
> --
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing. 
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Gary Pajer
On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson
wrote:

> Good. Thanks. Interesting that ls and pwd are used for Win, but that's
> fine. How do I copy parts of the window?  All I can do at the moment is
> sweep out a rectangular area with the mouse. It looks like I
> underestimated the need for  automagic.
>


Copy and paste from a Windows command shell is different that copy and paste
from *nix command shell.

Right-click in the command window
Choose Mark from the drop-down menu
Select the (rectangular) region of text you want to copy.
Hit Return.

That does a copy operation.  Then go to your other application, and paste
however you like.




>
> David Arnold wrote:
> > Depends on whether "automagic" is enabled or not. If automagic is OFF,
> > you  need to enter the %, as in %cd. If automagic is ON (the default),
> > then you don't need to enter the %, as in cd.
> >
> > automagic can be toggled on and off as follows:
> >
> > In [8]: automagic
> >
> > Automagic is OFF, % prefix IS needed for magic functions.
> >
> > In [9]: %automagic
> >
> > Automagic is ON, % prefix NOT needed for magic functions.
> >
> > On my mac, I can change to my "home" directory as follows:
> >
> > In [10]: cd
> > /Users/darnold
> >
> > I can list the files in this directory with:
> >
> > In [11]: ls
> > Desktop/Movies/context/
> > Documents/Music/java.log.344
> > Downloads/NetBeansProjects/java.log.415
> > Dropbox/Pictures/luatex-cache/
> > Library/Public/matlab_crash_dump.344
> > LizThesis/Sites/matlab_crash_dump.415
> >
> > I can cd into my Sites folder with:
> >
> > In [12]: cd Sites
> > /Users/darnold/Sites
> >
> > I can get the current directory with:
> >
> > In [13]: pwd
> > Out[13]: '/Users/darnold/Sites'
> >
> > I can move up a directory level with:
> >
> > In [14]: cd ..
> > /Users/darnold
> >
> >
> > Hope this helps.
> >
> > D.
> >
> >
> > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
> >
> >> I've seen the tutorial, but need something more. How do I know what
> >> folder I'm in? How do I move from where I am to, for example,
> >> C:\abc\def? So far I've tried various combinations like this:
> >>
> >> cd ..
> >> cd C:\
> >> pwd (yes, I know it's not windows)
> >>
> >> I tried %cd .., and that may have moved me but I seem to get back to the
> >> same place.
> >>
> >> I seem to be in  C:\Documents and Settings\administrator. If I doa %cp
> >> ..\\ it looks like I get to C:\, but follwing that with pwd gets me back
> >> to where I started--C:\Documents and Settings\administrator.
> >>
> >> If I want to execute a program with %run, I need to be where abc.py is
> >> or, perhaps say something like %run C:\myPyPrograms\abc.py.
> >> Dir doesn't work and I haven't been able to even see what's in the
> >> folder.
> >>
> >>
> >> --
> >>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
> >>
> >> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
> >>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
> >>
> >> "... humans'innate skills with numbers isn't much
> >>  better than that of rats and dolphins."
> >>   -- Stanislas Dehaene, neurosurgeon
> >>
> >>Web Page: 
> >>
> >>
> >>
> --
> >>
> >> Join us December 9, 2009 for the Red Hat Virtual Experience,
> >> a free event focused on virtualization and cloud computing.
> >> Attend in-depth sessions from your desk. Your couch. Anywhere.
> >> http://p.sf.net/sfu/redhat-sfdev2dev
> >> ___
> >> Matplotlib-users mailing list
> >> Matplotlib-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
> --
>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>
> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>
> "... humans'innate skills with numbers isn't much
>  better than that of rats and dolphins."
>   -- Stanislas Dehaene, neurosurgeon
>
>Web Page: 
>
>
>
> --
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-d

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
Well, that's interesting, but how did you copy and paste?
Quick Python offers this, but no explanation how to copy and paste.
The %hist command can show you all previous input, without line numbers 
if desired (option -n) so you can directly copy and paste code either 
back in IPython or in a text editor. You can also save all your history 
by turning on logging via %logstart; these logs can later be either 
reloaded as IPython sessions or used as code for your programs.
Aside from that, here's an example of what I'd like to copy. If it 
doesn't make it through, it's just a screen capture of part of the 
window's contents show the result of ls, cd, etc.

Image above this.
Over and out ...

David Arnold wrote:
> In [13]: history
> 1 : #?edit
> 2 : hist
> 3 : a=12
> 4 : b=3
> 5 : c=4
> 6 : f=a*b+c
> 7 : hist
> 8 : _ip.magic("magic ")
> 9 : _ip.magic("automagic ")
> 10: _ip.magic("automagic ")
> 11: his 1-4
> 12: hist(1-4)
> 13: _ip.magic("history ")
>
> In [14]: edit 3-6
>
>
>
> On Dec 7, 2009, at 8:41 AM, Wayne Watson wrote:
>
>> Good. Thanks. Interesting that ls and pwd are used for Win, but 
>> that's fine. How do I copy parts of the window?  All I can do at the 
>> moment is sweep out a rectangular area with the mouse. It looks like 
>> I underestimated the need for  automagic.
>>
>> David Arnold wrote:
>>> Depends on whether "automagic" is enabled or not. If automagic is 
>>> OFF, you  need to enter the %, as in %cd. If automagic is ON (the 
>>> default), then you don't need to enter the %, as in cd.
>>>
>>> automagic can be toggled on and off as follows:
>>>
>>> In [8]: automagic
>>>
>>> Automagic is OFF, % prefix IS needed for magic functions.
>>>
>>> In [9]: %automagic
>>>
>>> Automagic is ON, % prefix NOT needed for magic functions.
>>>
>>> On my mac, I can change to my "home" directory as follows:
>>>
>>> In [10]: cd
>>> /Users/darnold
>>>
>>> I can list the files in this directory with:
>>>
>>> In [11]: ls
>>> Desktop/Movies/context/
>>> Documents/Music/java.log.344
>>> Downloads/NetBeansProjects/java.log.415
>>> Dropbox/Pictures/luatex-cache/
>>> Library/Public/matlab_crash_dump.344
>>> LizThesis/Sites/matlab_crash_dump.415
>>>
>>> I can cd into my Sites folder with:
>>>
>>> In [12]: cd Sites
>>> /Users/darnold/Sites
>>>
>>> I can get the current directory with:
>>>
>>> In [13]: pwd
>>> Out[13]: '/Users/darnold/Sites'
>>>
>>> I can move up a directory level with:
>>>
>>> In [14]: cd ..
>>> /Users/darnold
>>>
>>>
>>> Hope this helps.
>>>
>>> D.
>>>
>>>
>>> On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
>>>
 I've seen the tutorial, but need something more. How do I know what
 folder I'm in? How do I move from where I am to, for example,
 C:\abc\def? So far I've tried various combinations like this:

 cd ..
 cd C:\
 pwd (yes, I know it's not windows)

 I tried %cd .., and that may have moved me but I seem to get back 
 to the
 same place.

 I seem to be in  C:\Documents and Settings\administrator. If I doa %cp
 ..\\ it looks like I get to C:\, but follwing that with pwd gets me 
 back
 to where I started--C:\Documents and Settings\administrator.

 If I want to execute a program with %run, I need to be where abc.py is
 or, perhaps say something like %run C:\myPyPrograms\abc.py.
 Dir doesn't work and I haven't been able to even see what's in the 
 folder.


 -- 
  Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
 Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

"... humans'innate skills with numbers isn't much
 better than that of rats and dolphins."
  -- Stanislas Dehaene, neurosurgeon

   Web Page: 


 --
  

 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>
>> -- 
>>  Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>
>>(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>> Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 
>> feet "... humans'innate skills with 
>> numbers isn't much
>> better than that of rats and 
>> dolphins."   -- Stanislas Dehaene, 
>> neurosurgeonWeb Page: 
>>
>
>

-- 
   W

[Matplotlib-users] formlayout only for Qt back end?

2009-12-07 Thread Yeates, Mathew C (388D)
Hi
I discovered "forrmlayout" by Pierre Raybaut 
(http://code.google.com/p/formlayout/) and I would like to use it for plot 
configuration. Is it only for the PyQt backend? I'm using GtkAgg.

Mathew
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Baseline pngmath

2009-12-07 Thread David Arnold
All,

I tried using sphinx.ext.pngmath. See:  
http://msemac.redwoods.edu/~darnold/html/cylinders.html

Note in Exercise 1 how z = 6 - 2x^2 is placed so its baseline does not  
align (it's lower) with the baseline of the text. How can I align the  
baselines?

David.

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] axis equal

2009-12-07 Thread David Arnold
All,

Is there an "axis equal" command for mplot3d?

D.

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Replying with Thunderbird. Reply All doesn't cut it all the time.

2009-12-07 Thread Wayne Watson
I see a variance with replying to a post on this list and other Python 
lists. It appears to be a difference between the way people post. If I 
see From: a...@xyz.net and To: matplotlib-users@lists.sourceforge.net, 
then Reply All gets both. If I see, From: joe...@xyz.net and To: my 
e-mail address (or any personal e-address), then Reply All only goes to 
the From e-address, which means I have to fill in the e-address for this 
mail list. Apparently, some people from outside using a mail program 
like Thunderbird. How do I get two for price of one, so to speak?

Comments?

-- 
   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet  

 "... humans'innate skills with numbers isn't much
  better than that of rats and dolphins." 
   -- Stanislas Dehaene, neurosurgeon 
 
Web Page: 


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
Good. Thanks. Interesting that ls and pwd are used for Win, but that's 
fine. How do I copy parts of the window?  All I can do at the moment is 
sweep out a rectangular area with the mouse. It looks like I 
underestimated the need for  automagic.

David Arnold wrote:
> Depends on whether "automagic" is enabled or not. If automagic is OFF, 
> you  need to enter the %, as in %cd. If automagic is ON (the default), 
> then you don't need to enter the %, as in cd.
>
> automagic can be toggled on and off as follows:
>
> In [8]: automagic
>
> Automagic is OFF, % prefix IS needed for magic functions.
>
> In [9]: %automagic
>
> Automagic is ON, % prefix NOT needed for magic functions.
>
> On my mac, I can change to my "home" directory as follows:
>
> In [10]: cd
> /Users/darnold
>
> I can list the files in this directory with:
>
> In [11]: ls
> Desktop/Movies/context/
> Documents/Music/java.log.344
> Downloads/NetBeansProjects/java.log.415
> Dropbox/Pictures/luatex-cache/
> Library/Public/matlab_crash_dump.344
> LizThesis/Sites/matlab_crash_dump.415
>
> I can cd into my Sites folder with:
>
> In [12]: cd Sites
> /Users/darnold/Sites
>
> I can get the current directory with:
>
> In [13]: pwd
> Out[13]: '/Users/darnold/Sites'
>
> I can move up a directory level with:
>
> In [14]: cd ..
> /Users/darnold
>
>
> Hope this helps.
>
> D.
>
>
> On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
>
>> I've seen the tutorial, but need something more. How do I know what
>> folder I'm in? How do I move from where I am to, for example,
>> C:\abc\def? So far I've tried various combinations like this:
>>
>> cd ..
>> cd C:\
>> pwd (yes, I know it's not windows)
>>
>> I tried %cd .., and that may have moved me but I seem to get back to the
>> same place.
>>
>> I seem to be in  C:\Documents and Settings\administrator. If I doa %cp
>> ..\\ it looks like I get to C:\, but follwing that with pwd gets me back
>> to where I started--C:\Documents and Settings\administrator.
>>
>> If I want to execute a program with %run, I need to be where abc.py is
>> or, perhaps say something like %run C:\myPyPrograms\abc.py.
>> Dir doesn't work and I haven't been able to even see what's in the 
>> folder.
>>
>>
>> -- 
>>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>
>> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>>
>> "... humans'innate skills with numbers isn't much
>>  better than that of rats and dolphins."
>>   -- Stanislas Dehaene, neurosurgeon
>>
>>Web Page: 
>>
>>
>> --
>>  
>>
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

-- 
   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet  

 "... humans'innate skills with numbers isn't much
  better than that of rats and dolphins." 
   -- Stanislas Dehaene, neurosurgeon 
 
Web Page: 


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] greppable cheat sheet for matplotlib ?

2009-12-07 Thread denis
(Old) folks,
   is there a greppable list of matplotlib functions and attributes
along the lines of PyQt4.api
 PyQt4.QtGui.QAbstractScrollArea.viewport() -> QWidget
 PyQt4.QtGui.QAbstractScrollArea.maximumViewportSize() -> QSize
 ...
Grep is really fast, really simple, and can | less
to grep again / highlight to home in.


Thanks, cheers
   -- denis


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Comet

2009-12-07 Thread David Arnold
All,

Is there anything resembling Matlab's comet command?

D.

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Rotation 3D

2009-12-07 Thread David Arnold
All,

Is there any way to rotate a 3D plot_wireframe?

D.

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] animated axis

2009-12-07 Thread avee


andreyd wrote:
> 
> 
> This worked for me:
> to remove axis temporary and than to take background of the whole picture
> but without ticks and labels of this axis:
> 
> 

This suggestion did not resolve the problem.

But here is the solution. I have no idea why the first version is not
working.
I changed the threading technique:
  - from gobject.idle_add(run) to the fig.canvas.mpl_connect('draw_event',
start_anim)

I think it can be only that... Any ideas?

import matplotlib
matplotlib.use('GTKAgg')
from pylab import figure, show
import gobject, gtk
import time

fig = figure()
ax = fig.add_subplot(111)
ax.set_xlim(0, 30)

#fig.subplots_adjust(left=0.3, bottom=0.3) # check for flipy bugs
ax.grid() # to ensure proper background restore

ax.get_xaxis().set_animated(True)

fig.canvas.draw()


def run():
if run.background is None:
run.background = fig.canvas.copy_from_bbox(fig.bbox)

fig.canvas.restore_region(run.background)
i = run.cnt
ax.set_xlim(0+i,30+i)
fig.draw_artist(ax.get_xaxis())

fig.canvas.blit()

if run.cnt == 180:
gtk.main_quit()
raise SystemExit

run.cnt += 1
time.sleep(0.1) 
return True



def start_anim(event):
gobject.idle_add(run)
fig.canvas.mpl_disconnect(start_anim.cid)

start_anim.cid = fig.canvas.mpl_connect('draw_event', start_anim)


run.background = None
run.cnt = 0

show()

-- 
View this message in context: 
http://old.nabble.com/animated-axis-tp26635860p26678529.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Customize/disable keyboard shortcuts

2009-12-07 Thread Matthias Michler
Hi Jorge, Hello list,

unfortunately I cannot help you, but I understand your problem and would like 
to know about a solution, too. I encountered this problem in April/may 2007 
(http://old.nabble.com/skip-mpl-axes-interaction-during-key_press_event's-td10221576.html)
 
because of the 'l'ogarthmic scaling, 'g'ridding etc., but in the meanwhile 
the number of keyboard-shortcuts has even increased. Therefore in my opinion 
it is important to support disabling of these keyboard-shortcuts, because 
otherwise there is not much space left for individual (meaningful) shortcuts.

Furthermore I think this can also useful for buttons and sliders from 
matplotlib.widgets, because one don't want to scale or set grid upon these 
widgets, isn't it? 

What do other users think about that?

Thanks in advance for any comments or even solutions.

Kind regards,
Matthias

On Sunday 29 November 2009 12:10:09 Jorge Scandaliaris wrote:
> Hi,
> I have a strong preference to working with the keyboard instead of the
> mouse. Today I was working on a script to label a sequence of images (mark
> position and scale of a moving object). The default keyboard shortcuts are
> getting in my way, many keys are already used and moreover they are spread
> all over the keyboard. Looking at the doc, I could't find an easy way to
> customize or completely disable them. If someone can suggest a (not too
> coonvoluted) solution, I'd love to hear it.
>
> Cheers,
>
> Jorge


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] textbox / prompt in mpl / inputbutton

2009-12-07 Thread Matthias Michler
Hello list,

are there any new developments about a field to input text or numbers, which 
was discussed in thread "Prompt in MPL - NEVER MIND" in June 2007?

Especially I am interested if there exists a version of John Hunters 
textbox2.py working with current svn, because I am not able to resolve the 
differences between 0.91.2 and 1.0.svn.

Kind regards,
Matthias

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib build/install error

2009-12-07 Thread Dali Laadhar
Thanks a lot. 
Effectively, that was the missing headers 
--
yum install libpng-devel.x86_64
yum install freetype-devel.x86_64
--


Thanks,
Dali

- Original Message -
From: "Darren Dale" 
To: "Dali Laadhar" 
Cc: matplotlib-users@lists.sourceforge.net
Sent: Monday, December 7, 2009 2:05:27 PM
Subject: Re: [Matplotlib-users] Matplotlib build/install error

On Mon, Dec 7, 2009 at 7:26 AM, Dali Laadhar  wrote:
> Hey ALL
>
> I've been trying to install matplotlib-0.99.1.1.
> Getting build errors :
>
> 1/
> [u...@mymachine ~]$ uname -a
> Linux target-datalog 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 
> x86_64 x86_64 x86_64 GNU/Linux
>
> 2/ Used this link to download matplotlib:
> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/matplotlib-0.99.1.2.tar.gz/download
>
> 3/ Used python 2.6.2
>
> 4/ STEPS:
> [u...@mymachine downloads]$ wget 
> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/matplotlib-0.99.1.2.tar.gz/download
> [u...@mymachine downloads]$ tar -xzvf matplotlib-0.99.1.2.tar.gz
> [u...@mymachine downloads]$ cd matplotlib-0.99.1.1
> [u...@mymachine matplotlib-0.99.1.1]$ python setup.py build
>
> Got this error:
> 
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> In file included from src/ft2font.cpp:1:
> src/ft2font.h:13:22: error: ft2build.h: No such file or directory

You do not have the freetype2 headers installed. On ubuntu, I think
they are provided by the libfreetype6-dev package.

Darren

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Sphinx and ams-latex

2009-12-07 Thread Michael Droettboom
The mathmpl uses matplotlib's built-in mathtext rendering engine to 
render the math, which does not currently support any of the "grid" 
environments from ams-latex, such as "align".  If you need those, look 
at sphinx.ext.pngmath.

Mike

David Arnold wrote:
> All,
>
> If I am using this in my conf.py in Sphinx:
>
> extensions = ['matplotlib.sphinxext.mathmpl',
>   'matplotlib.sphinxext.only_directives',
>   'matplotlib.sphinxext.plot_directive']
>
> Is there a way I can use ams-latex constructs such as:
>
> \begin{align*}
> x+2y&=3\\
> 2x-3y&=4
> \end{align*}
>
> D.
>
> --
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing. 
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib build/install error

2009-12-07 Thread Darren Dale
On Mon, Dec 7, 2009 at 7:26 AM, Dali Laadhar  wrote:
> Hey ALL
>
> I've been trying to install matplotlib-0.99.1.1.
> Getting build errors :
>
> 1/
> [u...@mymachine ~]$ uname -a
> Linux target-datalog 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 
> x86_64 x86_64 x86_64 GNU/Linux
>
> 2/ Used this link to download matplotlib:
> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/matplotlib-0.99.1.2.tar.gz/download
>
> 3/ Used python 2.6.2
>
> 4/ STEPS:
> [u...@mymachine downloads]$ wget 
> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/matplotlib-0.99.1.2.tar.gz/download
> [u...@mymachine downloads]$ tar -xzvf matplotlib-0.99.1.2.tar.gz
> [u...@mymachine downloads]$ cd matplotlib-0.99.1.1
> [u...@mymachine matplotlib-0.99.1.1]$ python setup.py build
>
> Got this error:
> 
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> In file included from src/ft2font.cpp:1:
> src/ft2font.h:13:22: error: ft2build.h: No such file or directory

You do not have the freetype2 headers installed. On ubuntu, I think
they are provided by the libfreetype6-dev package.

Darren

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Matplotlib build/install error

2009-12-07 Thread Dali Laadhar
Hey ALL

I've been trying to install matplotlib-0.99.1.1. 
Getting build errors :

1/
[u...@mymachine ~]$ uname -a
Linux target-datalog 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 
x86_64 x86_64 x86_64 GNU/Linux

2/ Used this link to download matplotlib:
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/matplotlib-0.99.1.2.tar.gz/download

3/ Used python 2.6.2

4/ STEPS:
[u...@mymachine downloads]$ wget 
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/matplotlib-0.99.1.2.tar.gz/download
[u...@mymachine downloads]$ tar -xzvf matplotlib-0.99.1.2.tar.gz 
[u...@mymachine downloads]$ cd matplotlib-0.99.1.1
[u...@mymachine matplotlib-0.99.1.1]$ python setup.py build

Got this error:

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
In file included from src/ft2font.cpp:1:
src/ft2font.h:13:22: error: ft2build.h: No such file or directory
src/ft2font.h:14:10: error: #include expects "FILENAME" or 
src/ft2font.h:15:10: error: #include expects "FILENAME" or 
src/ft2font.h:16:10: error: #include expects "FILENAME" or 
src/ft2font.h:17:10: error: #include expects "FILENAME" or 
src/ft2font.h:18:10: error: #include expects "FILENAME" or 
src/ft2font.h:31: error: 'FT_Bitmap' has not been declared
src/ft2font.h:31: error: 'FT_Int' has not been declared
src/ft2font.h:31: error: 'FT_Int' has not been declared
src/ft2font.h:77: error: expected ',' or '...' before '&' token
src/ft2font.h:77: error: ISO C++ forbids declaration of 'FT_Face' with no type
src/ft2font.h:83: error: expected ',' or '...' before '&' token
src/ft2font.h:83: error: ISO C++ forbids declaration of 'FT_Face' with no type
src/ft2font.h:122: error: 'FT_Face' does not name a type
src/ft2font.h:123: error: 'FT_Matrix' does not name a type
src/ft2font.h:124: error: 'FT_Vector' does not name a type
src/ft2font.h:125: error: 'FT_Error' does not name a type
src/ft2font.h:126: error: 'FT_Glyph' was not declared in this scope
src/ft2font.h:126: error: template argument 1 is invalid
src/ft2font.h:126: error: template argument 2 is invalid
src/ft2font.h:127: error: 'FT_Vector' was not declared in this scope
src/ft2font.h:127: error: template argument 1 is invalid
src/ft2font.h:127: error: template argument 2 is invalid
src/ft2font.h:133: error: 'FT_BBox' does not name a type
src/ft2font.cpp:45: error: 'FT_Library' does not name a type
src/ft2font.cpp:96: error: variable or field 'draw_bitmap' declared void
src/ft2font.cpp:96: error: 'int FT2Image::draw_bitmap' is not a static member 
of 'class FT2Image'
src/ft2font.cpp:96: error: 'FT_Bitmap' was not declared in this scope
src/ft2font.cpp:96: error: 'bitmap' was not declared in this scope
src/ft2font.cpp:97: error: 'FT_Int' was not declared in this scope
src/ft2font.cpp:98: error: 'FT_Int' was not declared in this scope
src/ft2font.cpp:98: error: initializer expression list treated as compound 
expression
src/ft2font.cpp:98: error: expected ',' or ';' before '{' token
/home/lbuser/python/lbuser/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187:
 warning: 'int _import_array()' defined but not used
error: command 'gcc' failed with exit status 1


Any idea?


Thanks,
Dali

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 3D

2009-12-07 Thread Pierre de Buyl
Hello,

The Axes3D constructor accepts the keywords "azim" and "elev" to set  
the viewpoint of the figure.

As for the title, I could not find information in the examples or the  
api, so I suggest to add text with the text method. This solution  
lacks an automatic placement for the title, however.

I give an example in your code:

from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np

fig=plt.figure()
ax=axes3d.Axes3D(fig,azim=120)
x=np.linspace(-2,2,40)
y=np.linspace(-2,2,40)

X, Y=np.meshgrid(x,y)
Z=6-2*X**2

ax.plot_wireframe(X,Y,Z)
ax.set_xlabel('x-axis')
ax.set_ylabel('y-axis')
ax.set_zlabel('z-axis')

ax.text(0,0,9,'My Title')

plt.show()

Le 7 déc. 09 à 01:39, David Arnold a écrit :

> All, I have:
>
> from mpl_toolkits.mplot3d import axes3d
> import matplotlib.pyplot as plt
> import numpy as np
>
> fig=plt.figure()
> ax=axes3d.Axes3D(fig)
>
> x=np.linspace(-2,2,40)
> y=np.linspace(-2,2,40)
>
> X, Y=np.meshgrid(x,y)
> Z=6-2*X**2
>
> ax.plot_wireframe(X,Y,Z)
> ax.set_xlabel('x-axis')
> ax.set_ylabel('y-axis')
> ax.set_zlabel('z-axis')
>
> plt.show()
>
>
> How can I add a title and rotate the axes?
>
> D.
>
> -- 
> 
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users