octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64510] octave does not support saving plots t


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #64510] octave does not support saving plots to files without an extension
Date: Thu, 3 Aug 2023 10:20:50 -0400 (EDT)

Update of bug #64510 (project octave):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

I'm guessing you are referring to the `saveas` function. Is that correct?

If you do, I don't know how that could be done without breaking compatibility
with Matlab:
https://de.mathworks.com/help/matlab/ref/saveas.html
> saveas(fig,filename,formattype) creates the file using the specified file
format, formattype. *If you do not specify a file extension in the file name,
for example, 'myplot', then the standard extension corresponding to the
specified format automatically appends to the file name.* If you specify a
file extension, it does not have to match the format. saveas uses formattype
for the format, but saves the file with the specified extension. Thus, the
file extension might not match the actual format used.

Is there another function that you have in mind?

The same goes for the `print` function:
https://de.mathworks.com/help/matlab/ref/print.html
> print(filename,formattype) saves the current figure to a file using the
specified file format, such as print('BarPlot','-dpng'). *If the file name
does not include an extension, then print appends the appropriate one.*


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64510>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]