From: zhang c. <zha...@gm...> - 2008-04-12 01:21:23
|
hi I am a beginner to use py-gnuplot, here are gnupot commands, and I want to realize them in py-gnuplot, but my program can't run. gnuplot: set key left box set samples 50 plot [-10:10] sin(x),atan(x),cos(atan(x)) my program: #!/usr/bin/env python import Gnuplot, Gnuplot.funcutils from numpy import * import time g = Gnuplot.Gnuplot(debug=1) g('set key left box') g('set samples 50') g.plot([[-10:10]],sin(x),atan(x),cos(atan(x))) time.sleep(5) |