I can't reproduce this problem here. It is true that the libgd terminals do not support dashed lines in general, but the LT_AXIS (lt 0) linetype is still drawn as dots. I attach the output I get here from -rc3 for
set term gif
set output 'test.gif'
test
Looking deeper, I see that although the program itself can draw dotted lines in the libgd terminals (e.g. "test" or "set yzeroaxis"), it is unreasonably hard to assign this same style to a line in a plot.
I think that was intentional, since it comes out really really ugly, but maybe a better option is possible.
The same bug/difficulty affects the qt terminal even though its dotted lines are not ugly at all. So I'll look for a fix that catches both terminals.
thanks for testing
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fixed in cvs for 5.0 and 5.1. The fix will be included in the 5.0 release.
This fix also includes a preliminary re-working of the dotted line code in the libgd terminals, making is less ugly when used for lines that are not purely horizontal or vertical.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the first call of the test command shows a dotted grid
the second one shows no grid. attached is the result of the second test
this happens for libgd 2.0.35 and 2.1 on CentOS 6.3
--- old+++ new@@ -1,9 +1,4 @@Hello,
--in v4.6 the test command shows a grey dotted line as line style 0 in a gif terminal using libgd. -in v5.rc3 there is no dotted line style any more. -the new dashtype feature does not support libgd. -Is there any other possibility to draw a dotted line in libgd?-i still like the old libgd because its the only native gif terminal.-Therefore i whould appreciate the possibility to have the dotted line back in v5.- +reopen #1516 +Does not work for me in 5.0+see comments in the old ticket.
status: closed-fixed --> open
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't reproduce this problem here. It is true that the libgd terminals do not support dashed lines in general, but the LT_AXIS (lt 0) linetype is still drawn as dots. I attach the output I get here from -rc3 for
set term gif
set output 'test.gif'
test
What version of libgd are you using?
Looking deeper, I see that although the program itself can draw dotted lines in the libgd terminals (e.g. "test" or "set yzeroaxis"), it is unreasonably hard to assign this same style to a line in a plot.
I think that was intentional, since it comes out really really ugly, but maybe a better option is possible.
The same bug/difficulty affects the qt terminal even though its dotted lines are not ugly at all. So I'll look for a fix that catches both terminals.
thanks for testing
the default grid is indeed dotted but it is not possible to use this style:
~~~~~
set term gif
set output'|display gif:-'
set grid
plot sin(x) # --> dotted grid
set grid lt 0
replot # --> solid grid
~~~~
Fixed in cvs for 5.0 and 5.1. The fix will be included in the 5.0 release.
This fix also includes a preliminary re-working of the dotted line code in the libgd terminals, making is less ugly when used for lines that are not purely horizontal or vertical.
in 5.0 the dotted grid is only plotted once
the first call of the test command shows a dotted grid
the second one shows no grid. attached is the result of the second test
this happens for libgd 2.0.35 and 2.1 on CentOS 6.3
Diff:
Fixed in cvs for 5.0 and 5.1