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.
471
questions
0
votes
0
answers
27
views
Plots with gnuplots is now working
I've always used pgfplots to make my graphs, but I needed to do a graph for an implicit function, so I was consulting and I read about Gnuplots. I installed the program and compile my document, but ...
0
votes
0
answers
255
views
pdflatex' is not recognized as an internal or external command when using externalize
I have been using externalize to generate my pictures for some time now and recently I attempted to generate pictures with lualatex and gnuplot in order to generate contour plots. After I followed ...
2
votes
0
answers
59
views
Dimension too large while using pgfplots with gnuplot and tikz decoration
I use the following code ( with MikTeX latest version and GNUplot 5.4.8 ) to do the parametric plot :
\documentclass{article}
\usepackage[dvipsnames, svgnames, table]{xcolor}
\usepackage{pgfplots}
\...
0
votes
0
answers
143
views
Still getting a "Restricted shell escape" on Kile
In order to add gnuplots in my documents, I'm using this basic code to verify my system (Ubuntu 22.04.2 LTS + Kile 2.9.93)
\documentclass{standalone}
\usepackage{shellesc}
\begin{document}
\...
0
votes
0
answers
121
views
pdf output from gnuplot is missing labels
When I run the following on my gnuplot script, the interactive Qt gnuplot window appears; the labelled graph I'm looking for appears as it should be; and I can select "export to pdf".
...
0
votes
0
answers
23
views
pgfplot get y value of path from x value (for pins/coordinates)
I am plotting two functions (for payments)
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{intersections,fillbetween}
\def\pOne{200}
\def\endYear{25}
\def\pTwo{150}
\def\inflation{6}
...
1
vote
0
answers
42
views
Fine surface in PGFPlots to mark invalid area
I have the following plot:
\begin{figure}[H]
\begin{tikzpicture}
\begin{axis}[
/pgf/number format/.cd,
use comma,
view={0}{90},
x tick label style={/pgf/number format/.cd,...
3
votes
1
answer
101
views
How to fill a region given by an implicit function with gnuplot in tikz?
I want to create a plot the region where f(x,y) = -2 + 3x - y - x^2 - xy - y^2 > 0 in TikZ in the range [-2.5, 2.5] \times [2.5, 2.5]. Since this is an implicit function, I think I must use gnuplot,...
0
votes
0
answers
33
views
Bode grid template with configurable axes limits
I am using the bodegraph package from https://ctan.org/pkg/bodegraph with the intention of producing a nice A4 paper providing a bode grid with specific limits for amplitude and phase.
With the hints ...
0
votes
0
answers
86
views
Creating probability density function plot using tikz package [duplicate]
I am totally new to tikz package, and what I have to do - is to ilustrate the probability density function in the general case in my lecture. I want produce the plot similar to this one:
I run ...
0
votes
0
answers
61
views
gnuplot cannot find *.gnuplot files when using the "outdir" option in LatexWorkshop
File mm.tex contains
\documentclass[14pt,a4paper]{extarticle}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{makeidx}
\usepackage{amsmath}
\usepackage{...
1
vote
0
answers
69
views
How to draw two curves in a single figure [closed]
I want to draw the draph of $x^2y=a(x^2+y^2)$ for different values of $a$ on a single figure. How to do that
This is what I have tried.
"This" means obtaining the curves as level curves of ...
0
votes
0
answers
99
views
Unable to plot two functions with tkz-fct
I'm trying to use tkz-fct to plot some simple functions. One function is plotted right, but when I add another function in some other part of the document all the functions along the whole document ...
0
votes
1
answer
84
views
Merge pgf plot and gnuplot
I have one plot created with Gnuplot (first plot below, over-approximation of some ground truth) and another one with PGF-plot (second plot, depicts a sample true trajectory) and I'd like to insert ...
0
votes
1
answer
70
views
gnuplot - cannot typeset LaTeX title for a plot
I have this gnuplot script:
f(x) = 5 * log(x) / log(2) - 5 - sqrt(5 + x)
F = '$5 \log_2(x) - 5 - \sqrt{5 + x}$'
set yrange [0:30]
set xrange [0:3000]
set terminal epslatex size 10.0cm,10.0cm color ...
1
vote
0
answers
118
views
Adding pdflatex and lualatex gnuplot graphing capabilities
I am using Windows 10 and TeXstudio (latest version) as TeX editor and TeXLive (if matters). In chapter 22.6 page 345 of tikz manual, version 3.1.9a is suggested for more powerful graphing engine to ...
1
vote
0
answers
30
views
splot not plotting the graph correctly [closed]
This equation has to plot the point $(0,0)$ since when $x= 0, y=0$. But however I arrange the equation,it does not plot the point $(0,0)$.
Can someone help me with this problem.
\pdfpagewidth 85mm ...
3
votes
2
answers
630
views
Why is gnuplot using a straight-line approximation in this plot?
I am plotting a fairly simple function over a specific range. The function is just f(x) = 0.12 * sqrt(x). Here's my gnuplot "code" so far:
set border linewidth 1.5
set style line 1 linecolor ...
0
votes
0
answers
161
views
I can't figure out tikz + gnuplot
I'm trying to output a gnuplot graph to tikz code. I tried using the set terminal lua tikz terminal in gnuplot. Gnuplot issued the corresponding code in the \begin{tikzpicture}[gnuplot] environment... ...
0
votes
1
answer
224
views
gnuplottex: conversion failed
Getting this errors:
Package gnuplottex Warning: Conversion of ap-gnuplottex-fig1.gnuplot failed.
Package gnuplottex Warning: Please convert ap-gnuplottex-fig1.gnuplot manually.
Minimal example:
\...
0
votes
1
answer
186
views
gnuplot lua-tikz font to Arial
In gnuplot lua-tikz, I would like to change all letters that appear in a figure (including labels, tics numbers) to Arial. I tried several patterns as
set term lua tikz tightboundingbox standalone ...
1
vote
1
answer
989
views
"Missing character: There is no ` in font nullfont!" using contour gnuplot
The following MWE produces the warning
Missing character: There is no ` in font nullfont!
when compiled with pdflatex or lualatex.
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=...
0
votes
0
answers
27
views
PGFPlots multiple plots issue with gnuplot [duplicate]
I am trying to produce multiple plots in one axis but always get error. It is interesting that file builds fine with both plots separately.
Min code that does not working:
\documentclass{article}
\...
1
vote
0
answers
186
views
gnuplot: y-axis values in math-mode give extra offset from y-label compared to no-math mode in cairo-latex terminal
I'm using the 'cairo-latex' terminal.
The y-axis values are 10^1, 10^2 and 10^3 in logscale.
When I set this values output in math-mode as '10$^1$', or '$10^1$',
the figure ratio is changed --- the y ...
1
vote
1
answer
187
views
It is possible to have a precision of 4 numbers in a tikzpicture
I have this plot
\begin{tikzpicture}
\pgfplotsset{%
,width=10cm
,legend style={font=\footnotesize}
,grid
}
\begin{axis}[enlargelimits=false
,ymax=130
...
0
votes
1
answer
65
views
Using newcommand and gnuplot to plot sums of parametric functions
I want to add (or subtract) a bunch of parametric plots together, something like this:
\documentclass{report}
\usepackage{tikz}
\newcommand{\myPlota}[1]{
(#1>0?(t<#1?0:1):(t<-#1?-1:0))
}
\...
0
votes
1
answer
170
views
Plot a .dat data set with pfgplots and substract the first values
I would like to plot a .dat or .csv data set with tikz. The first column is the time and the second one the voltage. Since the data set is pretty huge, I already reduced its size by reading only every ...
1
vote
1
answer
338
views
No tick labels in gnuplot epslatex
I am trying to plot a function in gnuplot with epslatex terminal to be included in a Latex file:
reset
set terminal epslatex color
set xlabel '$x$'
set ylabel "$f(x)$" rotate by 90
set ...
2
votes
1
answer
281
views
Smooth out contour plot and add gradient arrow
The code below produces contour lines of the functions $(x,y)\mapsto e^{-x^2-y^2}$. I would like to:
Smooth out the contour lines. I found out this solution whis is valid when working directly with ...
0
votes
0
answers
108
views
Cannot plot from .gplot file with multiple commands in tikz for LaTex
I am currently writing my bachelor thesis with TexStudio and Miktex on a Windows 10 machine. I have to use gnuplot which I have .gplot files and .data files for. The .gplot files contain the settings ...
0
votes
0
answers
379
views
Fitting exponential trendline to data gnuplot
I'm trying to fit an exponential trendline to the following data which when graphed appears like the following:
Using the following code for the trendline:
\addplot+[raw gnuplot, red, mark=none, ...
0
votes
0
answers
336
views
Contour Plots in pgfplots not running in TeXStudio
I would like to create contour plots. I have updated MikTek 2.9 the following are my current updates that I think are relevant.
pgfplots: 1.17
TeXStudio: 3.1.1
Windows 10
When searching StackExchange ...
2
votes
1
answer
128
views
Which TeX graphics package is this?
I've been starting at LaTeX for a few months now and I'm learning to plot things
there. I was using Tikz and GNUPlotTex to plot some things, but the end result is
not what I would like it to be.
I was ...
1
vote
1
answer
182
views
Error even after enabling --shell-escape in TeXworks and installing gnuplots 5.4, when using gnuplot {4*x**2 - 5}
On my troubleshooting of the code got from page 42/571 of the pgfplots package:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.17}
\begin{document}
\...
1
vote
0
answers
64
views
Should I install gnuplot? : Error using gnuplot when \addplot+ is used [duplicate]
On page 42/571 of the pgfplots package there is an example using \addplot+ and gnuplot as below:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.17}
\...
0
votes
1
answer
392
views
problems with pgfplots contour gnuplot
I tried to plot the contour of a xyz matrix using pgfplots contour gnuplot, but got the error message from the .log data (My data is in the test pic.tex file)
Package pgfplots notification 'compat/...
0
votes
0
answers
25
views
Texts are misaligned with respect to the plot when using gnuplot, latex and dvipdfm; what is the solution?
When I use the following gnuplot code and then compile the generated tex file with latex and dvipdf commands, I simply get what I want.
gnuplot code:
set terminal epslatex standalone
set output "...
0
votes
2
answers
194
views
Using gnuplottex causes latexmk to compile forever
Edit: I think I found the issue: GNUplot adds a to the second timestamp to the top of the *.tex file it generates, so of course latexmk thinks it has changed. %% 2021-01-18 11:32:42 AM
I usually use ...
1
vote
1
answer
393
views
How to draw `grid lines` with `contour gnuplot`?
This is a follow up question of Tick labels not showing when using `contour gnuplot` and `axis line = middle`. The difference is that I added the grid lines in the code. However it is not drawing it.
\...
1
vote
1
answer
244
views
Tick labels not showing when using `contour gnuplot` and `axis line = middle`
The following code is the modified answer of @user121799 in TikZ: Plot contour lines. The difference is that I added axis x line = middle, axis y line = middle in the first line of the axis ...
0
votes
0
answers
104
views
Stacked bar chart using Gnuplot via Lualatex
when I make sin(x) in gnuplot and compile it via Lualatex it does work, but when I make stacked bar chart in gnuplot, and do the same, now it does not work. I am using \input{filename.tex} with ...
0
votes
1
answer
164
views
PGFplots contour gnuplot call results in empty .table file
I am trying to reproduce the following code from this answer which i paste here with the fixes suggested by @TikZling for convenience:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}...
2
votes
1
answer
300
views
How to use an external program (Gnuplot) with Lualatex and Texmaker?
I do not have too much experience with LaTeX and I would like to configure Texmaker so that LuaLaTeX can use an external program.
In this case, I would like to reproduce a graph (using Gnuplot (which ...
1
vote
0
answers
49
views
Adding figures generated by epslatex terminal of gnuplot into beamer presentation
I am trying to understand how to add figures generated by using epslatex terminal of gnuplot into beamer presentation. I have the following piece of code for gnuplot:
set terminal epslatex size 3.5,2....
1
vote
1
answer
423
views
pgfplots / gnuplot: How to draw a 3D two-parametric function
I want to plot a 2-parametric surface function
set parametric
splot cos(u)*cos(v),sin(u)*cos(v),sin(v)
(Hint: If I just put it into gnuplot it works.)
I guess that special settings in pgfplots are ...
2
votes
1
answer
385
views
Same style with gnuplot than with normal graph with TikZ
I'm learning how to use gnuplot with TikZ.
I would like to draw next one to each other graphs of some algebraic curves. I'm starting with graphs that can be drawn without gnuplot (they are not ...
2
votes
1
answer
87
views
Step response with bodegraph package
I discovered bodegraph package lately and I found out that it allows drawing step responses on the package documentation. So I copy-pasted the code on page 19 as a first try but the desired graph ...
9
votes
3
answers
2k
views
Best practice for plots (pgfplots, gnuplot, etc.)
I am writing a fairly large article with a lot of different plots.
They range from simple ones like abs(x) or x^2 to high-polynomials with their first and second derivative, and nonlinearities (...
4
votes
1
answer
1k
views
Plotting Financial Data with PGFPlots
I have recently been interested in plotting financial data with pgfplots. The style I am trying to achieve is similar to what can be produced with gnuplot. However, I am familiar with pgfplots and ...
1
vote
1
answer
56
views
How do I convert a pgfplotstable from a macro to plain text for consumption by gnuplot?
I am trying to write a macro for doing quadratic regression in pgfplots. I have
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{gnuplottex}
\usepackage{pgfkeys}
\...