gnuplot

Set Axis Tick Labels in gnuplot

My input to gnuplot looks something like this: 1:00am 1 10 1:00am 30 12 1:01am 60 18 1:01am 90 20 1:02am 120 21 ... The first column contains (what I'd like to be) the X-axis labels, while the second column contains the X-axis values. (In actual point of fact, I have one row per second, so many rows have ...

Drawing a complex function with GNU Plot

Hello, I am working in a research laboratory and my tutor asked me to draw the langerman statistic function with GNUPlot. Hi gave me this code, that should be able to generate the cordinate. #include "stdafx.h" #include "fitness.h" #include "function.h" double temp1(double d1, double d0); double temp2(double d0); //double RozenBrock(d...

Graph in C++ using gnuPlot

Hi All, I am using gnuPlot library for printing a graph in C++ code. Its printing graph fine, but its printing only in blue color. Does somebody know how can I change the colors? Cheers ...

How to make an equilateral triangle using GNUplot?

Hi, I'm trying to plot my data into two-dimensional barycentric equilateral triangle using GNUplot. I'm using the following commands: unset border unset xtics unset ytics set arrow 1 from 0,0 to .5,sqrt(3)/2 nohead front lt -1 lw 1 set arrow 2 from 0,0 to 1,0 nohead front lt -1 lw 1 set arrow 3 from 1,0 to .5,sqrt(3)/2 nohea...

How to divide an equilateral triangle into three equal parts using GNUplot.

Hi, I am using GNUplot to plot my data into barycentric equilateral triangle. The problem is that, I have to draw three lines from the center of the triangle to the three sides of the triangle such that the line should be perpendicular to each side and divide the triangle into three equal parts. I'm using the following commands in GNUp...

Plotting relative to a fixed data element

I have the following datafile: x y 1 50.583 2 27.842 3 19.156 4 15.491 6 9.779 8 8.584 12 6.436 16 4.595 24 3.605 32 2.447 I want to plot...

Direct 2D gnuplot PNG animation?

Can anyone please confirm that yes/no Gnuplot 4.5 (on CVS) can output 2D animated PNG files? I have numerous datasets but one line that I'd like to show iteratively in 3 different places in my graph. Can this be done directly from gnuplot or is this something that would need to be animated externally from multiple frames? ...

Gnuplot Cumulative Column Question

I have some data. #Time Distance 1 3 2 5 4 9 8 11 12 17 14 20 16 34 20 40 I want to plot the cumulative distance wrt time in gnuplot ... (it should be easy) but I do not know how. x ...

octave + gnuplot + os x 10.6 : nothing happens

On my first-gen Macbook Pro, with OS X 10.6.1, I can launch gnuplot and get a plot, after I set the terminal to x11, with a command like plot [-6:6] sin(x). But when I launch octave, and try a plot command, like plot([2 3],[4 5]) or plot([-6:0.01:6],cos([-6:0.01:6])) I get no error messages and no plot. Just another octave prompt. I...

Plotting Histogram: How can I do it from scratch using data stored in a database?

I have some data stored in a database like this: TableName: faults Table: +------------+--------------+ | fault_type | total | +------------+--------------+ | 1 | 1 | | 2 | 3 | | 3 | 8 | | 4 | 2 | ............................. How am I supposed...

Treat axis as date/time (epoch)

I'm generating a graph with gnuplot of activity over the last twenty four hours, but the time axis looks really bad because it's trying to fit the long number for every five minutes in the last day. Is there any way for gnuplot to treat the x-axis as an epoch time, and mark every hour or so? ...

How can I set multiple timefmt in gnuplot with perl?

I have created a tool to plot graphs using Perl and gnuplot. This is working fine but I just have an issue with the timefmt. I have many input data files with date and some are with time. So, I have created two separate tools with the below difference only. For the input files which have time I used set timefmt "%H:%M:%S" set format ...

Drawing gant-like diagram from file in C with boxes and axis

I am programming system in C and I would like to draw rectangles into 2D plain with axis X and Y to represent generated data (scheduling problems).It should LOOK LIKE gant chart. Information are supplied in text file. I don't need anything fancy yet. Just something like "draw box in color Red starting at X=5, Y=3, ending at X=7,Y=5". It ...

Labels on the input data in gnuplot

I have a datafile that looks like this #index name1 name2 name3 1 2 3 4 2 3 4 5 3 4 5 6 4 5 6 7 I want to plot 3 lines: plot "data" using 1:2 with lines,\ ... This works ok, except for the line labels. How can I specify the column names in the datafile? ...

how to handle large values in gnuplot

I have below sample file which has large values more than 10000000. date,value1,value2,value3,value4 2009-06-01,16100834.94,20891965.33,15271434.3,9923084.09 2009-06-02,15061830.06,17072556.28,12578230,10591562.41 2009-06-03,14508669.28,18841097.35,15536549.47,13583187.15 2009-06-04,13771192.1,15689469.39,24404897.6,10371282.63 I can ...

Graph Formatting Tools For Octave

I know that Matlab allows for you to format the graph after its created through the interface. However there isn't the same features in Octave. Is there a tool that goes between Octave and GnuPlot? If there isn't such a tool, is there a tool that will generate the formatting options? I've heard of EasyPlot, but it isn't free. ...

Choosing line type and color in Gnuplot 4.0

Hello, I have two pairs of datasets, which I need to plot using Gnuplot. I want the first pair to be plotted in red, one solid and one dashed. The second pair, I want to plot in blue, one solid and one dashed. I've experimented with set style line several times, but I cannot get this exact behaviour. My last attempt (attached) plots t...

Calling gnuplot from python

I've a python script that after some computing is a generating two data files formatted as gnuplot input. How do I 'call' gnuplot from python ? I want to send the following python string as input to gnuplot: "plot '%s' with lines, '%s' with points;" % (eout,nout) where 'eout' and 'nout' are the two filenames. PS: I prefer not to use...

Visualization from C/C++ via Gnuplot's pipe interface

I am attempting to use the pipe interface to gnuplot (a standard one gnuplot_i.{cpp,hpp}) in order to generate a real time display of values that are continually changing within another program written in C++. This works ok but I wanted to see if anyone had any suggestions for improvement. This implementation contains a convenience met...

Aquaterm: titles and axis labels getting cut off

I'm using aquaterm 1.0.1 through octave and gnuplot - on my mac - to generate printable plots. When aquaterm generates my plots, it has a habit of cutting off or cropping all of the titles and axis labels. Is there another imaging program that works with octave that won't have this problem? Or are there other fixes I haven't thought of?...