GNUPLOT - Assign colours in pie chart
问题 I am trying generate a pie chart using GNUPLOT, I have already generate the plot, and I have assigned colour to the legend using an array. This is the code, I have used this question as reference script.sh #!/usr/bin/gnuplot set terminal pngcairo nocrop enhanced size 800,400 font "Siemens Sans,8" set output 'output.png' filename = 'source.dat' rowi = 1 rowf = 2 # obtain sum(column(2)) from rows `rowi` to `rowf` set datafile separator ',' stats filename u 2 every ::rowi::rowf noout prefix "A"