gnuplot

gnuplot: arrows between circles

半腔热情 提交于 2021-02-11 14:21:53
问题 How can I draw arrows between circles where the arrows point to the centers of the circles, but have reduced length such that they only touch the circumference, independent of the terminal size ratio? Sounds easy, but I haven't found a shorter solution than the example below. You need to to some coordinate transformations between axes coordinates and terminal coordinates. For this, you need to know the terminal size of the plot and you'll get these values into the GPVAL_... variables only

GNUPLOT contour over splot with pm3d from different data files

回眸只為那壹抹淺笑 提交于 2021-02-11 07:53:11
问题 i am struggling in trying to splot a nonuniform binary matrix from a datafile1, and plot over it a contour of another variable, over the same grid but another datafile. Both the datafiles are in binary matrix shape. # CONTOUR SETTINGS set contour surface set cntrparam level discrete 0.3,0.067 # PRINT CONTOUR ON TABLE set table 'tablefile_contour' splot 'contour_variable_field_binary' binary with l lt -1 unset table # FIELD SPLOT set view map; splot 'field_to_be_plotted_2D_binary' binary with

GNUPLOT contour over splot with pm3d from different data files

岁酱吖の 提交于 2021-02-11 07:52:36
问题 i am struggling in trying to splot a nonuniform binary matrix from a datafile1, and plot over it a contour of another variable, over the same grid but another datafile. Both the datafiles are in binary matrix shape. # CONTOUR SETTINGS set contour surface set cntrparam level discrete 0.3,0.067 # PRINT CONTOUR ON TABLE set table 'tablefile_contour' splot 'contour_variable_field_binary' binary with l lt -1 unset table # FIELD SPLOT set view map; splot 'field_to_be_plotted_2D_binary' binary with

Plotting lines with missing datapoints for multidimensional data

二次信任 提交于 2021-02-10 06:59:19
问题 I'm trying to plot multiple lines representing GPU usage over time from a dataset which records data of multiple GPUs. Each row contains the timestamp, a GPU index and the usage in percent. My dataset looks like this: $ cat gpu.txt #time #index # usage (%) 1,1,10 1,2,5 2,1,20 2,2,10 3,1,40 3,2,30 and this is my gnuplot script: $ cat plot.gplot set datafile separator "," set autoscale # scale axes automatically unset log # remove any log-scaling unset label # remove any previous labels set

Gnuplot & C++: Can't find gnuplot neither in PATH nor in "

筅森魡賤 提交于 2021-02-10 06:14:21
问题 I am trying to use Gnuplot on Windows with gnuplot_i.hpp. When I type "gnuplot" into cmd everthing works, so the PATH variable should be set correctly. This is my code: #include <iostream> #include "gnuplot_i.hpp" using std::cout; using std::endl; int main(int argc, char* argv[]) { try { Gnuplot g1("lines"); } catch (GnuplotException ge) { cout << ge.what() << endl; } return 0; } The output is Can't find gnuplot neither in PATH nor in "C:/program files/gnuplot/bin" . When I add the line

Gnuplot Bar chart with error bars

旧城冷巷雨未停 提交于 2021-02-10 05:27:06
问题 I have the following data Name Value of the bar Confidence interval A 0.62 [0.59 0.63] B 0.64 [0.54 0.72] C 0.51 [0.46 0.67] D 0.33 [0.25 0.36] I tried to plot it as a bar chart with A,B,C and D labeling each bar and with and error bar. By using plot "my.dat" using 1; with boxes I only get a bar chart. Can someone help me? 回答1: If you also want errorbars, you must add a second plot with the yerrorbars plotting style. The brackets aren't very handy in the data file, so I remove them with a sed

How to create PNG images with more than 72dpi using gnuplot?

回眸只為那壹抹淺笑 提交于 2021-02-09 10:57:53
问题 I'd like to create a PNG image in gnuplot and use it in MS-Word . However, if I use set terminal pngcairo enhanced font "Times New Roman,12.0" size 15cm,11cm the quality turns out to be poor. I read that the GNUPLOT uses only 72dpi . Is there a way to increase this number? 回答1: Simply specify the desired resolution in pixels rather than in centimeters: set terminal pngcairo enhanced font "Times New Roman,12.0" size 1500,1100 will generate an image that is 1500 pixels wide and 1100 pixels high

Gnuplot group by days

喜你入骨 提交于 2021-02-08 07:24:44
问题 Is it possible to plot one bar per each day, where day value consists of sum of all values in the given day? And if yes, is it possible to divide each "sum" bar into its sum components? Let the data be 2017-09-25 13:56:51 10 2017-09-25 13:56:53 20 2017-09-25 19:20:53 30 2017-09-26 11:56:53 40 2017-09-26 13:17:02 20 2017-09-27 12:56:53 10 2017-09-28 09:56:54 30 2017-09-28 23:56:54 50 And the desired output 80 B 70 B 60 C B B 50 C B B 40 C A B 30 B A A 20 B A A 10 A A A A 0 2017-09-25 2017-09

Gnuplot group by days

本秂侑毒 提交于 2021-02-08 07:23:01
问题 Is it possible to plot one bar per each day, where day value consists of sum of all values in the given day? And if yes, is it possible to divide each "sum" bar into its sum components? Let the data be 2017-09-25 13:56:51 10 2017-09-25 13:56:53 20 2017-09-25 19:20:53 30 2017-09-26 11:56:53 40 2017-09-26 13:17:02 20 2017-09-27 12:56:53 10 2017-09-28 09:56:54 30 2017-09-28 23:56:54 50 And the desired output 80 B 70 B 60 C B B 50 C B B 40 C A B 30 B A A 20 B A A 10 A A A A 0 2017-09-25 2017-09

Gnuplot group by days

冷暖自知 提交于 2021-02-08 07:22:47
问题 Is it possible to plot one bar per each day, where day value consists of sum of all values in the given day? And if yes, is it possible to divide each "sum" bar into its sum components? Let the data be 2017-09-25 13:56:51 10 2017-09-25 13:56:53 20 2017-09-25 19:20:53 30 2017-09-26 11:56:53 40 2017-09-26 13:17:02 20 2017-09-27 12:56:53 10 2017-09-28 09:56:54 30 2017-09-28 23:56:54 50 And the desired output 80 B 70 B 60 C B B 50 C B B 40 C A B 30 B A A 20 B A A 10 A A A A 0 2017-09-25 2017-09