Some gnuplot commands

Definitions of graphs you want to share with us

Moderator: Mattk

Post Reply
najbo
Fresh Boarder
Fresh Boarder
Posts: 15
Joined: Wed Mar 19, 2008 11:57 pm

Some gnuplot commands

Post 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
patonnet74
Junior Boarder
Junior Boarder
Posts: 20
Joined: Mon Mar 10, 2008 11:32 pm
Location: Brightons, Scotland
Contact:

Re:Some gnuplot commands

Post 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
binbags
Expert Boarder
Expert Boarder
Posts: 121
Joined: Tue Nov 06, 2007 9:25 am
Location: Glossop, UK

Re:Some gnuplot commands

Post 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
nanks
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Sat May 10, 2008 6:14 am

Re:Some gnuplot commands

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