471,077 Members | 759 Online

# 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
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
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.

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...

http://matplotlib.sf.net

"Long since" being .... When?

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

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...

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,
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.