On Thursday, 07 January 2016 04:31:37 PM Matthew Clay wrote:
> Hi,
>
> I am sorry if this is a repeat, but I couldn't find anything on the web.
> I have upgraded from gnuplot 4.6 to gnuplot 5.0 patchlevel 1, and have
> noticed that dashtypes (previously linetypes) have changed in the
> epslatex terminal. Specifically, there appears to be considerably more
> white space between the new dashtypes when compared to the older
> linetypes. Is there any way to reduce the white space between dashes?
The answer is a bit complicated, which is unfortunate, but to be fair
the treatment of dashed lines is the greatest single point of difference
between version 4 and version 5.
Let's start with the simple answer.
It has been true all allong (both versions 4 and 5) that you can adjust
the spacing between dashes by using the "dashlength <multiplier>"
option to "set term".
So "set term epslatex dashlength 0.5" may be all you need.
For the more complicated answer it may be informative to look at
the discussion attached to Bug #1724
https://sourceforge.net/p/gnuplot/bugs/1724/[1]
These issues affected only the postscript terminals, but that includes
epslatex.
- The postscript behavior was tweaked for version 5.0.2
(released this week). This tweek may or may not affect what you
are doing.
- The original version 4 dashtypes are still there, but the exact
commands to select them depend on whether you are in
color or monochrome mode. This will probably work, but I'm
not 100% certain:
set term epslatex
unset mono
set for [N=1:10] linetype N lw 1.0 lc black dt N
... same plot commands as in version 4 ...
> In addition, when I try to set a custom dashtype (e.g. dt "..- "), I just
> get solid lines. Has anybody been able to get custom dashtypes to work
> in the epslatex terminal?
Yes. They work fine here.
Ethan
> Thanks,
> Matthew
--------
[1] https://sourceforge.net/p/gnuplot/bugs/1724/
|