Dashed line

Definitions of graphs you want to share with us

Moderator: Mattk

Post Reply
User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Dashed line

Post by HeinrichH »

Any one how to create a dashed line in the graph module?
Thanks in advance
Checking the remote....
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:Dashed line

Post 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. :(
User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Re:Dashed line

Post 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 :-)
Checking the remote....
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re:Dashed line

Post 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?
Image
User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Re:Dashed line

Post by HeinrichH »

I think thats the point, a new request for the wish list...
Checking the remote....
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:Dashed line

Post 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?
Post Reply