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
34 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'...
4
votes
1answer
2k views

gnuplottex package not working anymore

Whenever I try to use the gnuplottex package, I get the following error messages: /usr/share/texlive/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty:79: Argument of " has an extra }. [...te\write18{rm ...
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-...
3
votes
1answer
959 views

Fit bounding box to gnuplot legend

Summary: Is there a way to automatically reduce the bounding box of an eps file to only fit displayed text? Details: A while ago I asked a question about combining multiple gnuplot graphs into a ...
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{...
4
votes
0answers
1k views

using gnuplot to plot data from a file

I am trying to plot some data using pgfplots, but the data are so extensive that the maximum capacity is reached. I get the error: TeX capacity exceeded, sorry [main memory size=3000000]. What can I ...
2
votes
0answers
275 views

Plot time series with PGFPlots and GNUPlot [closed]

I am trying to plot a large time series using PGFPlots, but it takes ages and often crashes with memory error, so I thought to use GNUPlot. This works fine with the same data but with simple ...
2
votes
1answer
999 views

datetime plot in pgfplot using gnuplot

I have a large data file with several columns wherein the first column is a date and time in the format, 'yyyy-mm-dd hh:MM' and the rest are numerical values of different variables. I often have ...
0
votes
0answers
45 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?
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 ...
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: {...
19
votes
2answers
9k views

Fill a contour-plot

I did some calculations in Mathematica that gave me a contour plot: To include the output I wanted to however draw it with pfgplot. But there I don't get it to work, first of all the y-axis doesn't ...
6
votes
4answers
277 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)}...
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
124 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 ...
0
votes
2answers
147 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 ...
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{...
2
votes
2answers
263 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} \...
5
votes
1answer
81 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 ...
8
votes
2answers
10k views

Using gnuplot in tikzpicture environment using pgf-package

I´m trying to use gnuplot in the tikzpicture environment with the pgf package. Example \documentclass[paper=a4,12pt,version=last]{scrartcl} \usepackage[miktex]{gnuplottex} \usepackage{pgfplots} \...
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} \...
96
votes
9answers
80k views

How to draw Venn diagrams (especially: complements) in LaTeX

What I am up to is to write some exercises dealing with logical formulas for my students, like: And the students should draw these formulas on Venn diagrams. At the end of the lesson, I really would ...
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
475 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} \...
11
votes
1answer
18k views

Creating colorful plot using latex terminal of gnuplot?

Most output terminals of gnuplot draw different lines in a plot in different colors. I'm trying to create a plot inside my PDF document using gnuplot's LaTeX terminal and the lines are only ...
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
140 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
165 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 ...
3
votes
1answer
202 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,...
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
149 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 ...
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 ...
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
74 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
263 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} \...
0
votes
1answer
184 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 ...
13
votes
1answer
729 views

Using pgfplots and gnuplot and compiling with output-directory

I would like to use the pgfplots package along with gnuplot. However, I cannot get this to work if I compile using the -output-directory option. For example, if I have the following MWE: \...
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} ...
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 ...