Page 1 of 1
Dashed line
Posted: Fri Oct 23, 2009 8:33 am
by HeinrichH
Any one how to create a dashed line in the graph module?
Thanks in advance
Re:Dashed line
Posted: Fri Oct 23, 2009 10:30 am
by skyewright
HeinrichH wrote:Any one how to create a dashed line in the graph module?
In theory it is a matter if line type (abbreviated to lt), e.g.
set style line 1 lt 2 lw 2
(Before the extension of the line length) I tried but wasn't able to get this to work.
I presumed at that time that it was due to the limitations of at least the default 'terminal', which I believe is term png?
I think what is needed is to find an available (in Meteohub) 'term' that a) produces graphic files (e.g. term gif or term jpeg, both of which I've tried - they are available but didn't seem to have dashes either) and that provides a dashed line type.
My (very limited) knowledge of gnuplot only allows me to frame the question, not to answer it. :(
Re:Dashed line
Posted: Fri Oct 23, 2009 10:41 am
by HeinrichH
That was he same thing I tried, I tried lt 1 to 12 but they are all the same.
In the GNUplot manual I found somewhere a command dashes (page 196) but that's giving a error.
Maybe there is somewhere a GNUplot goeroe who can help us :-)
Re:Dashed line
Posted: Fri Oct 23, 2009 12:02 pm
by wfpost
Line Type is already defined by what you select in the graphs GUI section.
So, I don´t think the format string can override that setting, which makes sense in a way, doesn´t it?

Re:Dashed line
Posted: Fri Oct 23, 2009 12:40 pm
by HeinrichH
I think thats the point, a new request for the wish list...
Re:Dashed line
Posted: Fri Oct 23, 2009 1:19 pm
by skyewright
wfpost wrote:which makes sense in a way, doesn´t it?
As I understand it line type is at a lower level that that, i.e. the option you mention selects that the plot will be lines, but then line width and line type can be applied to tweak the appearance of individual lines provided the term supports the features.
I still suspect that the fundamental problem is that term png doesn't support the concept of dashed lines?