Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gnuplot]

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

5
votes
1answer
38 views

Using GNUplot to create a heatmap in pgfplots

I am trying to create a heatmap using tikz/pgfplots in latex, I however get an empty plot. I use the same command as I used in GNUplot, which was plot 'heat-data.txt' matrix with image; In GNUplot ...
0
votes
1answer
33 views

Figure generated with gnuplot-cairolatex is not properly shown when the figures are in a different directory

I use gnuplot with the term cairolatex to create and incorporate graphics to my LaTeX projects. This terminal returns two files. One is *.tex and the other one is *.svg. But I'm having trouble when I ...
1
vote
1answer
27 views

Style of lines in raw gnuplot and pgfplots

I am drawing a function using raw gnuplot in pgfplots and I am not able to make the lines thicker and to change the colour (for instance grey). My example is the following: \begin{tikzpicture} \...
4
votes
3answers
142 views

Find the locations of blank lines in .csv file

This is related to a previous question I asked - Plotting data blocks of varying length using PGFPlots and gnuplot. Here is a minimum working example: % !TeX TXS-program:compile = txs:///pdflatex/[--...
2
votes
1answer
46 views

Plotting data blocks of varying length using PGFPlots and gnuplot

Consider this MWE: \documentclass[a4paper,12pt]{article} \usepackage{pgfplots,filecontents} \begin{filecontents*}{data.csv} "Amplitude","notes: data set 1", X,Y, 1,1, 2,2, 3,3, 4,4, "CH1","notes: ...
7
votes
3answers
404 views

Plot a function of two variables equal 0

I would like to plot the function x2(1 − x2) − y2 = 0 in LaTeX. I tried running following code \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage[utf8]{inputenc} \...
0
votes
1answer
80 views

Blank pdf document

I entered the LaTeX gnuplot code exactly as stated in this site, which should output the sine curve on the output document using TeXworks compiler. It compiles but produces an empty document. An ...
3
votes
1answer
47 views

Plot level curve using data from pgfplotstable

I have some data from some numerical experiments stored in some csv files, which I read into LaTeX using \pgfplotstableread{Results/test.csv}\data These data consist of x, y and z coordinates and I ...
3
votes
0answers
67 views

Drawing contour plots with parametric plots or polar coordinates

I have two 3D plots, one in polar coordinates, the other parametric. I'd like to have on the same plot also the contours. These are the current plots: \begin{tikzpicture} \begin{axis}[view={130}{...
3
votes
1answer
119 views

Tikz/Pgf - Surf plot with smooth color transition

I am drawing a surf 3d plot in Tikz/Pgf using gnuplot. This surface need to be projected on a plane, which can be achieved by adding another surf plot. The thing is that the transition between colors,...
3
votes
1answer
110 views

Smooth projection of a surf plot - tikz/gnuplot

I am drawing a 3D-Bessel function using pgfplots and gnuplot. What I am trying to do is plot on top of the 3d box, a projection of the 3d function. I thought of using a contour gnuplot plot, but ...
0
votes
0answers
26 views

How to modify error bar appearance

I would like to make the side lines of the error bars longer, as illustrated in this figure (not created by gnuplot): Is there any way to do this without resorting to drawing symbols manually?
1
vote
0answers
68 views

Installing GNUplot [closed]

I would like to run this program but my output is only the axes themselves! I thought my MiKTeX console updates all softwares for my TeXnicCenter platform but apparently not since when I run this: \...
1
vote
0answers
62 views

How can I add arrows onto gnuplot contour plot?

I have a contour plot for a doublet flow, but I'm trying to add arrows onto the contour plots. \begin{axis}[ xshift=8cm, ticks = none, view={0}{90}, xmin = -1, ymin = -3, xmax = 5, ...
0
votes
1answer
57 views

Gnuplot error without any log

I am trying to recreate this TikZ picture I saw https://tex.stackexchange.com/a/212936 (specifically the last image) However upon compiling I get a message saying that the process exited ith errors ...
2
votes
1answer
94 views

label positioning in gnuplot

I'd like to have the x and y labels at the end of the axis, next to the arrows: \documentclass{scrbook} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture}[thick,scale=0.7, ...
2
votes
1answer
51 views

Gnuplot+LaTeX: two figures side and y-label far away

I read most of answer to similar questions, but they did not help me. I have two problems: these are two graphics that I am trying to place side by side. But: firstly, they turn out to be shifted ...
0
votes
0answers
146 views

Package pgfplots Error: “sorry, plot file could not be opened” [duplicate]

I was met with this unpleasant surprise when trying to compile this file: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \begin{document} \begin{tikzpicture} \...
1
vote
1answer
82 views

Contour gnuplot setup for TexMaker (Windows 10)

I'm trying to get contour gnuplots working on Windows 10 with TexMaker and MiKTeX, but I keep getting the error: "sorry, plot file {file.table} could not be opened." I have the latest version of ...
12
votes
3answers
1k views

How to plot function sin(x)^2 / x^2

The above function looks like this: However, using tikzpicture with addplot \documentclass[11pt]{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{axis} ...
2
votes
1answer
142 views

Filled contour plot from data set

I want to create a filled contour plot in pgfplot from a dataset mydata.dat I get a ugly picture like this: The code that I use is \documentclass{standalone} \usepackage{pgfplots} \...
3
votes
1answer
82 views

Mapping with Tikz and Gnuplot in defined area

i´m trying to plot some x,y and z values from a .txt-file with gnuplot in Latex. The plotting itself works fine. The Problem is, that there should be a defined Outline surrounding my plot. Everything ...
1
vote
0answers
79 views

Mapping with Tikz and Gnuplot

i created a plot with Tikz and Gnuplot showing some z Values over x,y Values. I also created an outline which defines my geometry for the specimen. Now i want to delete or not show the data which is ...
0
votes
1answer
128 views

tkz-fct not creating a visible graph (bis)

The solution given in the same question asked by @A.Ellett does not work for me. I am running Windows 10 and I installed gnuplot gp525-win64-mingw.exe as indicated by the manual after downloading ...
0
votes
1answer
205 views

Problem with contour plots

Im trying to run the following code \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{width = 7cm, compat = 1.8} \begin{document} \begin{tikzpicture} \begin{axis}[domain = -2:...
2
votes
1answer
89 views

pgfplots: add tikz drawing to axis labels

So far, I used gnuplot to draw plots for my LaTeX documents. However, sometimes it is not so satisfactory and I have not yet found the optimal solution for making plots. Since I read about pgfplots ...
0
votes
1answer
394 views

Use GnuPlot with latex

I wanted to plot a graph with log base 2 using my data on latex. It plots a straight line while it should have ploted a curve . \begin{gnuplot}[terminal = latex, terminaloptions = {size 2.8in,3....
2
votes
0answers
36 views

pgfplots with gnuplot and raw input for embedded data [duplicate]

I would like to have the following gnuplot graph (that's just an exemple), which is using embedded data instead of an external file: $data << EOD 1 5 2 10 3 1 EOD ; plot $data using ($1):($2) ...
0
votes
1answer
43 views

Curve fitted parameter appears as 0 in legend (pgfplots, gnuplot, pgfplotstable)

I fitted a curve on a dataset, but parameter c remains always 0 in the legend of the plot's fitting equation. Can you please help me why? I also checked the generated parameter.dat file and it ...
1
vote
1answer
25 views

Unwanted dots when using addplot3 gnuplot

I'm trying to use "addplot3 gnuplot" instead of "addplot3" to plot some data, but the resulting graph is overlayed by a grid of blue dots. How can I removed it? \documentclass{article} \usepackage{...
3
votes
1answer
205 views

Fill the area included between two gnuplot contours

this is my first experience with latex plots. I want to fill the small area included between the two contour lines just like i did for the two polynomials, but i think there is some issue with the ...
0
votes
0answers
312 views

gnuplot cairolatex standalone - how to change font size?

I use gnuplot with the cairolatex standalone terminal to produce PDF graphics of my plots which I later use to include in my other documents. This is how I make the plots: set terminal cairolatex ...
0
votes
1answer
299 views

Two eps sub-figures with one legend

I have two figures and I want to have them as two-subfigures with one legend, and separate numbers with commas on the y-axis (like 10,000 or 1,000,000). This is what I currently have: I tried to use ...
1
vote
0answers
123 views

TikZ animated with rstudio, gnuplot, miktex and windows

I am trying to reproduce in Rstudio with the package Sweave (.Rnw) the script below, found in that link. However, I can not see the graphics, only the numbers and the lines. I use windows 10, miktex 2....
0
votes
0answers
59 views

Gnuplottex and subfigures

I am having trouble aligning subfigures while using gnuplottex. The code of the attached figure is as follow: \begin{figure}[hb!] \centering \begin{subfigure}[b]{0.24\textwidth} \...
0
votes
1answer
68 views

combining surf and contour gnuplot for engine data

as I want to visualize an engine map using LaTeX, I'm having some problems where I am unable to find a fix. To be fair, I'm not the most experienced Tex user, so I hope one of you has got the answers ...
0
votes
0answers
47 views

Vertical Alignment of an External Image in a Display

The image above was produced by pdflatex compiling ... The left hinge is subjected to a horizontal displacement $u_A$, \[ u_A(t) = \Delta \begin{cases} 0 & t \le 0,\\ \displaystyle ...
1
vote
1answer
91 views

Plot the characteristic roots of complex equation

I want to draw the following pictures as plots in the TikZ environment. The first one is the characteristic roots of the equation \lambda + \mathrm{e}^{-\lambda} and the second one is the ...
2
votes
1answer
320 views

Draw sine waves

I need to draw these two graphs using LaTeX, but so far I have no sucess. This is the closest I got to the first one (for the second one I have no MWE unfortunately) \documentclass[14pt]{extarticle}...
3
votes
1answer
348 views

Scatterplot with trendline with curve fitting equation of polynomial of degree 3

I'm trying to plot a scatter plot with curve fitting trendline of polynomial degrre 3. I have been able to create the required graph with trendline in excel. I tried to plot the same graph with the ...
2
votes
0answers
116 views

How to “set format x” to have the format valid with gnuplot+cairolatex

My gnuplot.plt is set up like this set term cairolatex pdf set output "data.tex" set nokey plot 'data.csv' using 1:2 with lines, And I use the output from gnuplot in my latex like this \begin{...
2
votes
1answer
31 views

Can't move gnuplots into subfolder

I have a data.dat-file that I plot with a gnuplot.plt file with these mentionable lines: set term cairolatex pdf set output "plot.tex" This generate a plot.tex, with labels, axes, etc and a plot.pdf ...
2
votes
1answer
44 views

Missing } error from multiple “\immedite\write”s within a foreach loop; the current plot has no coordinates error with gnuplot

I suspect that these errors are coming from a section of code in which I loop through a master data file and restructure it so that I can give the newly made file as an argument to pgfplots. If I ...
1
vote
0answers
777 views

'gnuplot' is not recognized as an internal or external command, operable program or batch file

First of all I found a deleted question in this forum about the topic so I don't know if there is something bad about this. I am using Windows 10, miktex, TeXstudio and I have GNUplot installed. I ...
2
votes
1answer
84 views

No curve drawn with bodegraph

I'm trying to plot a Bode diagram with the bodegraph package, but the curve is not shown. I don't know what to do. \documentclass{standalone} \usepackage{tikz} \usepackage{bodegraph} \begin{document}...
2
votes
1answer
579 views

GNUPLOT and cumulative distribution function (CDF) issues

I have several issues that I can not resolve on my own. The label of the y-axis can not displayed on the top / above the arrow Then I can not put the 1/100% of the CDF on the y-axis (not even ...
3
votes
0answers
109 views

Arrow in arbitrary position on pgf/gnuplot curve

The main idea, is to plot an electric field lines with arrows on it, something like this: My solution is: \documentclass[tikz, border=1cm]{standalone} \usepackage{ pgfplots} \usetikzlibrary{...
3
votes
1answer
310 views

How to make gnuplot handle fractions as float in pgfplots

If I use gnuplot inside pgfplots it doesn't seem to recognize fractions properly as floats, thus I have to type 3/7. instead of 3/7 which is annoying. Is there a way to change this behaviour globally? ...
1
vote
0answers
275 views

Creating a 3D plot with Tikzpicture and Gnuplot from a matrix data file

I wanted to create a 3D plot in LaTeX with Tikzpicture and Gnuplot with a data matrix. So far I got a plot which looks like My code so far: \documentclass{scrartcl} \usepackage[miktex]{gnuplottex} \...
2
votes
1answer
148 views

Editing axis and plot style in Tikzpicture

I finally got tikzpicture and gnuplot to work directly in TeXstudio. Now I want to create a plot by fitting a curve to some data. \documentclass{scrartcl} \usepackage{miktex}{gnuplottex} \...