bugGNU Octave - Bugs: bug #56574, Saving a plot with minor grid...

 
 

bug #56574: Saving a plot with minor grid lines causes a ghostscript error

Submitter:  None
Submitted:  Tue 02 Jul 2019 11:47:04 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Robert William Ellenberg Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Jul 2019 05:10:24 PM UTC, comment #1: 

Thank you for the bug report. The same warning is issued whether or not "grid minor on" is used. What you are probably noticing is that the warning is only issued once per Octave session, if you quit Octave completely and try again you will see the warning in either case.

The warning is correct that ghostscript is not in the flatpak bundle, and this has supposedly been fixed in the flatpak repository (see https://github.com/flathub/org.octave.Octave/issues/59), but a new successful build has not been published yet.

Despite the warning, not error, the output file is saved successfully with either set of commands. There is no Octave bug here.

Mike Miller <mtmiller>
Group Member
Tue 02 Jul 2019 11:47:04 PM UTC, original submission:  

On Octave 5.1 (installed from flatpak), the following code produces a ghostscript error:

clf
figure(1)
plot([1,2],[3,4])
grid on
grid minor on
saveas(1,'Test.png')


warning: print.m: Ghostscript binary is not available.  Only eps output is possible
warning: called from
    _print_parse_opts_ at line 487 column 7
    print at line 416 column 8
    saveas at line 110 column 3
    test_bug at line 6 column 3

However, running the same code without "grid minor on" works fine.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-03 mtmiller StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code