Questions tagged [pgfplots]
{pgfplots} is a package for creating 2D and 3D plots of mathematical functions and numerical data, using the PGF graphics framework. For questions about the inbuilt plotting functionality of TikZ/PGF, use {tikz-pgf} instead.
10,150 questions
2
votes
1
answer
34
views
Using radians in polaraxis environment (PGFplots)
I've been trying to graph some polar functions using PGFplots and I've been refrencing this section of the manual: https://tikz.dev/pgfplots/libs-polar where in 5.10.2 it says that I should be using ...
4
votes
1
answer
69
views
Fill plot area with rainbow colors
I would like to fill the plot area with the rainbow colors. The wavelength of the colors corresponds to the wavelength of the x-axis.
I have the MWE example below. It works fine uless for the line \...
3
votes
4
answers
102
views
decoration.markings arrowheads breaking, Dimension too large error on parametric plot
I am trying to graph a parametric equation but I'm getting a "dimension too large error" upon output. The arrowheads on the lefthand side of the graph seem not to be working as well. Any ...
3
votes
1
answer
84
views
How to fill between decoratedpath to draw a rope in physics? I don't want those gray areas to be seen
\documentclass[12pt,a4paper,twoside]{report} \usepackage[english,greek]{babel} \usepackage[iso-8859-7]{inputenc} \usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsxtra}
\...
2
votes
1
answer
35
views
Why is this legend incorrectly showing a marker which is disabled for this plot?
I have this simple plot, but the legend incorrectly shows the marker which I disabled with mark=none, why is that and how can I prevent it to be shown in the legend?
\documentclass{standalone}
\...
2
votes
1
answer
51
views
Compilation problem with Symbolic Coordinates
This very simple code doesn't work, but I don't know what needs fixing.
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{patterns}
\begin{document}
\begin{...
1
vote
1
answer
83
views
Can someone please explain why I am getting these errors and how to fix them? (Scatterplots and captions) [closed]
Could someone please help me explain why am I getting the following errors in my .tex file, and also how to fix it?
I am trying to construct a scatterplot using Tikz.
I am getting 5 errors in total:
...
4
votes
1
answer
86
views
How to improve graphs of functions of two variables with jagged edges in pgfplots?
In the spirit of creating "beautiful plots" of functions of two variables, I am reaching out to this community to try and find possible improvements in the way I have been using pgfplots and ...
4
votes
1
answer
64
views
Drawing behind gridlines in Rotated pgfplot - "set layers" seems to have side-effects
I'm trying to create a figure with a filled area behind the gridlines for use on a rotated page. I don't want to use axis on top because I have nodes which need to be drawn on top of the gridlines. I'...
3
votes
2
answers
70
views
shift x,y axis labels in pgfplot
I have the following:
\documentclass[tikz,border=5pt]{standalone}
% --- Packages ---
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage{siunitx}
\usepackage{xcolor}
% --- Eigen conventies -...
4
votes
2
answers
174
views
Curves filled in in 3D plot
I am trying to plot the surface $z=x^2-y^2$ with the two curves $(t,0,t^2)$ and $(0,t,-t^2)$, but the curves keep getting filled in, and I can't seem to make it so they appear just as curves in the ...
7
votes
2
answers
256
views
How to create Tikz figure with surface and its shadow, as shown in image
I wish to make this figure with Tikz. I have tried but I can't make as in figure. Can you please assist me?
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,...
16
votes
3
answers
410
views
Custom 3D line plot in plain tikz and/or luadraw
Disclaimer
This question is a bit of "do it for me" but there is a histrory behind it, see this question.
User Jasper offered me a solution without using pgfplots.
I plan to add a bounty as ...
5
votes
1
answer
128
views
pgfplots: 3D Line Plot with Multiple x Axes
Happy Xmas all together.
This question is about pgfplots, specifically about plotting line plots ins 3D.
Ideally, I woudl have three x axes labelled x_1, x_2 and x_3, one y axis and one z axis (called ...
2
votes
1
answer
155
views
How can I code confidence intervals (linear regression) from Jamovi into latex
That is my plot from jamovi:
and here it is in LaTeX:
I want to add those confidence intervals to LaTeX. How do I do it?
Here is code:
\begin{figure}[H]
\noindent {\textbf{Rysunek 6} \\
\textit{...