Any one how to create a dashed line in the graph module?
Thanks in advance
Dashed line
Moderator: Mattk
- HeinrichH
- Gold Boarder
- Posts: 187
- Joined: Sun Jan 04, 2009 6:27 pm
- Location: Emmen-Netherlands / Panoias-Portugal
- Contact:
Dashed line
Checking the remote....
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:Dashed line
In theory it is a matter if line type (abbreviated to lt), e.g.HeinrichH wrote:Any one how to create a dashed line in the graph module?
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. :(
- HeinrichH
- Gold Boarder
- Posts: 187
- Joined: Sun Jan 04, 2009 6:27 pm
- Location: Emmen-Netherlands / Panoias-Portugal
- Contact:
Re:Dashed line
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 :-)
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 :-)
Checking the remote....
Re:Dashed line
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?

So, I don´t think the format string can override that setting, which makes sense in a way, doesn´t it?

-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:Dashed line
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.wfpost wrote:which makes sense in a way, doesn´t it?
I still suspect that the fundamental problem is that term png doesn't support the concept of dashed lines?