Make gnuplot scripts compatible with gnuplot4.6
This commit is contained in:
@@ -26,8 +26,8 @@ set style data lines
|
|||||||
set border 3 # Rahmen unten (Bit 1) und links (+ Bit 2)
|
set border 3 # Rahmen unten (Bit 1) und links (+ Bit 2)
|
||||||
unset grid # Gitterlinien verwenden
|
unset grid # Gitterlinien verwenden
|
||||||
# Gitterlinienen per Hand setzen falls gewünscht
|
# Gitterlinienen per Hand setzen falls gewünscht
|
||||||
set style line 1 linetype rgb '#696969' linewidth 0.5 dashtype 0 # Def. Major-grid
|
set style line 1 linetype rgb '#696969' linewidth 0.25 # Def. Major-grid
|
||||||
set style line 2 linetype rgb '#C9C9C9' linewidth 0.5 dashtype 3 # def. Minor-grid
|
set style line 2 linetype rgb '#C9C9C9' linewidth 0.15 # def. Minor-grid
|
||||||
#set grid xtics mxtics # eventuell noxtics und nomxtics
|
#set grid xtics mxtics # eventuell noxtics und nomxtics
|
||||||
set grid x2tics
|
set grid x2tics
|
||||||
set grid ytics mytics # eventuell noytics und nomytics
|
set grid ytics mytics # eventuell noytics und nomytics
|
||||||
@@ -38,7 +38,11 @@ set grid linestyle 1, linestyle 2 # Setzen des linestyle für Major u. Minor
|
|||||||
set xdata time
|
set xdata time
|
||||||
set x2data time
|
set x2data time
|
||||||
set format x '1. %b'
|
set format x '1. %b'
|
||||||
set xtics rotate by +15 center offset 0,-0.5
|
if (GPVAL_VERSION >= 5.0) {
|
||||||
|
set xtics rotate by +15 center offset 0,-0.5
|
||||||
|
} else {
|
||||||
|
set xtics rotate by +15 center offset 0,-0.75
|
||||||
|
}
|
||||||
set format x2 ''
|
set format x2 ''
|
||||||
set xrange ['2018-01-01':'2019-01-01']
|
set xrange ['2018-01-01':'2019-01-01']
|
||||||
set x2range ['2018-01-01':'2019-01-01']
|
set x2range ['2018-01-01':'2019-01-01']
|
||||||
@@ -68,7 +72,11 @@ do for [i=1:12:2] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## gnuplot for SVG - gnuplot 4.2 / Ubuntu 8.10
|
## gnuplot for SVG - gnuplot 4.2 / Ubuntu 8.10
|
||||||
set term svg size 800,400 font "Arial,16"
|
if (GPVAL_VERSION >= 5.0) {
|
||||||
|
set term svg size 800,400 font "Arial,16"
|
||||||
|
} else {
|
||||||
|
set term svg size 800,400 font "Arial,12"
|
||||||
|
}
|
||||||
|
|
||||||
set outp outfile
|
set outp outfile
|
||||||
set style line 1 lt rgb 'blue' lw 1
|
set style line 1 lt rgb 'blue' lw 1
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ set style data lines
|
|||||||
set border 3 # Rahmen unten (Bit 1) und links (+ Bit 2)
|
set border 3 # Rahmen unten (Bit 1) und links (+ Bit 2)
|
||||||
unset grid # Gitterlinien verwenden
|
unset grid # Gitterlinien verwenden
|
||||||
# Gitterlinienen per Hand setzen falls gewünscht
|
# Gitterlinienen per Hand setzen falls gewünscht
|
||||||
set style line 1 linetype rgb '#696969' linewidth 0.5 dashtype 0 # Def. Major-grid
|
set style line 1 linetype rgb '#696969' linewidth 0.25 # Def. Major-grid
|
||||||
set style line 2 linetype rgb '#C9C9C9' linewidth 0.5 dashtype 3 # def. Minor-grid
|
set style line 2 linetype rgb '#C9C9C9' linewidth 0.15 # def. Minor-grid
|
||||||
#set grid xtics mxtics # eventuell noxtics und nomxtics
|
#set grid xtics mxtics # eventuell noxtics und nomxtics
|
||||||
set grid x2tics
|
set grid x2tics
|
||||||
set grid ytics mytics # eventuell noytics und nomytics
|
set grid ytics mytics # eventuell noytics und nomytics
|
||||||
@@ -38,7 +38,11 @@ set grid linestyle 1, linestyle 2 # Setzen des linestyle für Major u. Minor
|
|||||||
set xdata time
|
set xdata time
|
||||||
set x2data time
|
set x2data time
|
||||||
set format x '1. %b'
|
set format x '1. %b'
|
||||||
set xtics rotate by +15 center offset 0,-0.5
|
if (GPVAL_VERSION >= 5.0) {
|
||||||
|
set xtics rotate by +15 center offset 0,-0.5
|
||||||
|
} else {
|
||||||
|
set xtics rotate by +15 center offset 0,-0.75
|
||||||
|
}
|
||||||
set format x2 ''
|
set format x2 ''
|
||||||
set xrange ['2018-01-01':'2019-01-01']
|
set xrange ['2018-01-01':'2019-01-01']
|
||||||
set x2range ['2018-01-01':'2019-01-01']
|
set x2range ['2018-01-01':'2019-01-01']
|
||||||
@@ -67,8 +71,12 @@ do for [i=1:12:2] {
|
|||||||
set object rectangle from marker_start,graph 0 to marker_stop, graph 1
|
set object rectangle from marker_start,graph 0 to marker_stop, graph 1
|
||||||
}
|
}
|
||||||
|
|
||||||
## gnuplot for SVG - gnuplot 4.2 / Ubuntu 8.10
|
## gnuplot for SVG - gnuplot 4.2 / Ubuntu 8.10
|
||||||
set term svg size 800,400 font "Arial,16"
|
if (GPVAL_VERSION >= 5.0) {
|
||||||
|
set term svg size 800,400 font "Arial,16"
|
||||||
|
} else {
|
||||||
|
set term svg size 800,400 font "Arial,12"
|
||||||
|
}
|
||||||
|
|
||||||
set outp outfile
|
set outp outfile
|
||||||
set style line 1 lt rgb 'blue' lw 1
|
set style line 1 lt rgb 'blue' lw 1
|
||||||
|
|||||||
Reference in New Issue
Block a user