Skip to main content

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.

Filter by
Sorted by
Tagged with
3 votes
2 answers
88 views

I'm trying to build a figure on beamer that has a single point on it. I've tried what I'd usually have done in other settings (article, book), but I'm still getting an error. In particular, I get ! ...
Patricio's user avatar
  • 623
3 votes
3 answers
142 views

Is there a better method to have the x=0 and y=0 axes thicker? I made a basic approach by adding lines, but is there a better method? \documentclass{book} \usepackage{pgfplots} \pgfplotsset{compat=1....
mf67's user avatar
  • 878
6 votes
1 answer
164 views

I'm using the following code to produce a plot: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ width = 15cm, ...
Dominique's user avatar
  • 1,593
7 votes
3 answers
253 views

Can someone please help with coding the surface plot for $\sqrt{(x - 1)^2 + y^2} + \sqrt{(x + 1)^2 + y^2} - 4 = -|z|$ in TikZ for my article in LateX? I have been trying, but can't seem to manage it. ...
Mark Roelands's user avatar
6 votes
1 answer
114 views

This MWE gives an error that disappears if line #3 or line #4 are commented. I would say that this has probably something to do with active characters, but I am not able to understand what goes wrong ...
Bibi's user avatar
  • 1,650
6 votes
3 answers
131 views

This is my first post so the graph may not appear and/or the format may look weird. Apologies if that is so. The graph is produced when the line \addplot[red, thick] {myexp(x,4)}; is commented out ...
Francis Cook's user avatar
3 votes
1 answer
73 views

I'm trying to make a log-log graph. Semi-log graphs and linear graphs work just fine, but for some reason when I try to make a log-log graph PGFPlots doesn't draw the horiziontal axis or the curve. ...
Rain's user avatar
  • 226
3 votes
1 answer
91 views

The objective is to have arrows along a path for every 1-unit step we take horizontally or vertically. The arrows would be aligned midway between major grid tick marks, e.g. midway along (0,0)--(0,1). ...
PatrickT's user avatar
  • 3,503
3 votes
0 answers
45 views

I want to make a quasi-3D figure from three variables. They pair-wise form a two-dimensional figure. I want to emphasize that the green plot is in the green plane, etc. I have two issues 1./ The red ...
katang's user avatar
  • 1,595
5 votes
3 answers
206 views

Several years ago, I created a GeoGebra script to plot any real sequence of real variables. As you can see from the screenshot, there is a command on the left: Sequence({(n, 1/n)}, n, 1, M) which ...
Sebastiano's user avatar
  • 67.1k
13 votes
5 answers
340 views

I'm trying to plot an illustration of the fixed point method in which a function is evaluated repeatedly in a loop. The result should be a staircase or spiral plot on top of the plot of the function ...
Dominique's user avatar
  • 1,593
3 votes
2 answers
110 views

I'm trying to draw 10 functions of ten different colors (actually starting from red and ending with yellow) inside a tikzpicture environment. Problem is that the code reads only the first color (red) ...
Liam Seddio's user avatar
4 votes
2 answers
155 views

As I was intent on moving function declarations further up, so as to use them in multiple files, I noticed something unexpected. The first code plots a thin black line. The second code plots thick ...
PatrickT's user avatar
  • 3,503
3 votes
1 answer
96 views

The objective is to draw arrows that show convergence to a particular coordinate. The code below has served me well in simple cases. But attempting to use coordinates calculated with the intersections ...
PatrickT's user avatar
  • 3,503
5 votes
1 answer
137 views

Using tikz and PGFPlots, I am creating a patch plot from data table with the line patch type. I would like to decorate the end of each line with an arrow. What is the best way to do this? Below is a ...
trumpeter201's user avatar

15 30 50 per page
1
2 3 4 5
676