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.

Filter by
Sorted by
Tagged with
3
votes
1answer
58 views

Plotting the difference in y-values between two contour plots

I have the following graphic generated by this code: \documentclass[11pt,a4paper]{scrartcl} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{amsmath} \begin{document} \begin{...
2
votes
3answers
91 views

Plotting a function defined by equation without closed form solution

I'm trying to have the a silimiar plot to the one Wolfram Alpha provides me here to the equation $24.6347 \left(246.347 x + \sqrt{(246.347 x + 20)^2 + 1} + 20\right)^{-a} =\ 30.2879 \left(-33.6532 x +...
3
votes
4answers
112 views

pgfmath / gnuplot: How to use gnuplot for complicated calculations?

Is there a way to use gnuplot for complicated calculations? For \pgfmathsetmacro{\x}{0.02} \pgfmathsetmacro{\y}{2*11000*(1 - 1.40576 - cos(\x) + sqrt(1.40576^2 - sin(\x)^2))} for example I get '...
-1
votes
1answer
60 views

Help with some Graphs [closed]

I've been trying to reproduce these graphs so I can use them to a school project, but I don't know where to start. I'll be happy if someone can take his precious time and help me with some codes that ...
2
votes
1answer
41 views

Gnuplot 3D splot in tikz raw gnuplot (without pgfplots)

please look at the following MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=.5] \draw[color=blue] plot[raw gnuplot, smooth] function{ splot sin(x)*sin(y)}...
2
votes
1answer
63 views

Problem with PGFplots and GNUplot

I am trying to plot some functions, however I run into the problem that I get the same output for different functions Here is the code: \documentclass[a4paper]{article} \usepackage{pgfplots} \begin{...
0
votes
2answers
84 views

gnuplot epslatex problem

I am having a really really weird problem trying to include graphics files in my latex document that were created using the gnuplot epslatex terminal. I have created a gnuplot script which uses the ...
5
votes
1answer
60 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
36 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
30 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
144 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
50 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: ...
6
votes
3answers
423 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
86 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
52 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 ...
2
votes
0answers
93 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
148 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
129 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
29 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
88 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
70 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
104 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
59 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
178 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
88 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
2answers
199 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
92 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
80 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
142 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
241 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
99 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
456 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
38 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
44 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
27 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
216 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
363 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
342 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
125 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
70 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
76 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
350 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}...
4
votes
1answer
378 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
137 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
32 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
46 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 ...