bugGNU Octave - Bugs: bug #36787, Line colors occasionally get saved...

 
 

bug #36787: Line colors occasionally get saved to file incorrectly.

Submitter:  None
Submitted:  Thu 05 Jul 2012 05:48:00 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Bob Short Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 06 Jul 2012 05:42:49 AM UTC, comment #1: 

I don't think this is a bug.  For the saveas() command 'eps' indicates monochrome output.  If you want color use the format 'epsc' or switch to the print command which has more options than saveas.  The following two solutions work for me.


saveas(gcf(), [fname,'.epsc']);
OR
print(gcf(), [fname,'.eps'], '-color');


Rik <rik5>
Group administrator
Thu 05 Jul 2012 05:48:00 PM UTC, original submission:  

This bug occurs on both the development version, tip 355ff41f3f97, and 3.6.2.

Occasionally when I create a plot that has multiple traces in color, when the plot is saved to a file all distinguishing line features are lost.  In the attached example the plot is all black and white.

I have attached a script that demonstrates the problem along with the resulting files.  In this stripped-down version the .eps file lost color but the .fig file came out with colors.  In the original script neither file had color.  I used fltk for the attached figures, but gnuplot had similar results.

This is an erratic bug - it only happens occasionally and I have not been able to pinpoint specifically what combination of commands causes it.  I have a set of very similar scripts, some of which work and some of which don't.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #26152:  plot_fltk.eps added by None (168KiB - application/postscript)
file #26151:  plot_fltk.fig added by None (109KiB - application/x-xfig)
file #26150:  testLinestyles.m added by None (421B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-07-06 rik5 StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2012-07-05 None Attached File- Added testLinestyles.m, #26150
        Attached File- Added plot_fltk.fig, #26151
        Attached File- Added plot_fltk.eps, #26152

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code