|
| 1 | +<a name="gnuplot.custom.dok"></a> |
| 2 | +## Customizing Gnuplot Defaults ## |
| 3 | + |
| 4 | +The default styles of gnuplot can be customized using a personal `.gnuplot` file |
| 5 | +located in the users home directory. A sample file is given below as a sample. You can |
| 6 | +paste the contents into `$HOME/.gnuplot` file and gnuplot will use the styles |
| 7 | +specified in this file. |
| 8 | + |
| 9 | +``` |
| 10 | +##### Modified version of the sample given in |
| 11 | +##### http://www.guidolin.net/blog/files/2010/03/gnuplot |
| 12 | +
|
| 13 | +
|
| 14 | +set macro |
| 15 | +
|
| 16 | +##### Color Palette by Color Scheme Designer |
| 17 | +##### Palette URL: http://colorschemedesigner.com/#3K40zsOsOK-K- |
| 18 | +
|
| 19 | +
|
| 20 | + blue_000 = "#A9BDE6" # = rgb(169,189,230) |
| 21 | + blue_025 = "#7297E6" # = rgb(114,151,230) |
| 22 | + blue_050 = "#1D4599" # = rgb(29,69,153) |
| 23 | + blue_075 = "#2F3F60" # = rgb(47,63,96) |
| 24 | + blue_100 = "#031A49" # = rgb(3,26,73) |
| 25 | +
|
| 26 | + green_000 = "#A6EBB5" # = rgb(166,235,181) |
| 27 | + green_025 = "#67EB84" # = rgb(103,235,132) |
| 28 | + green_050 = "#11AD34" # = rgb(17,173,52) |
| 29 | + green_075 = "#2F6C3D" # = rgb(47,108,61) |
| 30 | + green_100 = "#025214" # = rgb(2,82,20) |
| 31 | +
|
| 32 | + red_000 = "#F9B7B0" # = rgb(249,183,176) |
| 33 | + red_025 = "#F97A6D" # = rgb(249,122,109) |
| 34 | + red_050 = "#E62B17" # = rgb(230,43,23) |
| 35 | + red_075 = "#8F463F" # = rgb(143,70,63) |
| 36 | + red_100 = "#6D0D03" # = rgb(109,13,3) |
| 37 | +
|
| 38 | + brown_000 = "#F9E0B0" # = rgb(249,224,176) |
| 39 | + brown_025 = "#F9C96D" # = rgb(249,201,109) |
| 40 | + brown_050 = "#E69F17" # = rgb(230,159,23) |
| 41 | + brown_075 = "#8F743F" # = rgb(143,116,63) |
| 42 | + brown_100 = "#6D4903" # = rgb(109,73,3) |
| 43 | +
|
| 44 | + grid_color = "#d5e0c9" |
| 45 | + text_color = "#222222" |
| 46 | +
|
| 47 | + my_font = "SVBasic Manual, 12" |
| 48 | + my_export_sz = "1024,768" |
| 49 | +
|
| 50 | + my_line_width = "2" |
| 51 | + my_axis_width = "1" |
| 52 | + my_ps = "1.5" |
| 53 | + my_font_size = "14" |
| 54 | +
|
| 55 | +# must convert font fo svg and ps |
| 56 | +# set term svg size @my_export_sz fname my_font fsize my_font_size enhanced dynamic rounded |
| 57 | +# set term png size @my_export_sz large font my_font |
| 58 | +# set term jpeg size @my_export_sz large font my_font |
| 59 | +# set term wxt enhanced font my_font |
| 60 | +
|
| 61 | +set style data linespoints |
| 62 | +set style function lines |
| 63 | +set pointsize my_ps |
| 64 | +
|
| 65 | +set style line 1 linecolor rgbcolor blue_050 linewidth @my_line_width pt 7 |
| 66 | +set style line 2 linecolor rgbcolor green_050 linewidth @my_line_width pt 5 |
| 67 | +set style line 3 linecolor rgbcolor red_050 linewidth @my_line_width pt 9 |
| 68 | +set style line 4 linecolor rgbcolor brown_050 linewidth @my_line_width pt 13 |
| 69 | +set style line 5 linecolor rgbcolor blue_025 linewidth @my_line_width pt 11 |
| 70 | +set style line 6 linecolor rgbcolor green_025 linewidth @my_line_width pt 7 |
| 71 | +set style line 7 linecolor rgbcolor red_025 linewidth @my_line_width pt 5 |
| 72 | +set style line 8 linecolor rgbcolor brown_025 linewidth @my_line_width pt 9 |
| 73 | +set style line 9 linecolor rgbcolor blue_075 linewidth @my_line_width pt 13 |
| 74 | +set style line 10 linecolor rgbcolor green_075 linewidth @my_line_width pt 11 |
| 75 | +set style line 11 linecolor rgbcolor red_075 linewidth @my_line_width pt 7 |
| 76 | +set style line 12 linecolor rgbcolor brown_075 linewidth @my_line_width pt 5 |
| 77 | +set style line 13 linecolor rgbcolor blue_100 linewidth @my_line_width pt 9 |
| 78 | +set style line 14 linecolor rgbcolor green_100 linewidth @my_line_width pt 13 |
| 79 | +set style line 15 linecolor rgbcolor red_100 linewidth @my_line_width pt 11 |
| 80 | +set style line 16 linecolor rgbcolor brown_100 linewidth @my_line_width pt 7 |
| 81 | +set style line 17 linecolor rgbcolor "#224499" linewidth @my_line_width pt 5 |
| 82 | +
|
| 83 | +## plot 1,2,3,4,5,6,7,8,9 |
| 84 | +set style increment user |
| 85 | +set style arrow 1 filled |
| 86 | +
|
| 87 | +## used for bar chart borders |
| 88 | +set style fill solid 0.5 |
| 89 | +
|
| 90 | +set size noratio |
| 91 | +set samples 300 |
| 92 | +
|
| 93 | +set border 31 lw @my_axis_width lc rgb text_color |
| 94 | +``` |
0 commit comments