gnuplot

gnuplot: Not enough columns for variable color

こ雲淡風輕ζ 提交于 2019-12-31 01:45:12
问题 I am executing the following gnuplot script: set title "Efficiency scatter plot" set xlabel "perf_1" set ylabel "secondary report" set log x set log y set xrange [0.1:40.0] set yrange [0.1:40.0] set terminal png medium set output "./graph1.png" set size square set multiplot set pointsize 0.3 set style line 6 pt 6 set datafile separator "," set border 3 set xtics nomirror set ytics nomirror plot '/tmp/data.csv' using 3:1 with points pt 1 lt 3 lc var title "perf_20140113131309", \ '/tmp/data

Passing Python functions to Gnuplot

扶醉桌前 提交于 2019-12-30 10:05:20
问题 Plotting a Python function in Gnuplot is not straightforward although there are some solutions. For example, one could either cast its values into an array or manually translate its expression into Gnuplot’s syntax. Here is an example that uses the module Gnuplot.py as an interface: #!/usr/bin/env python import Gnuplot import numpy as np ## define function ## func = lambda x, x0, y0, w: y0 * np.exp( -4*np.log(2) * ( (x-x0) / w )**2 ) # also works with a regular function: # def func(x, x0, y0,

How to get the value of a specific column in a specific line in any time of processing in gnuplot?

佐手、 提交于 2019-12-30 07:12:18
问题 I got a data file in the format like this: # begin 16 1 15 2 14 3 13 4 12 5 11 6 Now I want to use gnuplot to draw a line through the points: (1, (16/16)) (2, (16/15)) (3, (16/14)) ... (6, (16/11)) As you see, the x axis is the range [1:6] and the Y axis corresponds the values obtained from the number in the first line at the first column(ie. 16 in this example) divided by the number in each line at the first column. The problem is that I don't know how to get the value of the number at the

How to get the value of a specific column in a specific line in any time of processing in gnuplot?

只愿长相守 提交于 2019-12-30 07:12:02
问题 I got a data file in the format like this: # begin 16 1 15 2 14 3 13 4 12 5 11 6 Now I want to use gnuplot to draw a line through the points: (1, (16/16)) (2, (16/15)) (3, (16/14)) ... (6, (16/11)) As you see, the x axis is the range [1:6] and the Y axis corresponds the values obtained from the number in the first line at the first column(ie. 16 in this example) divided by the number in each line at the first column. The problem is that I don't know how to get the value of the number at the

Visible spectrum with gnuplot

谁都会走 提交于 2019-12-30 06:27:08
问题 So I have this kind of data 3.500E2 -0.956862 ... 10.00E2 -1.95941 in a file. If I plot it it looks like this: Now I want the area under the curve filled with the visible spectrum, like this: I already found this forum post, which draws me a nice visible spectrum, but I can't further add my own curve into it, as this appears to be a pm3d plot. What can I do? 回答1: The filledcurves plotting style cannot handle such gradient filling, but you can modify your data file to use it with pm3d and

Visible spectrum with gnuplot

。_饼干妹妹 提交于 2019-12-30 06:27:03
问题 So I have this kind of data 3.500E2 -0.956862 ... 10.00E2 -1.95941 in a file. If I plot it it looks like this: Now I want the area under the curve filled with the visible spectrum, like this: I already found this forum post, which draws me a nice visible spectrum, but I can't further add my own curve into it, as this appears to be a pm3d plot. What can I do? 回答1: The filledcurves plotting style cannot handle such gradient filling, but you can modify your data file to use it with pm3d and

gnuplot multiple lines with Time on X axis

青春壹個敷衍的年華 提交于 2019-12-30 04:28:09
问题 I've had a look through questions but still can't get this working. My data set is like this: [date] , [%cpu] , [mem] 23:00:39 , 21.9 , 2.1 23:00:44 , 21.8 , 2.1 23:00:49 , 21.8 , 2.1 23:00:54 , 21.8 , 2.1 23:00:59 , 21.7 , 2.1 My Gnuplot statements (just started using for this data) is: set timefmt "%H:%m:%s" set xdata time set datafile sep ',' plot '/tmp/info' using 2 title 'cpu' with lines, '/tmp/info' using 3 title 'memory%' with lines I get the following error: Need full using spec for x

How can I plot the derivative of a graph in gnuplot?

给你一囗甜甜゛ 提交于 2019-12-30 03:01:07
问题 I have a set of measurements of a variable over time. I have these measurements in a file called "results" with this format: # time sample 0 5 12 43 234 342 etc... I can easily plot this in gnuplot with: plot "results" Is there any way to plot the derivative of these measurements with regard to time (i.e. dsample/dt) directly from gnuplot, or do I have to calculate the derivative separately and plot that directly in gnuplot? 回答1: You can do it by defining a function to take the derivative: #!

Remove z axis in gnuplot

心已入冬 提交于 2019-12-29 09:05:23
问题 I have the following gnuplot script: set xyplane at 0 set style line 2 lc rgb 'black' pt 7 # circle set border 15 spl 'N.dat' u 1:2:3:($5/10.) w p ls 2 ps variable noti Where the file N.dat can be found here http://www.filedropper.com/n_1 . I want to remove the border parallel to the z-axis that appears on the bottom-right side of the screen, see the following output of the above script: Note that I am using the command set border 15 . The number 15 in base 2 is 000000001111 , i.e. the four

Remove z axis in gnuplot

拜拜、爱过 提交于 2019-12-29 09:04:28
问题 I have the following gnuplot script: set xyplane at 0 set style line 2 lc rgb 'black' pt 7 # circle set border 15 spl 'N.dat' u 1:2:3:($5/10.) w p ls 2 ps variable noti Where the file N.dat can be found here http://www.filedropper.com/n_1 . I want to remove the border parallel to the z-axis that appears on the bottom-right side of the screen, see the following output of the above script: Note that I am using the command set border 15 . The number 15 in base 2 is 000000001111 , i.e. the four