Gnuplot on two axis, with python-gnuplot

David Maslen david.maslen at iname.com
Tue Jan 25 21:00:07 EST 2000


I'm trying to write a script to pass an csv file of stock prices and
plot the results on a gnuplot graph, rather like yahoo finance does.

The only problem with the attached script is it tries to use the first
X axis for both price AND volume. Since the scale is vastly different
this doesn't work. So I need to put the first dataset on the left y
axis and the second on the right axis. The command in gnuplot is
axes=x1y1 and axes=x1y2 but I can't figure out how to pass that
information to the Gnuplot.Data instance?

If anyone can get me back on track I'd appreciate it.

thanks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stock-gnuplot.py
Type: application/octet-stream
Size: 2406 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000126/1ef7ab76/attachment.obj>


More information about the Python-list mailing list