bugGNU Octave - Bugs: bug #54793, Dashed line becomes solid in legend


bug #54793: Dashed line becomes solid in legend

Submitted by:  Tunc <tunc>
Submitted on:  Fri 05 Oct 2018 07:30:31 PM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  4.4.1 Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 07 Oct 2018 09:23:41 AM UTC, comment #5:

@Tunc: There is an ongoing effort to provide an alternative way of exporting figures, through the conversion from svg file (instead of eps as is currently the case for png output), and I hope the patch from bug #52193 can make it into Octave 5.

@Mike: Would you have some time to devote to bug #52193 and give me advices or pointers on how to integrate the svg converter utility into Octave's build system?

Pantxo Diribarne <pantxo>
Project Member
Sat 06 Oct 2018 10:34:54 PM UTC, comment #4:

I confirm that both exporting a .svg file and changing the colour of the legend box while keeping it on work for me as well.

Tunc <tunc>
Sat 06 Oct 2018 09:59:57 PM UTC, comment #3:

Exporting the figure to svg format works fro me, which makes me think it is a bug in gl2ps.

Pantxo Diribarne <pantxo>
Project Member
Fri 05 Oct 2018 08:29:48 PM UTC, comment #2:

Another workaround that works for me, change the color of the bounding box instead of turning it off:

Mike Miller <mtmiller>
Project Administrator
Fri 05 Oct 2018 08:26:36 PM UTC, comment #1:

Confirmed here with 4.4.1 and the latest development version, using the default qt toolkit. And confirmed that 'boxon' restores the legend border and prints the line correctly as dashed. Switching to the gnuplot toolkit is a possible workaround to get this working.

Mike Miller <mtmiller>
Project Administrator
Fri 05 Oct 2018 07:30:31 PM UTC, original submission:

The below code produces a correct figure as viewed in the figure window. However, the rendered bug.png figure (attached) produces a solid line in the legend, although the data is still shown as a dashed line. The same situation is also the case if the exported file is .jpg.

I figured out that this problem happens because of the presence of the third line, "legend boxoff".

I am not very knowledgeable on the source code of Octave. Any input as to how to fix this would be appreciated.

Tunc <tunc>


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

Attach Files:

Attached Files
file #45154:  bug.png added by tunc (15KiB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by johasixt
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by tunc (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-08 johasixt Carbon-Copy- => Added johasixt
    2018-10-05 mtmiller CategoryPlotting => Plotting with OpenGL
        StatusNone => Confirmed
        Release4.2.2 => 4.4.1
    2018-10-05 tunc Attached File- => Added bug.png, #45154

    Back to the top

    Powered by Savane 3.3