bugGNU Octave - Bugs: bug #50996, Printing dashed line to tikz...


bug #50996: Printing dashed line to tikz device results in non-equidistant dashes

Submitted by:  Alexander Wilms <alexanderw>
Submitted on:  Wed 10 May 2017 06:19:45 PM UTC  
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 3 - LowItem Group: None
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.1Operating System: Any

Add a New Comment(Rich Markup)

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Thu 09 Nov 2017 06:45:48 AM UTC, comment #7:

Thanks, closinr report.

Pantxo Diribarne <pantxo>
Project Member
Thu 09 Nov 2017 02:19:58 AM UTC, comment #6:


Alexander Wilms <alexanderw>
Wed 08 Nov 2017 09:40:15 AM UTC, comment #5:

Can we close this report as be due to an upstream bug?

Pantxo Diribarne <pantxo>
Project Member
Thu 11 May 2017 05:14:27 PM UTC, comment #4:

I filed a bug report here:


Exporting to PDF is good enough for me right now. Thanks for the suggestions though.

Alexander Wilms <alexanderw>
Thu 11 May 2017 04:49:34 PM UTC, comment #3:

Alternatively, you could use gnuplot backend
(you would need to add \usepackage{gnuplot-lua-tikz} to the tex file). Gnuplot is not as WYSIWYG so you may need to adjust fonts
etc... Attached is the file I made from your example.


(file #40665)

Dmitri A. Sergatskov <dasergatskov>
Thu 11 May 2017 04:01:02 PM UTC, comment #2:

Confirmed. The print chain in Octave goes through gl2ps. According to the website, support for PGF format (tikz) is listed as experimental. That may explain it.

The quickest workaround is to use one of the many alternative formats. In particular, if you are looking for a Latex format try something like epslatex.

If you must use tikz, I would look at developing a path that starts with one of the known good formats, such as eps, and then uses ghostscript or pstoedit to arrive at tikz.

Rik <rik5>
Project Administrator
Wed 10 May 2017 06:21:27 PM UTC, comment #1:

I meant to say curvature, not slope.

Alexander Wilms <alexanderw>
Wed 10 May 2017 06:19:45 PM UTC, original submission:

This issue only affects the tikz output. The bigger the absolute value of the slope, the smaller do the gaps between the dashes get.

Alexander Wilms <alexanderw>


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

Attach File(s):

Attached Files
file #40665:  t_tikz_tex.pdf added by dasergatskov (13KiB - application/pdf)
file #40656:  unforcedresponselsim.tikz added by alexanderw (633KiB - application/octet-stream - It seems the gap is not only dependent on the curvature, since in this case it seems to get smaller and smaller the bigger t gets)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by dasergatskov (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by alexanderw (Submitted the item)

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

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Nov 2017 06:45:48 AM UTCpantxoOpen/ClosedOpen=>Closed
    Thu 11 May 2017 04:49:34 PM UTCdasergatskovAttached File-=>Added t_tikz_tex.pdf, #40665
    Thu 11 May 2017 04:01:02 PM UTCrik5CategoryNone=>Plotting with OpenGL
      Priority5 - Normal=>3 - Low
      Operating SystemMicrosoft Windows=>Any
    Wed 10 May 2017 06:30:33 PM UTCalexanderwAttached File-=>Added unforcedresponselsim.tikz, #40656
    Wed 10 May 2017 06:19:45 PM UTCalexanderwAttached File-=>Added equidistant-dashes-qt.png, #40654
      Attached File-=>Added non-equidistant-dashes-tikz.png, #40655

    Back to the top

    Powered by Savane 3.1-cleanup1