Lisa Tauxe | 1 Oct 01:28
Favicon

axes3D

Are there any plans for incorporating this (what used to be mplot3d)  
into the new matplotlib version?

Lisa Tauxe
Scripps Institution of Oceanography
La Jolla, CA 92093-0220
tel: (858) 534-6084
fax: (858) 534-0784
http://magician.ucsd.edu/~ltauxe/
ltauxe@...

NOTE: Fedex or other courier deliveries address:

300C Ritter Hall
8635 Discovery Way
La Jolla, CA 92037

-------------------------------------------------------------------------
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=/
Eric Firing | 1 Oct 10:05
Favicon
Gravatar

Re: colors: rgb tuple vs. tuple of rgb values

Thomas Guettler wrote:
> Hi,
> 
> this snippet works if there are more (or less) elements in the menMeans 
> tuple. If
> there are three, it does not work since the bar command thinks the three
> element tuple is a tuple of rgb values. But it is a (r, g, b) tuple.
> 
> I think it is a bug. Should I create a ticket?

Fixed in svn 6140.  Thanks for the report.

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=/
Eric Firing | 1 Oct 10:08
Favicon
Gravatar

Re: axes3D

Lisa Tauxe wrote:
> Are there any plans for incorporating this (what used to be mplot3d)  
> into the new matplotlib version?

Not that I know of.  It was not being maintained even before the move to 
0.98.x.

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=/
Florian Koelling | 1 Oct 18:34
Picon
Picon

plotting without using pylab

Hi Folks!

Is there a way to plot simple x/y Data in matplotlib WITHOUT using the
"import pylab" command? (in all examples I only saw pylab).

I' working with openbabel(pybel) as well and I've got serious problems
whenever I use "from pylab import plot" or similar commands -

(if I do, SDF files aren't read out anymore properly...)

Thanks alot

-------------------------------------------------------------------------
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=/
Michael Droettboom | 1 Oct 18:58

Re: plotting without using pylab

All of the examples in the "api" directory use the object-oriented 
interface, rather than the pylab one.

Florian Koelling wrote:
> Hi Folks!
>
> Is there a way to plot simple x/y Data in matplotlib WITHOUT using the
> "import pylab" command? (in all examples I only saw pylab).
>
> I' working with openbabel(pybel) as well and I've got serious problems
> whenever I use "from pylab import plot" or similar commands -
>  
> (if I do, SDF files aren't read out anymore properly...)
>
>
> Thanks alot
>
> -------------------------------------------------------------------------
> 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@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

--

-- 
Michael Droettboom
(Continue reading)

Gary Pajer | 1 Oct 19:10
Picon

Re: plotting without using pylab

On Wed, Oct 1, 2008 at 12:34 PM, Florian Koelling <florian.koelling-3immqusGtKI@public.gmane.org> wrote:
Hi Folks!

Is there a way to plot simple x/y Data in matplotlib WITHOUT using the
"import pylab" command? (in all examples I only saw pylab).

I' working with openbabel(pybel) as well and I've got serious problems
whenever I use "from pylab import plot" or similar commands -

(if I do, SDF files aren't read out anymore properly...)


Thanks alot

If the problem is "namespace pollution"  (one package overriding names defined earlier) then the following should work:

from pylab import plot as pplot  (where "pplot" is an unused name)

or

import pylab as p

then use, p.plot() instead of plot()
(this latter method is what I use.)

hth,
gary
 


-------------------------------------------------------------------------
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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
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@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
greg7201 | 1 Oct 22:17
Picon
Favicon

Need to do a legend for a broken_barh plot


Any ideas?  I can't seem to get it to work.  I am basically doing a
horizontal stacked bar chart, and using different colors for the stacks. 
Just need some way to identify what each color stands for.
--

-- 
View this message in context: http://www.nabble.com/Need-to-do-a-legend-for-a-broken_barh-plot-tp19768229p19768229.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
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=/
Andrew Charles | 2 Oct 08:53
Picon

OSX CDAT Matplotlib interactive plots crash

The latest beta of CDAT (Climate Data Analysis Tools, widely used in
the atmospheric/oceanographic sciences) is distributed with the
matplotlib source included.

On OSX, while it seems to compile without a hitch, plotting
interactively (or calling show() ) with the TkAgg backend results in a
seg fault. The non-interactive backends have so far worked just fine.

The output from a simple interactive hello world line plot with
--verbose-helpful set is:

=================
Executing /opt/cdat/bin/python
$HOME=/Users/acharles
CONFIGDIR=/Users/acharles/.matplotlib
matplotlib data path /opt/cdat/lib/python2.5/site-packages/matplotlib/mpl-data
loaded rc file /opt/cdat/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc
matplotlib version 0.98.3
verbose.level helpful
interactive is False
units is False
platform is darwin
Using fontManager instance from /Users/acharles/.matplotlib/fontManager.cache
backend TkAgg version 8.5
Testing matplotlib
Segmentation fault
=================

CDAT builds almost everything from source. I've always found building
matplotlib for OSX to be tricky, so tend to just install binary eggs
these days. Nevertheless I have tried a couple of solutions:

1. setting export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig
2. editing setupext.py to put the system X11 libraries ahead of any
fink/macports versions
3. setting CFLAGS="-Os -arch i386 -arch ppc" LDFLAGS="-Os -arch i386 -arch ppc"

but to no avail. Is there a simple solution that can be applied to the
script that builds matplotlib?

-------------------------
Andrew Charles

-------------------------------------------------------------------------
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=/
Florian Koelling | 2 Oct 10:49
Picon
Picon

Re: plotting without using pylab

Hello again!

I think it's not a namespace problem.
I tried:

from pylab import plot as pplot
import pylab as p

As result I received busted SD Files. I ' ve this problem nearly for
three months - so I switched to Gnuplot - now recognizing that it is
doesn't  have
enough performance to make a large amount of plots.

(I tried local imports in a function as well -- same result)

Actually I'm not using any matplotlib code -- just the import statement
-- and it's enough that all goes to hell.

With "import matplotlib" I do not have  those  problems - most plotting
examples are dealing with pylab -- what can I use instead?

Maybe one of you Harry Plotters  has  an idea!

Thanks,

Florian

Gary Pajer wrote:
> On Wed, Oct 1, 2008 at 12:34 PM, Florian Koelling
> <florian.koelling@...
<mailto:florian.koelling@...>> wrote:
>
>     Hi Folks!
>
>     Is there a way to plot simple x/y Data in matplotlib WITHOUT using the
>     "import pylab" command? (in all examples I only saw pylab).
>
>     I' working with openbabel(pybel) as well and I've got serious problems
>     whenever I use "from pylab import plot" or similar commands -
>
>     (if I do, SDF files aren't read out anymore properly...)
>
>
>     Thanks alot
>
>
> If the problem is "namespace pollution"  (one package overriding names
> defined earlier) then the following should work:
>
> from pylab import plot as pplot  (where "pplot" is an unused name)
>
> or
>
> import pylab as p
>
> then use, p.plot() instead of plot()
> (this latter method is what I use.)
>
> hth,
> gary
>  
>
>
>
>     -------------------------------------------------------------------------
>     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=/
>     <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>     _______________________________________________
>     Matplotlib-users mailing list
>     Matplotlib-users@...
>     <mailto:Matplotlib-users@...>
>     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@...
> 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=/
Jeff Whitaker | 2 Oct 13:57
Favicon

Re: OSX CDAT Matplotlib interactive plots crash

Dean N. Williams wrote:
> Hi Jeff,
>
>     You are correct on both assumptions below. On the Mac, we know how 
> to build CDAT using framework and have done so for various projects. 
> Is there a huge advantage for building CDAT on the Mac using 
> framework?  Perhaps in the future we will do this as the default.
>
> Thanks for the help on this.
>
> Best regards,
>     Dean

Dean:  If you use a framework build, you can use the builtin mac-native 
Tk and Wx.  If you use unix python, you must use X11 versions of the 
toolkits.  Personally, I don't mind that, but a lot of people don't want 
to mess with X11.  I like it because you can run stuff on your mac 
remotely and display windows over an ssh tunnel.

-Jeff
>
> On Oct 2, 2008, at 4:39 AM, Jeff Whitaker wrote:
>
>> Andrew Charles wrote:
>>> The latest beta of CDAT (Climate Data Analysis Tools, widely used in
>>> the atmospheric/oceanographic sciences) is distributed with the
>>> matplotlib source included.
>>>
>>> On OSX, while it seems to compile without a hitch, plotting
>>> interactively (or calling show() ) with the TkAgg backend results in a
>>> seg fault. The non-interactive backends have so far worked just fine.
>>>
>>> The output from a simple interactive hello world line plot with
>>> --verbose-helpful set is:
>>>
>>> =================
>>> Executing /opt/cdat/bin/python
>>> $HOME=/Users/acharles
>>> CONFIGDIR=/Users/acharles/.matplotlib
>>> matplotlib data path 
>>> /opt/cdat/lib/python2.5/site-packages/matplotlib/mpl-data
>>> loaded rc file 
>>> /opt/cdat/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc
>>> matplotlib version 0.98.3
>>> verbose.level helpful
>>> interactive is False
>>> units is False
>>> platform is darwin
>>> Using fontManager instance from 
>>> /Users/acharles/.matplotlib/fontManager.cache
>>> backend TkAgg version 8.5
>>> Testing matplotlib
>>> Segmentation fault
>>> =================
>>>
>>> CDAT builds almost everything from source. I've always found building
>>> matplotlib for OSX to be tricky, so tend to just install binary eggs
>>> these days. Nevertheless I have tried a couple of solutions:
>>>
>>> 1. setting export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig
>>> 2. editing setupext.py to put the system X11 libraries ahead of any
>>> fink/macports versions
>>> 3. setting CFLAGS="-Os -arch i386 -arch ppc" LDFLAGS="-Os -arch i386 
>>> -arch ppc"
>>>
>>> but to no avail. Is there a simple solution that can be applied to the
>>> script that builds matplotlib?
>>>
>>>
>>
>> Andrew:   I think I ran into this before.  Correct me if I'm wrong ..
>>
>> 1) CDAT builds a unix version (not a framework build) of python for 
>> you, and installs itself in the unix python.
>> 2) CDAT links against X11 versions of all the GUI toolkits (including 
>> Tk).
>>
>> I think the segfault happens because you're picking up either the 
>> headers or libs for the framework version of Tk included with MacOS 
>> X.  You need to use an X11 build.  To fix this, you need to edit the 
>> matplotlib setupext.py file to make sure that it's not finding the 
>> framework version of Tk (i.e, make sure the variable tk_framework 
>> ends up being zero or False).
>>
>> HTH,
>>
>> -Jeff
>>
>> -- 
>> Jeffrey S. Whitaker         Phone : (303)497-6313
>> NOAA/OAR/CDC  R/PSD1        FAX   : (303)497-6449
>> 325 Broadway                Boulder, CO, USA 80305-3328
>>
>

--

-- 
Jeffrey S. Whitaker         Phone : (303)497-6313
NOAA/OAR/CDC  R/PSD1        FAX   : (303)497-6449
325 Broadway                Boulder, CO, USA 80305-3328

-------------------------------------------------------------------------
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=/

Gmane