gnuplot

bash: Execute a string as a command

爱⌒轻易说出口 提交于 2019-12-25 16:56:19
问题 See my previous question on assembling a specific string here. I was given an answer to that question, but unfortunately the information didn't actually help me accomplish what I was trying to achieve. Using the info from that post, I have been able to assemble the following set of strings: gnuplot -e "filename='output_N.csv'" 'plot.p' where N is replaced by the string representation of an integer. The following loop will explain: (Actually, there is probably a better way of doing this loop,

Dynamically changing the range of a histogram in gnuplot?

≯℡__Kan透↙ 提交于 2019-12-25 16:47:44
问题 I have a c++ program that generates 10000 medians from sample data and outputs the medians to a file named "data.dat". I then modified this gnuplot script from here to generate a histogram: reset n=100 #number of intervals max=500 min=0 #min value width=(max-min)/n #interval width #function used to map a value to the intervals hist(x,width)=width*floor(x/width)+width/2.0 set term png #output terminal and file set output "histogram.png" set xrange [min:max] set yrange [0:] #to put an empty

gnuplot 4.7 and Javaplot | The windows is disappeared immediately

允我心安 提交于 2019-12-25 16:43:11
问题 I'm trying to see my plot using Javaplot, but the window is not even shown and disappeared immediately. Here is my code: JavaPlot p = new JavaPlot("C:/Program Files (x86)/gnuplot/bin/pgnuplot.exe"); String s=readFile(); p.addPlot(s); p.plot(); p.set("term", "x11 persist"); p.setPersist(true); This code is running successfully when using gnuplot 4.6, but after moving to gnuplot 4.7 (becuase I need the hypertext new feature) it doesn't work. Any suggestions? Thank you 回答1: There is a new

gnuplot: making a stacked barchart in GNUPLOT with different colors

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 06:52:59
问题 I'm trying to make a timeline with gnuplot, where a different color stands for a different objectdetection. Ultimately, it should look a bit like this (but only one line); I thought of doing this with gnuplot, making a stacked barchart of it. My data file has 3 values: startframe, endframe and the difference between the two. What I want to do is display the detections in the correct order, and how long they last (difference) I've already looked at the stacked histogram demo of gnuplot, but

Fitting Function with Multiple Files

ぐ巨炮叔叔 提交于 2019-12-25 06:42:30
问题 My Data: File 1: 2015-08-01 07:00 0.23 0.52 0.00 0.52 9 14.6 14.6 14.6 67 8.5 0.0 --- 0.00 0.0 --- 14.6 14.1 14.1 16.3 1016.2 0.00 0.0 156 0.22 156 0.0 0.00 0.0 0.003 0.000 23.9 39 9.1 23.4 0.05 23 1 100.0 1 1.8797836153192153 660.7143449269239 File 2: 2015-08-01 07:00 0.23 0.52 0.00 0.52 9 14.6 14.6 14.6 67 8.5 0.0 --- 0.00 0.0 --- 14.6 14.1 14.1 16.3 1016.2 0.00 0.0 156 0.22 156 0.0 0.00 0.0 0.003 0.000 23.9 39 9.1 23.4 0.05 23 1 100.0 1 1.8797836153192153 660.7143449269239 ..... and so on.

Representation of streaming data using GNUPLOT

最后都变了- 提交于 2019-12-25 05:23:54
问题 I want to represent streaming data using gnuplot. I tried it to plot using commands like 'replot','pause' and 'reread'. But its too slow and weird when data set is so large and similar.Is there any other way to plot streaming data 回答1: feedgnuplot is a Perl wrapper script around Gnuplot which does exactly what you describe using replot . It has a realtime streaming mode with option --stream . The documentation has an example where a live graph of bandwidth use of a network interface is drawn.

Heatmap of points in a volume

两盒软妹~` 提交于 2019-12-25 03:40:47
问题 I have (x,y,z) points with coordinates like the following figure, I would like to color the points based on their concentration. The idea is to make a heatmap of points but in a 3D figure. I would appreciate very much any help possible. Regards. 回答1: Use data values in a 4th column to index a smooth color palette splot DATA using 1:2:3:4 with points lc palette 回答2: The gnuplot development version now supports calculation of a point density function that can in turn be used to color individual

How do i make wgnuplot.exe terminate at end of .plt file?

心已入冬 提交于 2019-12-25 02:58:33
问题 I'm using gnuplot on Windows. When I execute my filename.plt-file directly via double clicking it spawns an instance of wgnuplot.exe, which doesn't terminate after finishing. My code is very simple like this and just prints to a pdf. Do any of you know how I can make wgnuplot.exe terminate automatically after finishing the file? Thanks 回答1: I do also see this problem, tested with 4.6.5. Strangely it doesn't work to put an exit at the end of the file (typing exit in the wgnuplot shell closes

Do an animation in 1 command in gnuplot

谁说我不能喝 提交于 2019-12-25 02:57:55
问题 I'm trying to show an animation using gnuplot I got the following script: plot ”heat1d.txt ” using 1:2 every :::a::a pause 0.01 a=a+1 if ( a<b ) reread that I execute using a = 0 b = 100 load "a.plot" it works, but is there a way to execute all of this using only 1 command from a shell? Alternatively is there a way to integrate the variable definitions into the .plot file so that I can simply execute it? I tried different things like echo 'a=0'|gnuplot etc but it doesn't seem to actually

How to draw a table with using gnuplot

谁都会走 提交于 2019-12-25 01:56:18
问题 I would like to superimpose table on a plot with using gnuplot. Basically, I have table values and want to create a table and add it on the signal plot. 回答1: This can be done using the epslatex terminal and using set label , defining the table using latex syntax. A minimal example: Within gnuplot do: set term epslatex set output "plot.eps" set label at screen 0.5,0.5 '\begin{tabular}{c c}1 & 2 \\ 3 & 4\end{tabular}' plot sin(x) Then create a latex file document.tex with the following code: