gnuplot

How do I use gnuplot to plot some simple X0,Y0 X1,Y1 data?

I have some data that is a series of endpoints for the lines in x0, y0, x1, y1 format. for example : x0 y0 x1 y1 ----------------------- 1.0, 1.1, 2.0, 1.0 2.0, 1.0, 2.0, 2.0 2.0, 2.0, 1.0, 2.0 1.0, 2.0, 1.0, 1.0 I don't need any axis data, text titles, or page numbers. I can scale the data up or down...

gnuplot: x11 terminal in "interactive mode" while calling gnuplot from shell

Hey there, I want to call gnuplot with a shell command, all the commands are stored in, let's say, "load.gp". If I start the gnuplot shell and type "load 'load.gp'" I can change the viewpoint by dragging the splot with the mouse around. The Problem is, I can't figure out how to reach that without being in the gnuplot shell. echo "loa...

how much time does grid.py take to run ?

Hello all , I am using libsvm for binary classification.. I wanted to try grid.py , as it is said to improve results.. I ran this script for five files in separate terminals , and the script has been running for more than 12 hours.. this is the state of my 5 terminals now : [root@localhost tools]# python grid.py sarts_nonarts_feat.txt...

Preparing data for a CDF Plot using Statistics::Descriptive module?

Does anyone know how to prepare data to plot a CDF (I have a bunch of floating point numbers)? I was planning on using gnuplot and on first look, the Statistics::Descriptive module seemed the best fit but looks like I might need some help here. ...

Python: Set window focus on terminal

Hey, I have a python application that opens some plots for me and then asks the user for input. The problem is, that after opening the plot, the focus isn't on the terminal anymore, so you have to click or tab to it manually. I would like to set the focus to the terminal window with python - is that possible? I'm using gnuplot.py, may...

Histogram using gnuplot?

I know how to create a histogram (just use "with boxes") in gnuplot if my .dat file already has properly binned data. Is there a way to take a list of numbers and have gnuplot provide a histogram based on ranges and bin sizes the user provides? ...

Y-value on bar graph in gnuplot?

Can I get gnuplot to display the exact y-value or height of a data point (plotted using "with boxes") over its bar? I would like the plot to be easy to read so nobody has to line up the top of a bar with the y-axis and guess what the value is. ...

How do I plot the warping of DTW result using gnuplot?

Hello, Right now I have implemented Dynamic Time Warping algorithm for warping two 3D trajectories. Currently, gnuplot is my plotting tool of choice and it works fine when I plot multiple trajectories at a time. However, when I implement DTW one of the real use for plotting tool is to visualize the point warping, like this picture. Curr...

Gnuplot: Joining points between two sequences using lines

Hi All, I have two sequences in two files with each row representing a point in 3D/2D like 1 1 1 2 3 4 5 2 3 and 2 3 3 2 2 1 4 2 1 I want to plot these two sequences in one graph which is pretty easy. But what else I want to do is draw a line from 1st point of 1st sequence to 1st point of 2nd sequence continuing same for all oth...

Visualization of Nelder-Mead algorithm in gnuplot

Hi, does anyone know how I can achieve drawing triangle on level sets of some 3d function (something like on this image in gnuplot? When I tried doing this after reading some tutorials: gnuplot> set border 15 front linetype -1 linewidth 1.000 gnuplot> set logscale z 10 gnuplot> set view map gnuplot> set isosamples 60, 60 gnuplot> unset...

GNUPLOT: 2d histogram from set of points.

Hello, I have a pairs of the points with their weights: #x y w 0.111342 0.478917 0.232487 0.398107 1.79559 0.221714 0.200731 2.58651 0.0776068 0.0967412 1.49904 0.0645355 6.17638 8.63101 0.715604 0.306128 3.10917 0.0984595 0.340707 3.19344 0.10669 7.18627 8.59859 0.835751 8.56 9.63894 0.888065 5.14272 6.86074 0.749587 0.747...

GNUPLOT: dot plot with data depending dot size

Hi, I am trying plot data sets consisting of 3 coordinates: X-coordinate, x-coordinate and the number of occurrences. example: 1 2 10 3 1 2 3 2 1 I would like to draw for every line a dot at x,y with a diameter which is depending on the third value. Is that possible with Gnuplot? /Markus ...

How can I use gnuplot to plot data that is in an un-friendly format?

I need to graph some data that is not exactly in the most friendly format, most examples or usage puts things in a nice column/table that is very easy to parse and graph. However I have the following format (and am a bit stuck as to how to tackle this): DATE1 label_1 xx yy DATE1 label_2 xx yy DATE1 label_3 xx yy DATE2 label_2 xx yy DAT...

GNUPlot: change axis labels

Dear Guys, I have used the following statement to get the GNUPlot plot a grah for me: plot "force.dat" using 1:2 title "Detroit" with lines, \ "force.dat" u 1:3 t "US Avergae" w linepoints and the "force.dat" looks like 2005 0 0 2006 104 51 2007 202 101 It draws nice graph for me. However, I don't like the X-axis, because...

Using GNU Octave FFT functions

I'm playing with octave's fft functions, and I can't really figure out how to scale their output: I use the following (very short) code to approximate a function: function y = f(x) y = x .^ 2; endfunction; X=[-4096:4095]/64; Y = f(X); # plot(X, Y); F = fft(Y); S = [0:2047]/2048; function points = approximate(input, count) s...

gnuplot png export

How to "export" a graph to png or something insertable in Word ? I know there are a dozen tutorials for this on the 'net, but I'm having trouble just finding a simple example. ...

Plotting two axes in gnuplot

Is it possible to plot two curves, with two corresponding axes in gnuplot, each of which has a different scale. For example, y=x*2. and y=x*4. in the same graph (they vary enough for them to be "uncomfortable" placed with the same scale) ? ...

How to present a plot and then return to cmd prompt

I have a data file, and a gnu file, in which my plotting commands are. How can I produce a plot in gnuplot, in a way that I call gnuplot giving it a name of the gnu file ... it gives me the window with a plot ... and after I close it, it returns me not to gnuplot command prompt, but to cmd (windows cmd.exe) command prompt ? ...

Gnuplot - splot matrix csv data

How can I plot (a 3D plot) a matrix in Gnuplot having such data structure. I cannot find a way to use the first row and column as a x and y ticks (or to ignore them) ,5,6,7,8 1,-6.20,-6.35,-6.59,-6.02 2,-6.39,-6.52,-6.31,-6.00 3,-6.36,-6.48,-6.15,-5.90 4,-5.79,-5.91,-5.87,-5.46 Is the splot 'data.csv' matrix the correct parameter to u...

Can anyone recommend a good tutorial on drawing gantt charts using gnuplot

Hi guys, I'm looking for a good tutorial on drawing gantt charts with gnuplot. Any help is appreciated. ...