gnuplot

Is it possible to use indices as xtic values in a histogram?

雨燕双飞 提交于 2019-12-25 00:27:46
问题 In a file with the data in the following structure: # [year] "Town A" population "Town B" population "Town C" population # [year2] "Town A" population "Town B" population "Town C" population # [year3] "Town A" population "Town B" population "Town C" population I have managed to create a histogram using the following: set style data histogram set style histogram columnstacked p 'file.dat' index '[year]' u 2:key(1) ,\ '' index '[year2]' u 2,\ '' index '[year3]' u 2; The previous settings

how to call gnuplot in vb.net

谁都会走 提交于 2019-12-24 22:44:28
问题 I have to create program can plot 3D graph from text file. Now, I can write the code for plot 3D graph. but i have no idea to call gnuplot in vb.net. My program is written on window apps. So, i try to search code in the Internet. and i find this: http://classes.bus.oregonstate.edu/ba371/lu/VBlabs/VBgnuplot.html I have already tried this code by console but it doesn't work. Although, It can work. I cannot resolve it to use with window apps. because I'm new in vb.net. I have to write this

In gnuplot, the letters and lines of the legend are misaligned

故事扮演 提交于 2019-12-24 20:10:42
问题 Dear stack overflow users, I am new to gnuplot. The letters and lines of the legend are misalinged in my output figure of gnuplot. I used the code below. Please help me... gnuplot -persist <<EOF set size ratio 3/4 set tics font "Arial, 15" set xrange [494:506] set yrange [0:1] set xlabel 'wavelenth [nm]' font "Arial, 20" set ylabel 'probability' font "Arial, 20" offset -2,0 set lmargin 10 set bmargin 6 set rmargin 25 set key font "Arial, 15" outside spacing 1.5 plot 'result.out' using 1:2

Can't use palette to fill object with colour

会有一股神秘感。 提交于 2019-12-24 19:52:41
问题 I was trying to plot number of particles in a square lattice. and I need each one to be coloured different. So I tried using palette.. by picking some random numbers but it always gives me black rectangles.. what should I do? set obj rect from 1,5 to 2,6 fc palette 0.454545 → this is what is not working for me. This is the image with all same color. I need different colour for each particle: 回答1: Plot using the boxxyerror style, and fill the boxes: set size ratio -1 set style fill solid plot

Remove z axis in gnuplot

喜你入骨 提交于 2019-12-24 17:16: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

How to animate multiple points (planets) using gnuplot, from a single data file.

你说的曾经没有我的故事 提交于 2019-12-24 16:51:45
问题 I'm trying to make an animation of Jupiter, the sun and an asteroid at the stable Lagrange point L5 as they orbit around their center of mass. I want to do this animation using gnuplot. I have written a programme which finds their positions at time t/AU. The data I get is below, has columns, time, x position, y position, and has rows, planet, sun, asteroid. I have looked at other solutions to animating in gnuplot but they do not seem to work for me. Please help me understand what I need to

Re-tic axis in gnuplot

梦想与她 提交于 2019-12-24 16:29:29
问题 I want to show how used space changes on my disk by drawing a figure with x-axis the sampling time point and y-axis storage used on disk. However, currently, the storage used is recorded in bytes, which is not human-readable when value goes beyond GB. So, could I re-tic axis in gnuplot? In my case, could I change the value 100000000 , for example, into 100MB ? Thanks and Best Regards. 回答1: You have two main options. The first (and probably easiest) is to scale things when you plot: plot

Javaplot under windows 7 and gnuplot 4.6 - disappearing result

喜欢而已 提交于 2019-12-24 15:33:37
问题 I want to return to the old thing: JavaPlot and gnuplot I'm using windows 7 and I have the same problem, it means that my graph disappear immediately after the launching my simple test program: public static void main(String... args) { JavaPlot p = new JavaPlot("F:/Programs/GnuPlot/bin/pgnuplot.exe"); p.addPlot("sin(x)"); p.setPersist(true); p.plot(); } Moreover this line p.setPersist(true); does not change anything, I can use true or false and there is the same result as above. I'm using

gnuplot: draw polygon from data

岁酱吖の 提交于 2019-12-24 14:46:41
问题 How can I plot polygons with data coming from a file? For example if I have a file containing coordinates of the edges of a four-point polygon for each data point, how would I proceed? e.g. a data file containing 0 0 0 1 1 1 1 0 2 2 2 3 3 3 3 2 should draw two quadratic rectangular wit center at position (0.5,0.5) and (2.5,2.5). 回答1: Gnuplot doesn't have a dedicated plotting style for plotting arbitrary quadrangles. For that, you must use a different data file format like 0 0 0 1 1 1 1 0 0 0

gnuplot vector arrow length and streamlines

吃可爱长大的小学妹 提交于 2019-12-24 14:00:00
问题 I have already asked about vector fields in here. Now I want to know a bit more about it. How can I make it so that each arrow has the same fixed length and define the magnitude of the value by color? And is it still not possible to plot streamlines in gnuplot? If possible, how can I do that? For now I have this and need to upgrade it. set term pngcairo set title 'Navier-Stokes Equation' set terminal png size 1280,720 set output 'vec.png' plot 'vec' u 1:2:($3/$5):($4/$5) w vec t 'Vector Field