Page 1 of 1

Is there a command with the Format line to make thicker plot

Posted: Thu Jul 24, 2008 8:11 pm
by wfpost
Hi,

is there any command which I can enter with the FORMAT field to get a thicker line?

Thanks,

Re:Is there a command with the Format line to make thicker p

Posted: Thu Jul 24, 2008 9:21 pm
by sevenless
It's somewhat complicated (but isn't everything in GNUplot!)

Basically you need to use the command set style line to define new line weights for all the lines you need to use, and then tell the graph command to use your custom definitions instead of the defaults. (See http://azog.bioinformatics.vt.edu:49280 ... de237.html for the help file.)

If your graph only has one line, then the following will make it twice as thick as the default settings:

Code: Select all

set style line 1 lw 2|set style increment user
For every additional line you have in a graph, you need to add an extra set style line n lw 2 into the code (where n increments up by one each time.) For instance for a graph with two lines:

Code: Select all

set style line 1 lw 2|set style line 2 lw 2|set style increment user

Likewise, if you want a line that's three times thicker than the standard line change lw 2 to lw 3 (also note that decimal numbers work, so you can make a line 1.5 times thicker with lw 1.5, or half as thick with lw 0.5)

(Addendum: this format command should work for all display types within the scalar data graph type, so for the min-max-bar question below this is also applicable.)

Re:Is there a command with the Format line to make thicker p

Posted: Fri Jul 25, 2008 8:41 am
by wfpost
thanks very much, your hints worked fine
The default line is very thin, but now it looks much better with my graphs :)

Cheers