Questions tagged [plot]
{plot} is for questions concerned with plotting data or functions using TeX. For questions specific to the pgfplots package, use the {pgfplots} tag.
1,219 questions
4
votes
1
answer
49
views
Use "plot" inside a \draw path in tikz
Is there a way to continue a path we draw using \draw with a plot, just as we do for instance also with arc or similar commands?
In the example below I have a straight line, but I'd like the plot to ...
4
votes
3
answers
238
views
Arrow tips look wrong at the end of a plot
I have a weird problem with arrow heads at the end of plots, where they look wrong, as you can see in the picture (look below left; the line seems to exceed the arrow tip). Removing colour or changing ...
11
votes
4
answers
586
views
How to plot y = x^{2/3} + 0.8 cos(kx) √(3-x²) in LaTeX TikZ
I would like to plot the following function in LaTeX using TikZ or pgfplots:
\[ y = x^{2/3} + 0.8 \cdot \cos(kx) \cdot \sqrt{3 - x^2} \]
The domain is \( - \sqrt{3} \leq x \leq \sqrt{3} \).
I need to ...
0
votes
0
answers
49
views
How to plot multiple plot lines reading info from a file?
The mwe file is: notas-ByRow-tab.txt
Nome Exam01 Exam02 Exam03
Lía 8.45 9.75 10
Noa 9.85 10 9.25
Rocío 10 9.15 9.05
Laya 3.50 4.25 2.95
Lisa 5.75 4.00 7.25
...
12
votes
5
answers
308
views
How to colorized any line drawed with draw (nor with plot expression)?
How to colorized any line drawed with draw (nor with plot expression)?
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
...
4
votes
1
answer
100
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 ...
2
votes
1
answer
160
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{...
0
votes
0
answers
86
views
How do I prevent "see-through" when overlaying a surf plot with a point cloud?
I am trying to create a surf plot with an additional point cloud on top. The data for both is saved in two different tables, which are then read and plottet into the same axis environment. Currently I ...
4
votes
1
answer
46
views
How to adjust xmin and xmax of a short-time dateplot?
\documentclass{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{dateplot, statistics}
\pgfplotsset{compat=1.12}
\usepackage{filecontents}
\begin{filecontents*}{data.txt}
date, value
2015-09-14 ...
2
votes
2
answers
157
views
TikZ plot with `let` and `domain=\x1:\y1` for a curve
I'm trying to draw a parabola ( y = t^2 ) in TikZ using the let operation to extract coordinates from a point (B) and use them to define the domain for a plot. However, the following code does not ...
4
votes
2
answers
188
views
pgfplots: yticklabel positioning in partial polar plot
I'm drawing polar plots covering only half of the full 360° (the right half of the circle) using pgfplots, and I can't figure out how to shift yticklabels to the top part of the plot (+90° in the plot ...
2
votes
1
answer
97
views
Clip bars for big values in bar chart
I would like to display my bars fully in the range of 0-80. Above that I want to clip the bars and display the real value above. It should be displayed that it is easy to understand.
It should look ...
0
votes
1
answer
76
views
pgfplot only remove x ticks on top
I have a graph, where I only want to remove the X ticks on top of the graph (on the y line at 80)
Is this possible?
Additionally, how can I get rid of the warning: Overfull \hbox (28.8156pt too wide) ...
1
vote
1
answer
97
views
Programmatically draw 3D barplot using addplot3D
I was trying to understand how the programming tools work on Latex in the tikzpicture environment. Can someone explain me how to reduce this big code to a cleaner version that can be write with a ...
4
votes
2
answers
137
views
Conditional statement in TikZ depending on external variable
Imagine you have a tikz figure defined in myfig.tex :
\begin{figure}
%conditional statement (mychoice==1)...
\draw[blue,thick] (0,0) -- (1,0);
%conditional statement (mychoice==2)...
\draw[red,thick] (...