Page 1 of 1

Some gnuplot commands

Posted: Tue Apr 15, 2008 6:06 pm
by najbo
hi !

Some interesting samples are provided on the gnuplot homepage, available here : http://azog.bioinformatics.vt.edu:49280

and here : http://azog.bioinformatics.vt.edu:49280/demo

Re:Some gnuplot commands

Posted: Tue Apr 15, 2008 10:28 pm
by patonnet74
I've been trying to work some out, and as posted on another thread had used the following command to change a few things on my last 24 hour graph:
set format x \"%H:%M\"|set mxtics 4|set grid nomxtics|set format y \"%.0f\"|set ylabel \"Degrees Centigrade\"|set lmargin 10

Broken down
set format x \"%H:%M\"
only show hours and minutes on x axis eg 21:00
|set mxtics 4
show four minor tics per major tic (default shows a major tic every 4 hours on mine, so now a minor tic every hour)
|set grid nomxtics|
don't show a grid line for the minor tics, only the major ones
|set format y \"%.0f\"
Show my y axis in whole numbers only
|set ylabel \"Degrees Centigrade\"
Label the Y axis with Degrees Centigrade
|set lmargin 10
This aligns the left margin, and I use it in each graph to make sure they are all aligned

Now I wanted to play with the tics on the yaxis and added:
set ytics 10

But this simply seems to reset the graph back to defaults. Anyone know why?

A beginner with GNU Plot so any other help would be appreciated.

Anyone got any other examples of formatting they've used on Meteohub?

Cheers,
Alan

Re:Some gnuplot commands

Posted: Thu May 15, 2008 9:00 pm
by binbags
Hi Alan

Yes I would also like to delve further into gnuplot, so to speak.

I have printed off the gnu manual, but I think my headache just turned into a migrane. It would be nice for those in the know to teach us few who do not how to use the format command line:unsure:

Meanwhile I will keep on reading.

alan

Re:Some gnuplot commands

Posted: Sat May 17, 2008 11:32 am
by nanks
Here's a \"Format cmd\" I worked out to provide
filled in bargraphs that I use for my rainfall
graphs

set boxwidth 0.75 relative|set style fill solid 1.00 border -1

The boxwidth part sets the width of the bar to 75%
of normal, that is it leaves a gap between the bars.

The fill part does the solid fill for the bar
and the border part puts a fine border around the bar
to accentuate it.

Peter