-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
png option with name of the image to be saved as argument #123
Comments
note that in pyferret release 7.1, the batch option was available and described as follows:
|
The -batch option is still working, but is limited. Deprecated capabilities are unsupported and may be discontinued in the future. The basic capability of -batch with a filename is useful and should continue so I will remove the deprecated designatoin. The current status is this:
If there are FRAME commands, a script that draws three images will produce the files:
where the last one created, myimage.png, is the same as the image in ferret.png. Changes will be made so that if there are FRAME commands, then the three images will be saved as:
In the script we can use the FRAME command with no qualifiers, or FRAME/FILE=myimage.png can be used. Other qualifiers including /TRANSPARENT /ANNOTATE=/XPIXELS= and so on cannot be used when starting the session using -batch; and -batch combined with -transparent works only to make one image transparent. The idea of adding an optional filename to the -png startup option is appealing, but it would involve changes in the Python code that starts PyFerret and is more involved than the simple changes to improve the batch option. I will not do this at this time. |
Looking at issue #22, which describes the implementation of -png option, there is no reason not to allow specification of an image-file name with -png. I can to do that in the code that initializes the PyFerret session. This is a better solution for the request here than extending the use of -batch, which is an imitation of the classic-Ferret capability to write to metafiles The -png mode was implemented for use in LAS which makes only one image for each request. Multiple images from one script seem to work well, However in -png startup mode we have the limitation that any SET WINDOW commands apply to all plots. |
I am a very satisfied user with ferret and the option - batch that allows the saving of an image from the name of the argument given.
With pyferret this option is deprecated.
with pyferret it gives
The proposal notes to add additional lines with FRAME/... into your script is very less convenient than just the use of the -batch option because you have to modify your code, creation 2 versions, one original, one for the capture.
I would like to retrieve this functionality perhaps by adding a argument to the -png option for example ?
The text was updated successfully, but these errors were encountered: