Discussion:
I want to show the count
(too old to reply)
Joey S
2023-04-17 09:44:10 UTC
Permalink
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 !?!
Jörg Buchholz
2023-04-17 13:19:31 UTC
Permalink
Post by Joey S
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 !?!
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
Joey S
2023-04-21 06:08:49 UTC
Permalink
Post by Jörg Buchholz
Post by Joey S
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 !?!
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
No Error but a zero byte grafik . :( Thanks for your help :(

If anybody could make Grafiks from Kraken2 or krakenuniq report !!! Say hello to me and give me a hint ! ;)
https://github.com/DerrickWood/kraken2
https://github.com/fbreitwieser/krakenuniq

or if someone is Ill and want to make research with me !
Joey S
2023-04-21 06:36:54 UTC
Permalink
Post by Jörg Buchholz
Post by Joey S
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 !?!
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
This 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
Jörg Buchholz
2023-04-24 05:43:13 UTC
Permalink
Post by Joey S
Jörg
This 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
plot "${1}" u 0:4:xtic(2) every ::0::30 with boxes notitle, '' u
0:4:(sprintf("%2.5f",$4)) with labels offset 0,1 notitle, '' u 0:4:3
with labels offset 0,2 notitle

This is one line, the line break comes from the newsreader.


plot "${1}" u 0:4:xtic(2) every ::0::30 with boxes notitle,\
'' u 0:4:(sprintf("%2.5f",$4)) with labels offset 0,1 notitle,\
'' u 0:4:3 with labels offset 0,2 notitle

With ",\" you can do line breaks in the plot command.

Jörg

Loading...