gnuplot

gnuplot cuts off label of rightmost tickmark in plot

When I plot something in gnuplot, the resulting plot has numbers labeling the tickmarks on the x-axis. The label of the final (rightmost) tickmark is always cut off (the labels are are, like 6 or seven digits). Is there a way in gnuplot to make the graph window wider? For the record, I do not want to make the actual plot wider just th...

gnuplot - multiple lines with different x ranges

Hi, I am using gnuplot to try and plot several lines but each have different x ranges. I am running the following script: # gnuplot script for 'omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat' plot "omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat" using 1:2 with lines title '1' replot "omarC...

How do I calculate the mean of a column

Hello every one... Anyone know how can I calculate the mean of one these columns (on linux)?? sda 2.91 20.44 6.13 2.95 217.53 186.67 44.55 0.84 92.97 sda 0.00 0.00 2.00 0.00 80.00 0.00 40.00 0.22 110.00 sda 0.00 0.00 2.00 0.00 144.00 ...

Font in Gnuplot Postscript Terminal

Hi there, I would like gnuplot to use the same font in the postscript-terminal as it does in the wxt-terminal. The Gnuplot help says that wxt uses "Sans" by default. Now, if i set the terminal to gnuplot> set term post enhanced color "Sans" 12 Terminal type set to 'postscript' Options are 'landscape enhanced defaultplex \ leveldefau...

Problem with Gnuplot 4.4 and TikZ

I'm using Gnuplot 4.4, compiled with Lua support. It supposedly has the tikz terminal. I've successfully compiled my gnuplots to tex using "set terminal tikz". However, when adding this source to my latex document I keep getting the following error: ! Package pgfkeys Error: I do not know the key '/tikz/gnuplot' and I am going t o ...

Calling gnuplot from java? (ubuntu)

I'm not sure if this is possible, especially since Java runs through a VM, but can I call gnuplot from within Java? Perhaps I could have Java open a terminal and input gnuplot plot ... etc? ...

"With lines" in gnujavaplot?

I am using gnujavaplot. In gnuplot, I would type plot "data" with lines In gnujavaplot, I have JavaPlot p = new JavaPlot(); p.addPlot(data); p.plot(); Any idea how to get the lines? ...

Zoom out in Octave / gnuplot

I use Octave with gnuplot under Windows. I can zoom in using the right mouse button. But how can I zoom out from the UI? ...

perl plotting for multiple datasets in .csv file

Hi, I have a .csv file with the following data.(I open CSV file as comma separated file) file1 date1 1 76.09 date10 10 87.09 date11 11 89.89 date2 2 66.5 date3 3 78.89 date4 4 87.98 date5 5 57 date6 6 57.98 date7 7 34.32 date8 8 45.76 date9 9 34.99 file2 date...

Gnuplotting data without a textfile

My program generates bash scripts that call gnuplot. I don't want to have to make an extra file to store the data; is there any way I can explicitly call all of the values? Or possibly having bash make a temporary file. Something like plot {(1,5),(2,10),(3,1)} is what I am looking for. ...

Profesionally looking graphs from gnuplot

Hi, I understand this is going to be fairly subjective, but I am looking for example scripts to generate "professionally looking" graphs from gnuplot. I am plotting 3-5 price processes from a data file (all having same domain and same range of values), and I am looking for a set of tweaks to make the output look better, so that I can in...

GNUplot movie from plots

My program generates 100 plots in GNUplot. I would like to concatenate them into a short little film, where each plot is ~0.1s. How can I do this most efficiently? The least efficient method I can imagine would be to take a screen shot of each plot, somehow put the frames together, and then crop the movie. Thoughts? Edit: By movie I me...

Histogram with numeric x-axis in gnuplot?

Hi all, I'm having this file as data.dat: Xstep Y1 Y2 Y3 Y4 332 1.22 0.00 0.00 1.43 336 5.95 12.03 6.11 10.41 340 81.05 81.82 81.92 81.05 394 11.76 6.16 10.46 5.87 398 0.00 0.00 1.51 1.25 1036 0.03 0.00 0.00 0.00 I can plot this data as histogram with this script, hist-v1.gplot (using set style data histogram): set xlabel "X value...

How can I justify labels when plotting "with labels" in Gnuplot?

The following plot command produces a bar chart, and above each bar the value is plotted as label, formatted with gprintf: plot "data.txt" using 6:1 index 0 notitle with boxes linestyle 1,\ "data.txt" using 6:(0.7):(gprintf("%5.2f", $1)) index 0 notitle \ with labels font "Courier,34" rotate l...

Reading 3-dimensional datasets into R

Gnuplot allows for three dimensional datasets, which are a set of tables separated by empty lines, for instance: 54.32,16.17,7.42,4.28,3.09,2.11,1.66,1.22,0.99,0.82,7.9 54.63,15.50,8.53,5.31,3.75,1.66,1.14,0.83,0.94,0.52,7.18 56.49,16.67,6.38,3.69,2.80,1.45,1.12,0.89,1.12,0.89,8.50 56.35,16.26,7.76,3.57,2.62,1.89,1.05,1.15,0.63,1.05,7....

Writing a list of data values to a .dat file to plot in GNUplot (in C)

Hiya, I have written two different methods to numerically differentiate a function and I am looking for a way to compare them. I have installed GNUPlot and would like to make a file (e.g. approximations.dat) for it to plot. At the moment my programn prints a series of columns with x-coordinate, approximation 1, approximation 2 and actu...

How to place labels on top of each box in gnuplot?

Hi, I have an array of data which looks like this [0.5, 0.3, 0.15,0.0, 0.0, -0.09, -0.25,-0.4]. I wanted put a corresponding label (or number) of the boxes on top of the each box to indicate which one is which. Anybody knows how to do this ?? Thanks. ...

PIL save as 24 bit true color bitmap

Hey guys, I have a png file generated by Gnuplot that I need to put into an excel document using XLWT. XLWT can't import PNG's into the document, only BMP's, so I needed to convert the PNG first. I used PIL for this. Here's the relevant code: im = Image.open('%s' % os.path.join(os.getcwd(), s + '.png')) im.save('%s.bmp' % s) However...

Making C code plot a graph automatically.

I have written a program which writes a list of data to a '.dat' file with the intention of then plotting it separately using gnuplot. Is there a way of making my code plot it automatically? My output is of the form: x-coord analytic approximation x-coord analytic approximation x-coord analytic approximation x-coord ...

How to skip certain bytes at the begining of a binary file in Gnuplot?

Say I have a binary file which has the following format: 4*sizeof(double), 4*sizeof(size_t), (Ny*Nx)*dizeof(double). The first 4 doubles and the 4 size_ts are metainformation about the file. The rest is data I want to plot with gnuplot. Right now I have to convert the file to another one without the header to plot using the command: p...