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
gnuplot linetype?
Moderator: Mattk
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:gnuplot linetype?
it only seems to work with a certain, i.e. maximum number of graphs: up to 2 is working

format line for it:
---

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:
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
Code: Select all
set locale "de_DE" | set style line 1 lw 3|set style increment user|set terminal png x2D57
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:gnuplot linetype?
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).wfpost wrote:it only seems to work with a certain, i.e. maximum number of graphs: up to 2 is working
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
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:gnuplot linetype?
Update.skyewright wrote:What I can't get to work with any line is lt (linetype).
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