[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62287] Plotting: printing to pdf raises error
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #62287] Plotting: printing to pdf raises error for non-initialized parameter papersize_points |
Date: |
Mon, 11 Apr 2022 07:46:17 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62287>
Summary: Plotting: printing to pdf raises error for
non-initialized parameter papersize_points
Project: GNU Octave
Submitted by: None
Submitted on: Mon 11 Apr 2022 11:46:15 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: 6.3.0
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
This bug exists since 6.3.0 and is persistent also in 7.1.0.
With 6.3.0 release a new warning message was integrated into printing pdfs to
file in private function
octave/7.1.0/m/plot/util/private/__print_parse_opts__.m.
The attached example (file test_plot_71.m) yields the following error
message:
error: 'papersize_points' undefined near line 502, column 14
error: called from
__print_parse_opts__ at line 503 column 9
print at line 420 column 8
test_plot_71 at line 37 column 1
Papersize_points are only initialized in this private function, if parameter
canvas_size is empty. However, if this value is set, the call to set
papersize_points never is executed and therefore the intended warning message
fails.
Printing png files is possible.
Since this warning messages was not there in releases prior to 6.3.0, I guess
there are two ways to fix the issue:
1) remove warning message and related if condition in line 498
2) initialize papersize_points correctly. For this solution I have attached
the changes (File bug_papersize.patch) in order to keep the warning.
However, overall it is unclear to me how this variable is used at all besides
issueing a warning. Papersize_position is not part of the returned structure
arg_st.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 11 Apr 2022 11:46:15 AM UTC Name: test_plot_71.m Size: 1KiB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=53071>
-------------------------------------------------------
Date: Mon 11 Apr 2022 11:46:15 AM UTC Name: bug_papersize.patch Size: 1KiB
By: None
<http://savannah.gnu.org/bugs/download.php?file_id=53072>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62287>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62287] Plotting: printing to pdf raises error for non-initialized parameter papersize_points,
anonymous <=