Generating the strings should be easy if you're familiar with Python, what part are you having issues with?
- dfb
in the code: g('set output \"test.ps\", I need to keep saving files as test1, test2, test2.. This just generates all graphs with the name test.ps
- amitash
use g('set output \"test%d.ps\"' % n), and make n increase.
- Thomas K
@Thomas, post your answer as an answer please.
- BrainStorm
1 Answers
1
votes
You need to use string formatting. The simplest option is to use
g('set output \"test%d.ps\"' % n)`
and make n increase.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
g('set output \"test%d.ps\"' % n), and make n increase. - Thomas K