On Fri, Jun 4, 2010 at 12:13 PM, Shiv Shankar <fsla...@gmail.com> wrote:

> Hello,
>
> I have a finite 2 dimensional plane. I have a set of co-ordinates, which is
> basically the movement of an object.
> The co-ordinates are derived from a set of equations considering various
> factors.
> After a set of initial research and tryouts i *quickly *decided on using *
> pygame* to plot the co-ordinates on a 2D plane.
>
>
 Wrong choice. When a software exists which is the perhaps the most
powerful plotting program *ever* written, choosing a gaming library
for this demonstrates poor choice, unless there is a specific reason
 for that - like for example, if you are already familiar with Pygame or
 SDL.

I am talking about "gnuplot" here.

The commands are pretty intuitive. It gives you an interactive
prompt, like python. For example, here is how to plot
a curve for the function (3*x*x - 8*x) over x range of -50:50
and y-range of -10:100

gnuplot> plot [-30:30] [-10:500] (3*x*x - 8*x)

You can also do 3-d plots.
Here is the 3d plot of a complex function in 2d plane.

gnuplot> splot [-30:30] [-10:500] (3*x*x - 8*x + y*y)

Has any one in here implemented this sort of a program ? Which library did
> you use ? if possible could you explain why you chose the particular
> library.


 Gnuplot is its own "programming language", but if you want a Python
 interface, try gnuplot.py.

 http://gnuplot-py.sourceforge.net/



>
>
> -- shiv
> _______________________________________________
> BangPypers mailing list
> BangPypers@python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
--Anand
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to