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
2 answers
247 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 ...
user avatar
  • 133
0 votes
0 answers
53 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... ...
user avatar
0 votes
1 answer
34 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: \...
user avatar
0 votes
1 answer
70 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 ...
user avatar
  • 101
1 vote
1 answer
128 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=...
user avatar
0 votes
0 answers
23 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} \...
user avatar
1 vote
0 answers
69 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 ...
user avatar
  • 11
1 vote
1 answer
52 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 ...
user avatar
0 votes
1 answer
55 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)) } \...
user avatar
  • 753
0 votes
1 answer
90 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 ...
user avatar
  • 5
1 vote
1 answer
105 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 ...
user avatar
2 votes
1 answer
111 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 ...
user avatar
  • 177
0 votes
0 answers
104 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 ...
user avatar
0 votes
0 answers
120 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, ...
user avatar
0 votes
0 answers
159 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 ...
user avatar
  • 73
2 votes
1 answer
107 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 ...
user avatar
  • 21
1 vote
1 answer
70 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} \...
user avatar
  • 1,491
1 vote
0 answers
61 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} \...
user avatar
  • 1,491
0 votes
1 answer
178 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/...
user avatar
  • 2,140
0 votes
0 answers
21 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 "...
user avatar
  • 274
0 votes
2 answers
113 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 ...
user avatar
  • 17.3k
1 vote
1 answer
271 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. \...
user avatar
1 vote
1 answer
106 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 ...
user avatar
0 votes
0 answers
61 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 ...
user avatar
0 votes
1 answer
82 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}...
user avatar
1 vote
1 answer
166 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 ...
user avatar
1 vote
0 answers
35 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....
user avatar
1 vote
1 answer
208 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 ...
user avatar
  • 6,303
2 votes
1 answer
301 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 ...
user avatar
  • 6,142
2 votes
1 answer
69 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 ...
user avatar
  • 561
9 votes
3 answers
1k 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 (...
user avatar
  • 268
4 votes
1 answer
673 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 ...
user avatar
1 vote
1 answer
49 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} \...
user avatar
  • 2,023
1 vote
0 answers
219 views

PNG output using LaTeX [closed]

Is there a way to use LaTeX symbols in gnuplot and obtain the plot directly as a .png with desired the resolution? I would also love to have the immediate preview of the plot as it comes with the qt ...
user avatar
  • 131
1 vote
1 answer
114 views

Arara rule for gnuplot in Texstudio on Windows 10

I run gnuplot with a user command pdflatex --shell-escape %.tex perfectly. Is there any rule for arara to automate this process to be used, instead of running arara then user defined then arara ...
user avatar
  • 45
0 votes
1 answer
88 views

How to fit a Prony series to data in PGFPlot?

I am trying to fit Prony series to my viscoelasticity data in PGFPlots. The problem I am running with is how to mathematically define the Prony series that gnuplot can recognise the function and do ...
user avatar
  • 337
2 votes
0 answers
582 views

Plot data file `graficas.tkzfonct.table` not found

\documentclass[11pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage[spanish]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{color} ...
user avatar
1 vote
1 answer
196 views

tikz: How to annotate a picture created with gnuplot's epslatex terminal?

I know how to annotate a picture using \node and includegraphics, see here. But I need to include a pic createed with gnuplot and epslatex terminal. The resulting *.tex looks something like this (...
user avatar
  • 140
0 votes
1 answer
199 views

another Extra }, or forgotten \endgroup. TIKZ ifthenelse

I am trying to plot some equating regarding masstransfer in dialyszers (Eq2) and the derivatives (Eq1). It has to be plotted casewise as it tends to x/0 if b=d. This is working fine for other cases as ...
user avatar
1 vote
1 answer
90 views

Plotting Surface produce spikes in TIKZ but not in gnuplot, Gnuplot plotting problem

I have 2 problems: 1) I am trying to do a surfaceplot in TIKZ but unfortunately TIKZ produces spikes that gnuplot is not producing. 2) if I try to use gnuplot inside of TIKZ, the only output is a ...
user avatar
1 vote
1 answer
53 views

Fixed a problem in drawing graphs using Gnuplot and without it in tikz package

Fixed a problem in drawing graphs using Gnuplot and without it in tikz package. code1: need gnuplot \documentclass[tikz,border=3.14mm]{standalone} \def\A{2.5} \def\V{0.8} \def\q{0.8} \begin{...
user avatar
  • 1,427
0 votes
0 answers
147 views

Easy copy and paste (gnuplot) code from pdf file (made in latex) to programming enviroment itself (Gnuplot program)

I am writing a document where I need to put down gnuplot code I've used. What I want is to copy this gnuplot code from final pdf file of this document and paste it in gnuplot itself so it can work. I'...
user avatar
  • 1
1 vote
0 answers
131 views

\mathbb symbol in gnuplot

I'd like to use a $\mathbb{C}$ symbol in one of the axes in enhanced postscript in gnuplot. This link has a list of latex symbols that can be used in gnuplot, but it doesn't include mathbb. Is there ...
user avatar
  • 133
1 vote
0 answers
82 views

Changing the variable against which a function is plotted in TikZ/PGFPlots

I'm trying to graph a contour map of the function r=-0.5(x^2+y^2), but with the axes as y, 1-x. What I wrote is the following: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \...
user avatar
2 votes
0 answers
585 views

Cairolatex vs epslatex terminal within Latex, implementing PDF plots

So I've tried to move away from using eps within my LaTeX documents and found that the cairolatex terminal in gnuplot has a pdf output option that has the advantage of being portable and hence more ...
user avatar
  • 33
2 votes
1 answer
585 views

Gnuplot to SVG to LaTeX with formulas

I create plots in gnuplot that I export as svg and include in a LaTeX document. I would like to type simple LaTeX formula directly in gnuplot that appear properly in the LaTeX document. I noticed ...
user avatar
1 vote
1 answer
244 views

LuaLaTeX and Gnuplot (Cairolatex terminal): "Undefined control sequence. \inputencoding"

I recently went from pdflatex to lualatex. Quite happy so far except of one thing: I am unable to include Gnuplot graphs created using the cairolatex terminal (options "pdf input"). The error I get is ...
user avatar
  • 11
1 vote
1 answer
187 views

How to draw a tangent line to a parametrically defined curve in an arbitrary point (plotted with raw gnuplot option)?

How to draw a tangent line to a parametrically defined curve in an arbitrary point (plotted with raw gnuplot option)? The answer given from here well work for monotonically increasing or decreasing ...
user avatar
  • 5,006
0 votes
0 answers
270 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'...
user avatar
  • 149
1 vote
0 answers
437 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{...
user avatar

1
2 3 4 5
10