gnuplot linetype?

Definitions of graphs you want to share with us

Moderator: Mattk

Post Reply
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

gnuplot linetype?

Post by skyewright »

Has anyone managed to get gnuplot linetype (lt) to work with Meteohub graphs?

I've tried adding lt 2 (and 3 and 6) to the format commands described previously for changing like thickness, but it made no difference.

Maybe I'm missing something?

David
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re:gnuplot linetype?

Post by wfpost »

it only seems to work with a certain, i.e. maximum number of graphs: up to 2 is working

Image

format line for it:

Code: Select all

set locale "de_DE" | set style line 1 lw 9|set style increment user|set terminal png x2D57
---

Image

Code: Select all

set locale "de_DE" | set style line 1 lw 3|set style increment user|set terminal png x2D57
I could use another style line command with above graph, but adding a third would result in ignoring the whole format line and the graph plotted in white background and curves in default thickness:dry:
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:gnuplot linetype?

Post by skyewright »

wfpost wrote:it only seems to work with a certain, i.e. maximum number of graphs: up to 2 is working
I've managed up to 4 lines with lw (linewidth), probably because I have less other stuff on my format cmd (e.g. I don't need to set the locale).

Presumably there is some limit on the length available for the format cmd? The HTML behind the Define Graph page has maxlength="4000" for the Format Cmd, but maybe there is some other limit somewhere else?

This works fine for me:

Code: Select all

set style line 2 lw 2|set style line 3 lw 2|set style line 7 lw 2|set style line 8 lw 2|set style increment user

What I can't get to work with any line is lt (linetype). If lt is available it should allow a line to be dots, dashes or dots and dashes instead of just solid.

David
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:gnuplot linetype?

Post by skyewright »

skyewright wrote:What I can't get to work with any line is lt (linetype).
Update.

lt 0

produces a grey dashed line, but I can't get it combined with any other colo(u)r or a non-standard line width.

Useful in some circumstances, but it would be nice if we could find how to get other variations too. :)

David
Post Reply