bugGNU Octave - Bugs: bug #52946, Using option 'markerfacecolor' in...

 
 

bug #52946: Using option 'markerfacecolor' in plot options when plotting using 'hold' causes black text to save incorrectly.

Submitter:  None
Submitted:  Mon 22 Jan 2018 09:46:12 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  David Robinson Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 22 Jan 2018 01:33:47 PM UTC, comment #2: 

Ok, with the svg, I can confirm that legend objects are actually present but below the main axes background. This is another known issue that has been fixed upstream.

The workaround is to upgrade your version of gl2ps:

  • download and untar gl2ps (http://geuz.org/gl2ps/)
  • compile it: "cmake .; make;make install"
  • preload this new version prior to launching Octave: "LD_PRELOAD /usr/loal/lib/libgl2ps.so octave"


Closing report as fixed.

Pantxo Diribarne <pantxo>
Group Member
Mon 22 Jan 2018 11:15:29 AM UTC, comment #1: 

I can confirm with Octave 4.2.1 and the default gl2ps on my system (1.3.8), but not with Octave dev and gl2ps 1.4.
 
I think this issue has already been fixed upstream in gl2ps. The root cause used to be that objects are drawn but white. Can you print to svg and check in Inkscape that the missing objects are there but invisible (or attach the svg to this report and I'll do the check)?

Pantxo Diribarne <pantxo>
Group Member
Mon 22 Jan 2018 09:46:12 AM UTC, original submission:  

When 'hold all' command is used to plot multiple lines on same axes, using the option 'markerfacecolor' on any of the plots causes the figure to save incorrectly. The displayed figure is unaffected.

Black text in the legend and black outlines are not saved into the plot in this instance (see example code and output).


hold all;
% This line won't show up in saved figure
plot(linspace(0,1,10),linspace(0,1,10),'.k','markerfacecolor','k')
plot(linspace(0,1,10),1.5*linspace(0,1,10),'sb','markerfacecolor','b')
% Legend text also breaks in saved figure
legend('one','one point five', 'two','location','northwest')
% Also happens for png
print('minimum.pdf')


Operating system info:
Ubuntu 16.04.3 LTS


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #43016:  minimum.svg added by None (8KiB - image/svg+xml - The markers and missing legend text do not appear to be present in the svg (attached).)
file #43013:  minimum.m added by None (337B - text/x-objcsrc - Minimum example and produced output.)
file #43014:  minimum.pdf added by None (3KiB - application/pdf - Minimum example and produced output.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-01-22 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2018-01-22 None Attached File- Added minimum.svg, #43016
    2018-01-22 pantxo StatusNone Confirmed
    2018-01-22 None Attached File- Added minimum.m, #43013
        Attached File- Added minimum.pdf, #43014

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code