Python: How do I save a graphic?
|
10-07-2021, 09:19 PM
Post: #4
|
|||
|
|||
RE: Python: How do I save a graphic?
Thanks for your inputs, but that didn't help
Anyway a little bit of progress. When I end the Mandelbrot Explorer, and I am in "Python Numeric View" and I enter Code: from hppprime import * then G1 is successfully stored in test.png. But when I exchange quotes and double quotes a Syntax Error is raised. So far so good, that's an easy one. Next try: Code: from hppprime import * Results in Syntax Error Next try: Code: from hppprime import * No Error, but also no file: test.png type(xx) gives <class 'str'>, but print(xx) gives Error:Syntax Error of course as you can't print a class. I think. Next try: Function in the Mandelbrot Explorer Code: def save(): Tataa test3.png is there Next try: Code: def save(): Hmm .... Conclusion so far: providing a file name directly works but submitting a file name as a variable does not. any suggestions? Günter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)