By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,677 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,677 IT Pros & Developers. It's quick & easy.

3-dimensional plot in Python?

P: n/a
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
Share this Question
Share on Google+
8 Replies


P: n/a
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

P: n/a

"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

P: n/a
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

P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
[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

P: n/a
[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.