[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58391] Allow figure formats in saveas functio
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #58391] Allow figure formats in saveas function |
Date: |
Mon, 18 May 2020 10:43:00 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL:
<https://savannah.gnu.org/bugs/?58391>
Summary: Allow figure formats in saveas function
Project: GNU Octave
Submitted by: gyom
Submitted on: Mon 18 May 2020 02:42:59 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
The saveas function should allow to save *.ofig and *.fig files, as in
Matlab:
https://www.mathworks.com/help/matlab/ref/saveas.html
I attach a patch that does so. The default format if none is specified and if
the filename doesn't have an extension is "pdf", while it is "fig" in Matlab.
I haven't changed this behavior for backward compatibility but I would vote
for changing it - it is still possible to convert a *.ofig file into *.pdf so
no information would be lost by someone surprised by the change.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 18 May 2020 02:42:59 PM UTC Name: patch_saveas.diff Size: 2KiB
By: gyom
<http://savannah.gnu.org/bugs/download.php?file_id=49114>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58391>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58391] Allow figure formats in saveas function,
Guillaume <=