473,388 Members | 1,499 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 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 4768
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dr. Colombes | last post by:
MatPlotLib question: How to get more different size plot symbols in the plot function ? Is there a way to get different size squares (or circles or triangles, etc.) ? For example, in a two...
1
by: Dr. Colombes | last post by:
Using MatPlotLib plot function, is there a way to get variable size plot symbols? For example, using symbol strings like 'o' (circle), 's' (square), 'x' (cross), etc., is there a way to specify...
8
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
1
by: Bo Peng | last post by:
Dear list, I am using rpy, a python module to control statistical package R from python. Running the following commands >>> from rpy import * >>> r.plot(0) will pass command 'plot' to R...
7
by: diffuser78 | last post by:
My python program spits lot of data. I take that data and plot graphs using OfficeOrg spredsheet. I want to automate this task as this takes so much of time. I have some questions. 1. Which is...
1
by: dazzler | last post by:
Hi! I just moved using wxpython so I'm a quite newbie. I was wondering how to update plotcanvas? In my code I made button with event to update plotcanvas with new results, but how to properly do...
1
by: oyinbo55 | last post by:
I am trying to use the pylab plot command on my laptop running Ubuntu 6.06 (Dapper). Although the plot command works fine on my XP desktop at work, I cannot open the plot window on the laptop. I...
0
by: Santix | last post by:
Thanks a lot because it works with g.load("power.p") But now I have this problem gnuplotload 'power.p' gnuplotset terminal postscript enhanced color gnuplotset output "spectrum.ps"...
1
by: Dave067 | last post by:
Hi folks I am teaching myself Python by working through Hans Petter Langtangen's excellent book "Primer on Scientific Programming in Python". The exercises in chapter 4 of the book require the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.