Questions tagged [gnuplot-iostream]

It is an interface that allows gnuplot to be controlled from C++. Its similar to gnu plot.

Gnuplot-iostream is an interface that allows gnuplot to be controlled from C++. Its similar to gnu plot. it is a iostream pipe to gnuplot with some additional functions for pushing data arrays and getting mouse clicks. source code include STL containers (eg. vector), Blitz++, and armadillo. it is a low level interface, and usage involves manually sending commands to gnuplot using the "<<" operator

48 questions
6
votes
1 answer

How to make gnuplot charts look more visually appealing?

I have been working with gnuplot for a while now. Recently started using it to create reports to send to customers. I tried to experiment with my plotting script but not much has come of it. My question simply is, how to make charts from Gnuplot…
16tons
  • 675
  • 5
  • 14
4
votes
1 answer

gnuplot not showing correct scale on y axis for a circle

I am modelling a graph problem using gnuplot I am plotting a circle with gnuplot using the following command set xtics 1 set ytics 1 plot 'circles.txt' with circle my circles.txt contains the follwoing data 0 0 3 the upmost point on this…
kapil
  • 625
  • 12
  • 20
2
votes
1 answer

Get variables from gnuplot to c++

I'm writing a code in c++ which plots a dataset using gnuplot, and I realized that I could simplify my code a lot if I could get variables from gnuplot to my c++ code. e.g. if I did a fit f and get his stats i.e. f(x)=a*x+b fit f 'data.txt' via…
2
votes
2 answers

Why my fit for a logarithm function looks so wrong

I'm plotting this dataset and making a logarithmic fit, but, for some reason, the fit seems to be strongly wrong, at some point I got a good enough fit, but then I re ploted and there were that bad fit. At the very beginning there were a 0.0 0.0076…
2
votes
1 answer

Gnuplot density mapping

I have a set of points with x and y coordinates. I would like to plot the density of points in a particular region with the output being something like a heat map. Is it possible using gnuplot?
1
vote
1 answer

Gnuplot with gnuplot-iostream and X and Y axis

When I use gnuplot with a simple file at C:\gnu\test.txt containing 1 1 2 4 3 9 4 16 5 25 6 36 7 49 8 64 9 81 10 100 11 121 12 144 I get the graph I expected after starting gnuplot from the command line and running. plot 'C:\gnu\test.txt' with…
rob18767
  • 11
  • 2
1
vote
1 answer

Displaying Gnuplot 3D-mesh cells value by placing the mouse cursor over it

I have been using Gnuplot to display 3D-mesh graphs (surface graphs) for a while. I am now striving to get Gnuplot 3D-mesh cell values displayed by placing the mouse cursor (pointer) over it. I have seen the cell fourth dimension (color intensity…
Javero
  • 11
  • 2
1
vote
1 answer

How to plot on the same graph with for cycles with Gnuplot?

I want to fit multiple data set and plot the result on the same graph, what I' am doing is: do for [i=2:500]{ fit f(x) "myData" using 1:i via a,b plot f(x) } The fit works fine, the big problem is that this code produce a different plot at each…
RIXS
  • 115
  • 5
1
vote
1 answer

Epslatex stand alone does not add \end{document}

I'm trying to use epslatex to create a standalone but the file .tex created can't be compiled because \end{document} and \end{picture} are missing, why is this ? Sample code set terminal epslatex standalone set output "sample.tex" plot…
Andrea
  • 135
  • 6
1
vote
1 answer

Hierarchial Axis in GNUPLOT

I am trying to plot a figure using GNUPLOT, but I want to have a hierarchical x-axis, it should be six tick points in x-axis with first level of label in x-axis being 32,64,128,32,64 and 128. Here the first 32, 64 and 128 should be grouped as…
Sap BH
  • 71
  • 1
  • 6
1
vote
1 answer

Gnuplot not updating correctly even after reread

I am trying to plot two 3D objects that translate and rotate in gnuplot via gnuplot-iostream. In my .cpp file, I have a for-loop that goes for a 100 iterations. For each iteration the .dat files I wish to plot changes, so I'm expecting my plot to…
1
vote
1 answer

Modified Bessel function in gnuplot

How do I express a modified Bessel function of the second kind in Gnuplot? I need to fit my data with the function which is included the modified Bessel function of the second kind.
1
vote
2 answers

gnuplot: spaces in file path

How correctly you can use filenames with spaces? My code: files = system("dir /b \"d:\\data\\my data\\*.dat\"") do for [name in files]{ inputPath = "d:/data/my data/".name outputPath = "d:/data/".name.".png" set output outputPath …
Zhihar
  • 1,306
  • 1
  • 22
  • 45
1
vote
0 answers

Plot to the same GnuPlot screen in Parallel

I'm making a pyqt GUI that plots with Gnuplot. In some cases I need to plot a large amount of polygon objects (for a heatmap) and this process takes a lot of time. I was thinking about plotting in parallel, i.e half of the plot will be drawn by…
1
vote
1 answer

gnuplot matrix heat map plot flipped

when plot set terminal png set output 'plot.png' plot 'matrix.txt' matrix with image 9 3 3 4 3 1 1 7 8 9 1 8 7 3 9 5 I get Do you see, its rotated / flipped. How align it with data? I found Rotating a plot in gnuplot but…
KcFnMi
  • 5,516
  • 10
  • 62
  • 136
1
2 3 4