gnuplot -persist <<-EOFMarker
reset
set boxwidth 0.1
set grid ytics linestyle 0
set style fill solid noborder
set terminal svg size 800,600
set datafile separator ";"
set title "Pathogene"
set xlabel "${filename%.*}"
set ylabel "Prozentualer Anteil"
set format y "%+-12.2f"
set xtics rotate by 90 right
set term png size 800,600
set output "${filename%.*}.png"
stats "$1" using 0:3
print STATS_max_y
plot "${1}" using 0:4:xtic(2) every ::0::30 with boxes lc rgb "#0045FF" title
rotate by 90 notitle
EOFMarker
}
Thats my Data
2023_04_16_11_45_36_ma_kuniq_standard_plus_eupath_minus_kdb_R_.txt; Plasmodium;45;.00003729825158146451
2023_04_16_11_45_36_ma_kuniq_standard_plus_eupath_minus_kdb_R_.txt; Clostridioides difficile;112;.00009283120393608946
And i want to show field 4 (or 3) as number in the graphic. I try it in every form but i think i don't understanding Gnuplot it doesnt fit in my brain !?!
On 17.04.2023 11:44, Joey S wrote:
gnuplot -persist <<-EOFMarker
reset
set boxwidth 0.1
set grid ytics linestyle 0
set style fill solid noborder
set terminal svg size 800,600
set datafile separator ";"
set title "Pathogene"
set xlabel "${filename%.*}"
set ylabel "Prozentualer Anteil"
set format y "%+-12.2f"
set xtics rotate by 90 right
set term png size 800,600
set output "${filename%.*}.png"
stats "$1" using 0:3
print STATS_max_y
plot "${1}" using 0:4:xtic(2) every ::0::30 with boxes lc rgb "#0045FF" title
rotate by 90 notitle
EOFMarker
}
Thats my Data
2023_04_16_11_45_36_ma_kuniq_standard_plus_eupath_minus_kdb_R_.txt; Plasmodium;45;.00003729825158146451
2023_04_16_11_45_36_ma_kuniq_standard_plus_eupath_minus_kdb_R_.txt; Clostridioides difficile;112;.00009283120393608946
No Error but a zero byte grafik . :( Thanks for your help :(And i want to show field 4 (or 3) as number in the graphic. I try it in every form but i think i don't understanding Gnuplot it doesnt fit in my brain !?!Help this?
plot "${1}" u 0:4:xtic(2) every ::0::30 with boxes lc rgb "#0045FF"
notitle, '' u 0:4:4 every ::0::30 with labels offset 0,1 notitle
Jörg
On 17.04.2023 11:44, Joey S wrote:
gnuplot -persist <<-EOFMarker
reset
set boxwidth 0.1
set grid ytics linestyle 0
set style fill solid noborder
set terminal svg size 800,600
set datafile separator ";"
set title "Pathogene"
set xlabel "${filename%.*}"
set ylabel "Prozentualer Anteil"
set format y "%+-12.2f"
set xtics rotate by 90 right
set term png size 800,600
set output "${filename%.*}.png"
stats "$1" using 0:3
print STATS_max_y
plot "${1}" using 0:4:xtic(2) every ::0::30 with boxes lc rgb "#0045FF" title
rotate by 90 notitle
EOFMarker
}
Thats my Data
2023_04_16_11_45_36_ma_kuniq_standard_plus_eupath_minus_kdb_R_.txt; Plasmodium;45;.00003729825158146451
2023_04_16_11_45_36_ma_kuniq_standard_plus_eupath_minus_kdb_R_.txt; Clostridioides difficile;112;.00009283120393608946
This one works ! :) :)And i want to show field 4 (or 3) as number in the graphic. I try it in every form but i think i don't understanding Gnuplot it doesnt fit in my brain !?!Help this?
plot "${1}" u 0:4:xtic(2) every ::0::30 with boxes lc rgb "#0045FF"
notitle, '' u 0:4:4 every ::0::30 with labels offset 0,1 notitle
Jörg
JörgThis one works ! :) :)
plot "${1}" u 0:4:xtic(2) every ::0::30 with boxes notitle, '' u 0:4:3 every ::0::30 with labels offset 0,1 notitle
Is it possible to format the counts to 00,0000 Field 4
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 18:19:34 |
Calls: | 6,667 |
Calls today: | 1 |
Files: | 12,216 |
Messages: | 5,336,948 |