[add] added legend alignment option
This commit is contained in:
@@ -19,7 +19,11 @@ col_average=5
|
||||
col_max=6
|
||||
col_deviation=7
|
||||
|
||||
# legend alignment
|
||||
legend_align="center"
|
||||
|
||||
if(exists("TZ")) tz=TZ*3600
|
||||
if(exists("LEGEND_ALIGN")) legend_align=LEGEND_ALIGN
|
||||
# gnuplot does not like spaces in -e so we recreate them here via system call to sed
|
||||
if(exists("SERVERS")) server_list=system("echo '".SERVERS."' | sed 's|;| |g'")
|
||||
if(exists("CSV_FILE")) csv_file=CSV_FILE
|
||||
@@ -46,7 +50,9 @@ set key box lt rgb "#000000"
|
||||
set key width 1.5
|
||||
set key height 0.5
|
||||
set key samplen 0.1
|
||||
set key center top
|
||||
if (legend_align eq "left") set key left top
|
||||
if (legend_align eq "center") set key center top
|
||||
if (legend_align eq "right") set key right top
|
||||
## axis
|
||||
set y2tics # enable second axis
|
||||
set ytics nomirror # dont show the tics on that side
|
||||
|
||||
Reference in New Issue
Block a user