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

Definitions of graphs you want to share with us

Moderator: Mattk

Post Reply
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

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

Post by wfpost »

Hi,

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

Thanks,
sevenless
Gold Boarder
Gold Boarder
Posts: 160
Joined: Wed Jul 02, 2008 7:35 pm
Location: Seattle WA, USA

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

Post 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.)
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

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

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