471,077 Members | 759 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,077 software developers and data experts.

3-dimensional plot in Python?

I want to make a 3d plot. x is a vector(discrete), y is also a
vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not
a function, just discrete values for each pair of x,y)

I want to show them on a two dimensional plot by showing z(x,y) with
colors.

Thanks for any hint

Nov 11 '05 #1
8 4670
On 2005-11-11, questions? <un************@hotmail.com> wrote:
I want to make a 3d plot. x is a vector(discrete), y is also a
vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not
a function, just discrete values for each pair of x,y)

I want to show them on a two dimensional plot by showing z(x,y) with
colors.

http://matplotlib.sourceforge.net/
Nov 11 '05 #2

"questions?" <un************@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I want to make a 3d plot. x is a vector(discrete), y is also a
vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not
a function, just discrete values for each pair of x,y)

I want to show them on a two dimensional plot by showing z(x,y) with
colors.

Thanks for any hint


SciPy is your friend: Provides interfaces to several plot engines, including
gnuplot.
Nov 22 '05 #3
Frithiof Andreas Jensen wrote:
"questions?" <un************@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I want to make a 3d plot. x is a vector(discrete), y is also a
vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not
a function, just discrete values for each pair of x,y)

I want to show them on a two dimensional plot by showing z(x,y) with
colors.

Thanks for any hint


SciPy is your friend: Provides interfaces to several plot engines, including
gnuplot.


Those interfaces are long since deprecated. Please use matplotlib instead.

http://matplotlib.sf.net

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Nov 22 '05 #4

"Robert Kern" <ro*********@gmail.com> wrote in message
news:ma**************************************@pyth on.org...
Those interfaces are long since deprecated. Please use matplotlib instead.

http://matplotlib.sf.net


"Long since" being .... When?

I recently installed SciPy and it did not say anything about "deprecated"!
Nov 22 '05 #5
Google for "MayaVi"

It's overkill for what you've described (it doesn't even make 2D graphs
afaik), but it could draw your function as a 3D surface. And besides,
it's way cool.

Nov 22 '05 #6
Frithiof Andreas Jensen wrote:
"Robert Kern" <ro*********@gmail.com> wrote in message
news:ma**************************************@pyth on.org...
Those interfaces are long since deprecated. Please use matplotlib instead.

http://matplotlib.sf.net


"Long since" being .... When?

I recently installed SciPy and it did not say anything about "deprecated"!


Only xplt ever got much developer TLC. For the past year or two,
whenever someone comes to the mailing list asking about some problem
with {x,g,wx}plt, we've been referring them to matplotlib. During the
transition to the new scipy_core, all of them have been moved to the
sandbox/ directory and won't be returning. If you're using xplt, some
people mentioned that they might be interested in maintaining it, but it
will have to be forked off into it's own project.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Nov 22 '05 #7
[Frithiof Andreas Jensen]
[un************@hotmail.com]
I want to make a 3d plot. x is a vector(discrete), y is also
a vector(discrete), for each pairwise x,y I have a value z(x,y)(it is
not a function, just discrete values for each pair of x,y). I want
to show them on a two dimensional plot by showing z(x,y) with colors.

SciPy is your friend: Provides interfaces to several plot engines, including
gnuplot.


For such things, I like R (from http://www.r-project.org), for which
also exist a few Python interfaces (I use http://rpy.sourceforge.net).
For communication between Python and R, Python Numeric facilities are
usable, yet not required. Moreover, with 3D-accelerated cards or
simulations thereof, OpenGL tools (see http://rgl.neoscientists.org)
allow you to interactively wander into your plot, somehow.

The combination is worth. What may appear as a drawback is the need to
become acquainted with R, the system and the language. But if you
happen to do scientific works, this really is a worth investment.

--
François Pinard http://pinard.progiciels-bpi.ca
Nov 22 '05 #8
[Frithiof Andreas Jensen]
[un************@hotmail.com]
I want to make a 3d plot. x is a vector(discrete), y is also
a vector(discrete), for each pairwise x,y I have a value z(x,y)(it is
not a function, just discrete values for each pair of x,y). I want
to show them on a two dimensional plot by showing z(x,y) with colors.

SciPy is your friend: Provides interfaces to several plot engines, including
gnuplot.


For such things, I like R (from http://www.r-project.org), for which
also exist a few Python interfaces (I use http://rpy.sourceforge.net).
For communication between Python and R, Python Numeric facilities are
usable, yet not required. Moreover, with 3D-accelerated cards or
simulations thereof, OpenGL tools (see http://rgl.neoscientists.org)
allow you to interactively wander into your plot, somehow.

The combination is worth. What may appear as a drawback is the need to
become acquainted with R, the system and the language. But if you
happen to do scientific works, this really is a worth investment.

--
François Pinard http://pinard.progiciels-bpi.ca
Nov 22 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Paul Cochrane | last post: by
7 posts views Thread by diffuser78 | last post: by
1 post views Thread by oyinbo55 | last post: by
reply views Thread by Santix | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.