Python: How do I save a graphic?
|
01-04-2023, 11:50 PM
Post: #8
|
|||
|
|||
RE: Python: How do I save a graphic?
Guenter,
I figured out a way to save graphic images to files from within Python. What works for me is to embed the function calls inside a call to the HOME EVAL() function inside the Python "hpprime.eval()" call. The EVAL() function is placed inside escaped single quotes like this: hpprime.eval('\'EVAL(<inserted function>)\''). The following Python program saves a GROB image created in G1 to the file "pic.png". Code:
If the EVAL() function isn't used, no file is saved. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)