[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53535] print with eps driver should use '-tig
From: |
Hugo Raguet |
Subject: |
[Octave-bug-tracker] [bug #53535] print with eps driver should use '-tight' bbox by default for Matlab compatibility |
Date: |
Sat, 31 Mar 2018 14:51:20 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.10.0 Chrome/61.0.3163.140 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?53535>
Summary: print with eps driver should use '-tight' bbox by
default for Matlab compatibility
Project: GNU Octave
Submitted by: snake
Submitted on: Sat 31 Mar 2018 06:51:19 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.2
Operating System: GNU/Linux
_______________________________________________________
Details:
When printing in eps format with 'print',
Matlab
<https://fr.mathworks.com/help/matlab/ref/print.html?searchHighlight=print&s_tid=doc_srchtitle>
uses tight bounding box by default, which can be changed by setting the
'-loose' option
Octave <https://octave.org/doc/v4.0.1/Printing-and-Saving-Plots.html> uses
loose bounding box by default, which can be changed by setting the '-tight'
option.
Now, any Matlab code can be ported to Octave because the Octave also
understands the '-loose' option, but I am afraid some Octave code cannot be
ported to Matlab because Matlab does not know any '-tight' option.
It would be nice if code I write for Octave could be directly run by potential
Matlab users, without having to test for wether its Matlab or Octave being run
and duplicating code.
As a side note, the _tight_ behavior really should be the default, in most
case the _loose_ bounding box is arbitrary and is not satisfying.
Attached is a very simple patch.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 31 Mar 2018 06:51:19 PM UTC Name: print_eps_tight.patch Size: 782B
By: snake
<http://savannah.gnu.org/bugs/download.php?file_id=43745>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53535>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53535] print with eps driver should use '-tight' bbox by default for Matlab compatibility,
Hugo Raguet <=