[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64473] octave does not allow saving figures t
From: |
Janez Žemva |
Subject: |
[Octave-bug-tracker] [bug #64473] octave does not allow saving figures to stdout |
Date: |
Wed, 26 Jul 2023 03:56:20 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64473>
Summary: octave does not allow saving figures to stdout
Group: GNU Octave
Submitter: janezz55
Submitted: Wed 26 Jul 2023 07:56:17 AM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 8.2.0 8.X Series Bug Fix Release
Discussion Lock: Any
Operating System: Any
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 26 Jul 2023 07:56:17 AM UTC By: Janez Žemva <janezz55>
I need to stave figures in svg and png formats to stdout, unfortunately this
does not work:
saveas(gcf, "/dev/stdout", "svg");
error: print: cannot open file /dev/stdout.svg for writing
error: called from
print at line 447 column 7
saveas at line 150 column 5
I have traced the issue to the file __print_parse_opts__.m, line 358:
if (dot == 0 && ! isempty (arg_st.name) && ! isempty (default_suffix))
arg_st.name = [arg_st.name "." default_suffix];
endif
I propose either a new print option (e.g. -noextappend) is added, or a special
filename (e.g. -) is designated as stdout (what to do with stderr?).
The issue on SO:
https://stackoverflow.com/questions/76746221/save-octave-figure-to-stdout
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64473>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #64473] octave does not allow saving figures to stdout,
Janez Žemva <=