Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
46 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
41 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
33 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
45 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
61 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 ...
-1
votes
0answers
34 views

gnuplot/ - How to obtain point data from a fitting curve?

I plotted curves by fitting some existing points using gnuplot. like: f1(x)=a1/(x**b1)+c1 fit f1(x) "41a091_input.txt" u 1:2 via a1,b1,c1 plot f1(x) with line lt 1 lw 4 lc rgb "blue" notitle, \ ...
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
80 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
51 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
68 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
75 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
103 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
65 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
0answers
36 views

tikzexternalize creates useless copies of gnuplottex

When using gnuplottex and tikzexternalize with [prefix=gnuplottex/], for each figure a tex file called main-gnuplottex-fig[1-5].tex is created in the main directory, and the gnuplottex-subdirectory ...
0
votes
1answer
162 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
22 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
25 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
19 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
128 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
184 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
158 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
103 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
46 views

cairolatex produces .tex file with different axis label margins in mac and linux

Running the following gnuplot script on my mac and linux computers give different spacings between the axes labels and the axes set term cairolatex pdf standalone size 100cm, 100cm dl 1 font ",12" ...
0
votes
0answers
35 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
0answers
30 views

cannot compile tex file in https://github.com/patmorin/ods

I am working on the file in https://github.com/patmorin/ods. I downloaded the zip file and open ods-tex in the TexWorks. when i compile the file the error "! LaTeX Error: "File `gnuplot-lua-tikz.sty' ...
0
votes
1answer
57 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
29 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
87 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
224 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
244 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
82 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
42 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
540 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 ...
3
votes
1answer
67 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
478 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 ...
2
votes
0answers
102 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
213 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
206 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
116 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} \...
1
vote
1answer
422 views

Import plot from Gnuplot

I created the following plot in Gnuplot by fitting a gaussian curve to some data. In Gnuplot it looks like this: It doesn't look perfect but that is totally fine. I used set terminal latex set ...
0
votes
1answer
35 views

Can't compile document that uses PGFPlots from cmd

When I try to compile this code example from Command Prompt (cmd) in Windows 10, with MiKTeX and with the following command: pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape ...
2
votes
1answer
186 views

How can I plot a smooth line of fit through the following points and is there an easier way to plot (x,y) labels for each point?

\documentclass{standalone} \usepackage{pdfpages} \usepackage{tikz} \usepackage{pgfplots, pgfplotstable} \pgfplotsset{compat=1.12} \usepgfplotslibrary{fillbetween} \usepackage{amsmath} \...
3
votes
1answer
251 views

Octave/Matlab using gnuplot: Diagonals in barplot

i started using octave figures for my LaTeX-document and i am not quiet satisfied about a small detail about the output pdf: I am using the bar-option for plotting and in the pdf the diagonals of the ...
18
votes
1answer
622 views

How to draw force lines onto an equipotential contour plot using TikZ?

I'm really new to TikZ and need to reproduce the following figure: which corresponds to the gravitational field produced by two dissimilar masses (being the mass on the left twice the mass on the ...
3
votes
2answers
298 views

Fill area under Student's-t distribution with pgfplot-gnuplot

I'd like to draw the pdf of a Student's-t distribution with given degree of freedom and fill the area under the curve on a given interval. The solution I found for Student's-t distribution curve ...
0
votes
0answers
96 views

How to use gnuplot in TeXworks? [duplicate]

I tried to use gnuplot in TeXwork. I was reading the manual and I found this code: \documentclass{memoir} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \begin{document} \begin{tikzpicture} \begin{...
1
vote
1answer
996 views

\input in figure environment

I am trying to include an image that I created with gnuplot. Therefore I used in gnuplot: set terminal epslatex color set output './bild.tex' Now trying to include the image in my tex document: \...
4
votes
2answers
253 views

Draw illustration uniform convergence

I would like to print the geometric interpretation of uniform convergence, and I don't know how to start, I hope you can help me. The idea of drawing is to illustrate the geometric meaning of uniform ...
1
vote
2answers
1k views

pdflatex and gnuplot's epslatex

I'm having some trouble trying to use gnuplot's epslatex terminal in a tex document to be compiled with pdflatex. The figure appears too big in the final pdf, and the axis' tics are not in math mode, ...