about popen and gnuplot
Bengt Richter
bokr at oz.net
Sun Mar 24 12:42:40 EST 2002
On Sun, 24 Mar 2002 20:27:57 +0800, yoast <yoast at whu.edu.cn> wrote:
>ZGVhciBhbGwsDQoJaSBoYXZlIGEgcXVlc3Rpb24gYWJvdXQgcG9wZW4gYW5kIGdudXBsb3QuDQoJ
>aSBnb3QgYW4gZXhhbXBsZSBmcm9tIEFTUE4sIHVzZWQgdG8gZHJpdmUgZ251cGxvdCB3aXRoIHB5
>dGhvbiANCm9uIF9fd2luMzJfX18gIHBsYXRmb3JtLiB0aGUgY29kZSBsb29rcyBsaWtlIGJlbG93
>Lg0KDQppbXBvcnQgb3MNCmY9b3MucG9wZW4oJ2Q6L3h4eC9wZ251cGxvdC5leGUnLCAndycpDQpw
>cmludCA+PmYsICJwIHNpbih4KSINCmYuZmx1c2goKQ0KDQoJaSBjYW4gc2VlIHRoZSBnbnVwbG90
>J3MgaW50ZXJhY3RpdmUgd2luZG93LCBidXQgY2FuJ3QNCnNlZSB0aGUgcGxvdCB3aW5kb3cuIHdo
>eT8gd2hhdCBzaG91bGQgYmUgZG9uZSB0byBtYWtlIGl0DQp3b3JrPyBpIHNlZSB0aGUgY29kZSBv
>ZiBnbnVwbG90LnB5IChhIHNvdXJjZWZvcmdlIHByb2plY3QpLA0KdGhlIGNvZGUgaW4gdGhhdCBz
>Y3JpcHQgaXMgYWJzb2x1dGVseSBzYW1lIGFzIG1pbmUgOigNCg0KYmVzdCByZWdhcmRzLA0KeW9h
>c3RAd2h1LmVkdS5jbg0KMy4yNA0K
>
Above is what my news reader shows me from your message.
Public service base64 conversion:
_________________________________________________________
dear all,
i have a question about popen and gnuplot.
i got an example from ASPN, used to drive gnuplot with python
on __win32___ platform. the code looks like below.
import os
f=os.popen('d:/xxx/pgnuplot.exe', 'w')
print >>f, "p sin(x)"
f.flush()
i can see the gnuplot's interactive window, but can't
see the plot window. why? what should be done to make it
work? i see the code of gnuplot.py (a sourceforge project),
the code in that script is absolutely same as mine :(
best regards,
yoast at whu.edu.cn
3.24
_________________________________________________________
I have yet to try gnuplot. Maybe someone else will help you now ;-)
Regards,
Bengt Richter
More information about the Python-list
mailing list