|
From: theozh <th...@gm...> - 2018-10-28 11:53:48
|
It should be a rather simple task, but I have several problems (using gnuplot 5.2rc4, Win7) Imagine the following data: $Data <<EOD xxxx ColA ColB ColC ColD Row1 1.10 1.20 1.30 1.40 Row2 2.10 2.20 2.30 2.40 Row3 3.10 3.20 3.30 3.40 Row4 4.10 4.20 4.30 4.40 EOD The tasks and questions are: 1. plot circles with size which correspond to the datanumber and at a position which correspond to the number of col and row of datafield 2. take ytics from the first column 3. take xtics from the first row 4. the number of columns can depend on the datafile. How to autmatically account for this? 5. how to adjust the right xrange and yrange (i.e., such that the Row1 and Row2 ytics are not at the very edge of the graph. ad 1. ok ad 2. ok ad 3. how do I put columnheader not as key but as xtics? Had no success with columnhead(x) ad 4. if I use plot for [i=2:*] $Data... gnuplot get's stuck and does not respond anymore. Why? How to solve? ad 5. maybe there is a way without doing stats $Data first? I tried with the code below. Thank you for hints. ### gnuplot code reset session $Data <<EOD xxxx ColA ColB ColC ColD Row1 1.10 1.20 1.30 1.40 Row2 2.10 2.20 2.30 2.40 Row3 3.10 3.20 3.30 3.40 Row4 4.10 4.20 4.30 4.40 EOD stats $Data u 0 nooutput set yrange[STATS_min-0.5:STATS_max-0.5] plot for [i=2:5] $Data u (i-2):0:(column(i)/10.):ytic(1) every ::1 with circles notitle ### end code |