• I want to show the count

    From Joey S@21:1/5 to All on Mon Apr 17 02:44:10 2023
    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 !?!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=c3=b6rg_Buchholz?=@21:1/5 to Joey S on Mon Apr 17 15:19:31 2023
    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


    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joey S@21:1/5 to All on Thu Apr 20 23:08:49 2023
    Jörg Buchholz schrieb am Montag, 17. April 2023 um 15:19:35 UTC+2:
    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


    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 !

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joey S@21:1/5 to All on Thu Apr 20 23:36:54 2023
    Jörg Buchholz schrieb am Montag, 17. April 2023 um 15:19:35 UTC+2:
    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


    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=c3=b6rg_Buchholz?=@21:1/5 to Joey S on Mon Apr 24 07:43:13 2023
    On 21.04.2023 08:36, Joey S wrote:

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)