gl2ps issueshttps://gitlab.onelab.info/gl2ps/gl2ps/-/issues2017-05-11T17:07:44Zhttps://gitlab.onelab.info/gl2ps/gl2ps/-/issues/18Dashed line pattern gets distorted when exporting to tikz2017-05-11T17:07:44Zbzo3fbwufbwfb28347bwfDashed line pattern gets distorted when exporting to tikzI noticed this bug while using Octave, which uses gl2ps to export plots.
Using this .m-file in Octave using the Qt graphics toolkit results in a tikz file that looks different from all other outputs. The bigger the curvature, the smalle...I noticed this bug while using Octave, which uses gl2ps to export plots.
Using this .m-file in Octave using the Qt graphics toolkit results in a tikz file that looks different from all other outputs. The bigger the curvature, the smaller do the gaps between the dashes get.
```
graphics_toolkit ("qt")
close all
x = 0:0.01:1;
y = sin(x*2*pi);
plot(x,y,'--');
print -dpdf test.pdf
print -dpng test.png
print -djpg test.jpg
print -dsvg test.svg
print -dtikz test.tikz
```
LaTeX document:
```
\documentclass{article}
\usepackage{tikz}
\begin{document}
\resizebox{\textwidth}{!}{
\input{test.tikz}
}
\end{document}
```
Result:
![equidistant-dashes-qt](/uploads/aba4521ff444c3f639a3c0002b173967/equidistant-dashes-qt.png)
vs.
![non-equidistant-dashes-tikz](/uploads/c6e23b5d84b3caf849697dd65f4c0098/non-equidistant-dashes-tikz.png)
It seems the gap is not only dependent on the curvature, since in this case it seems to get smaller and smaller the bigger, cf. the file unforcedresponselsim.tikz created when running the [preparation.m](/uploads/cc19e04725d7008da66d9f81653e87f0/preparation.m) in Octave.
Original bug report: https://savannah.gnu.org/bugs/?50996