Page 1 of 1
gnuplot linetype?
Posted: Tue Aug 11, 2009 10:45 pm
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
Re:gnuplot linetype?
Posted: Tue Aug 11, 2009 11:43 pm
by wfpost
it only seems to work with a certain, i.e. maximum number of graphs: up to 2 is working
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
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:
Re:gnuplot linetype?
Posted: Wed Aug 12, 2009 4:22 pm
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
Re:gnuplot linetype?
Posted: Wed Aug 12, 2009 6:56 pm
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