The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0
votes
0answers
36 views

gnuplot to pdflatex

I produce my graph with gnuplot and then pdflatex. I always used this header that has alwasy worked set terminal epslatex standalone color size 4.0in,3.0in background rgb "white" set output 'plot.tex'...
1
vote
0answers
58 views

boxplot in gnuplot [closed]

I don't understand why some point are not taken by boxplot \documentclass[10pt]{beamer} \usetheme{Warsaw} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage{...
2
votes
1answer
54 views

irregular graphic at the vertices

Please help me to overcome this problem: the plot does not stay still. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage[export]{animate} \usepackage[output-...
0
votes
1answer
57 views

Clipping an horizontal line in a bell shaped curve

In this figure there are two horizontal lines which I have tried to adjust to the ends of these lines to the bell shaped data curves, \documentclass[border=0.5mm]{standalone} \usepackage{amsmath} \...
1
vote
1answer
65 views

How to make Gnuplot figure looks as TikZ

I would like to make TikZ plots from Gnuplot or to make the Gnuplot more similar to the TikZ results (same fonts, lines and points). I use this script set xlabel "Time, t [s]" # font " Helvetica,16"...
1
vote
1answer
46 views

Regression line using loop

Please advice how to fit a and b using values of X and Y columns in the following code \documentclass{article} \usepackage{gnuplot-lua-tikz} \usepackage[active,tightpage]{preview} \PreviewEnvironment{...
0
votes
0answers
46 views

Implicit Curve with two singularity using Tikz and gnuplot

I have been using Tikz before, never used gnuplot. I am trying to plot 25/24*Sqrt[5/3] x^3 y + y^2 + y^3 == x^2 In addition, how to start learning gnuplot?
1
vote
0answers
66 views

pgfplots (gnuplot): How to plot an implicit function for a triangle

How can I plot \pgfmathsetmacro\xA{0} \pgfmathsetmacro\yA{0} \pgfmathsetmacro\xB{1} \pgfmathsetmacro\yB{0} \pgfmathsetmacro\xC{0.5} \pgfmathsetmacro\yC{0.5*sqrt(3)} f(x,y)=4*( (x -\xA)^2 + (y - \...
3
votes
1answer
28 views

How to get an 'axis equal' pgfplot using gnuplot, splot (implicite funtion)

I get an egg for f(x,y)=x²+y²-4=0. I need a circle. What have I to do? I tested set size square; set view equal xy; (and I think all I found else here here) without succes. % arara: pdflatex: {...
3
votes
1answer
61 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
102 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
125 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
61 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 ...
6
votes
4answers
279 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
72 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
148 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
82 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
46 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
36 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
145 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
55 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
478 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
104 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
73 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
145 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
205 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
168 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
36 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
154 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
90 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
60 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
110 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
75 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
266 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
114 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
266 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
100 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
83 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
185 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
309 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
119 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
526 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
43 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
53 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
29 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
244 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
1answer
434 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
138 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
91 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} \...