Questions tagged [gnuplot]

Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms.

Gnuplot is a command-line driven plotting engine that runs on all major operating systems (Windows, GNU/Linux, OSX, etc.). Its initial release dates back to 1986 and it is still being actively developed. The program is written in C and is released under a custom open source license.

There is no graphical user interface contained in the official release, but several external ones are available (e.g. wgnuplot, xgfe, PlotDrop,...). Additionally there are interfaces available for multiple programming languages such as C, C++, Python, Fortran and Perl (see more information in links below). There are several software suites that use Gnuplot as plotting device. Amongst them are GNU Octave, Maxima and gretl. Mostly however, Gnuplot is used via scripts which automate the task of generating graphics. The output can be in various, either vector or raster, formats.

Gnuplot is a powerful tool as it allows the customization of nearly every parameter of the plot. Additionally, LaTeX is supported, which means that labels can use LaTeX typesetting and that the plot can be saved as LaTeX file.

Links:

(from the Stack Overflow tag wiki)

104 questions
12
votes
2 answers

How to plot graph from a text file values using gnuplot?

How to plot a graph from text file values? The text file look like below: location count1 count2 HZ 100 193 ES 514 289 FP 70 137 BH 31 187 I want to plot these values as a graph in shell…
manu
  • 121
  • 1
  • 1
  • 3
9
votes
1 answer

gnuplot figure-precision

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates): 2015.493379 5 2015.505479 5 2015.513699 25 2015.530137 25 2015.532877 20 2015.543836 5 2015.552055 5 2015.554795 10 2015.563014 15 2015.565753 15…
JoVe
  • 145
8
votes
1 answer

GNUplot--Change steps of yrange

I'm learning GNUplot. I need to change steps in which Y values increase while plotting my graph.xrange command will change range but steps. Ex. I have data like this 1 1000 2 1500 3 1 4 200 ... By default GNUplot is taking Y range as[0,5000] which…
4
votes
1 answer

how to show gnuplot timeseries graph from log of changes

I have an application that produce log like that: 14:48:16, 41.0 14:50:01, 40.0 14:54:01, 41.0 14:54:04, 40.0 14:55:10, 41.0 14:55:22, 40.0 15:00:13, 41.0 ... It is current time and the measured temperature. The application writes a line to the log…
4
votes
0 answers

gnuplot, format axis with constant power of 10

I am trying to make a plot with values on the x axis ranging from 0 to 2 ms. I want to show a tick every .1 ms, with the labels going from 0.0, 0.1, ... up to 1.9, 2.0. I don't want to show the power at each tick, because I label the axis in ms, not…
MTV DNA
  • 141
4
votes
2 answers

Plotting in gnuplot

I have a set of data in a text file (X,Y coordinates which are not sorted). I want to plot it using gnuplot and connect plotted points using lines. I tried: plot "a.txt" with lines but it is connecting the first point to the second point and so…
3
votes
1 answer

gnuplot lost the plot

I'm experimenting with evolutionary algorithms and I have written two text files that I cannot get the plot. Based on the information on google, I think I have the format correct. (generation-number) (tab) (best-fitness) for example: 1 231 2 …
3
votes
1 answer

gnuplot: Control the size of circles in a scatter chart

I need to produce a scatter chart from a two-column comma-separated text file: gnuplot> set style fill transparent solid .5 noborder gnuplot> plot "corr.csv" using 0:1 with circles lc rgb "blue" Here is the output: However I want something like…
sci9
  • 527
2
votes
1 answer

How to change the number format in the gnuplot status bar?

I am plotting some financial data in gnuplot as candlesticks. Example of the data: 2022-04-20T00:01:00 1.07907 1.07901 1.07916 1.07907 2022-04-20T00:02:00 1.07906 1.079 1.07908 1.07907 2022-04-20T00:03:00 1.07906 1.07898 1.07909…
2
votes
0 answers

improve plot scale and display

I am trying to plot some data using gnuplot My input is similar to $ go run . | tail 410ms-420ms 14260 420ms-430ms 13654 430ms-440ms 13344 440ms-450ms 13156 450ms-460ms 12829 460ms-470ms 12463 470ms-480ms 12883 480ms-490ms 12100 490ms-500ms…
mh-cbon
  • 143
2
votes
1 answer

gnuplot setting image width with pixels for specific DPI

I need to produce image with gnuplot with following guide given width=90 mm (255 pt), pixels at 300 dpi=1063, pixels at 500 dpi=1772 , pixels at 1000 dpi=3543 How can i produce image with width=90mm and pixels=1063 for 300 dpi In gnuplot i use set…
2
votes
2 answers

how to include Angstrom symbol and Greek letters in gnuplot?

I am using gnuplot and would like to get the symbol for "Angstrom" (Å, ISO encoding 305) and the Greek letter Delta (Δ, Symbol 104) in the plot. How can I combine the two encoding schemes when producing my output eps?
Nadia
  • 21
2
votes
1 answer

A good RGB formulae in gnuplot for colored and gray 2d contour prints

I have a question about a handsome colorpalette for 2d contour plots in gnuplot. Based on the gnuplot manual and help function, I figured out that there are some pre-defined colors palettes like: Some nice schemes in RGB color space 7,5,15 ...…
Tobi
  • 155
2
votes
1 answer

Add y-axis value labels to gnuplot-bar chart

I am referring this example to draw a bar chart. I like, the exact value to be displayed on top of each of the red bars. Like, those numeric values that are circled in green, My gnuplot code is, set size 1, 1 set term png size 600, 400 set title…
user93868
2
votes
1 answer

Why gnuplot plot don't plot straight lines?

I was trying to plot a regression line with gnuplot, but instead to plot a straight line plot a line full of bend.I printed it in png format.Here a pic.
Tarlo_x
  • 127
1
2 3