{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.

learn more… | top users | synonyms

4
votes
2answers
46 views

Plotting a recursive defined set of functions with conditional base function

I'm trying to visualize the construction of B-Spline functions by showing step by step how the curve is created. This involves painting curves similar to these: The function that creates the curve, ...
0
votes
0answers
22 views

Adding nodes near coordinates to bar plot but from different series

I would like to annotate a bar plot with some markers or numbers to indicate the significance of some results. The significance is given in a different column from the main value. Just to give an ...
0
votes
0answers
13 views

Problem with transparency in plotting shapes

I am trying to plot shapes with transparency inside a baposter environment, however it does not plot with the transparency. To test this file you will need to also add the baposter class found here - ...
3
votes
1answer
30 views

Assigning xlabels to symbolic x coords

I am using the below code to generate the shown bar graph. However, I cant find anything with which I can label each of the individual bars for both sets of my data. i.e say the bar marked 0.67 I want ...
3
votes
2answers
47 views

Operation mode in pgfplots (referencing from externalized graphics)

I am using the externalize feature of tikz/pgf to save space for my thesis. I am using TeXShop on a Mac. I am running into trouble referencing something in the main document from the externalized ...
1
vote
0answers
135 views

Bar graphs with tikz scientific axes=clean

I really like theaxis generated by tikz datavisualization with scientific axes=clean. However I can not find a bar graph visualizer in the documentation. Does such a visualizer exist? Or (even better) ...
4
votes
1answer
511 views

What is wrong with this bar graph?

I try to create a bar graph based on an example I found. I do some modification to origin, but it doesn't work. \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \begin{document} ...
3
votes
0answers
24 views

pgfplots - fill between changes with plot width

I'm plotting some distribution functions for my students, and I am shading regions of the plots. If I reduce the plot width to 0.35\textwidth or less, the shading disappears. How do I ensure that it ...
2
votes
0answers
21 views

PgfPlots - Problem in axis [duplicate]

Anyone know how to edit the y tick? I want it in decimal form but the output gives tick in scientific notation. Thanks. \documentclass[margin=5mm]{standalone} \usepackage{tikz} ...
3
votes
1answer
72 views

Pgfplot how to make scientific number format with “e” exponent style

The normal scientific coordinate is something like 10^2, how do I change it to 1e+2 style ? For example: \documentclass[border=4mm]{standalone} \usepackage{pgfplots} \begin{document} ...
4
votes
1answer
63 views

How to remove labels at the ends of the axes?

How to remove labels -1,4 on x axis ? How to remove labels -4,4 on y axis ? \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{pgfplots} ...
1
vote
0answers
30 views

PGFPlots PDF printing issue (Adobe Reader DC)

Here is my source code: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{mathtools} \usepackage{mathpazo} ...
0
votes
0answers
25 views

Using a blank row to create multiple plots

I have a csv file with 300~ rows of x and y data formatted with the intent to use a blank row as a reference for separation, but I'm unsure as to how to code it in LaTeX. For example 0 1 1 2 2 3 3 4 ...
3
votes
1answer
276 views

Setting ytick at defined positions within colorbar using TikZ/PGFPlots, no axis

Yesterday I posted my first question (Problems to set ytick within colorbar using TikZ/PGFPlots, no axis) and I got really fantastic answers. Now it works as I wanted it to be. But I have still a ...
0
votes
1answer
23 views

Package tikz Error: Giving up on this path. Did you forget a semicolon?. \end{axis}

\begin{tikzpicture} \begin{axis}[% axis equal, width=8in, height=8in, ...
1
vote
0answers
61 views

How to explain the intuition of distributional moments using a figure [on hold]

I want to create figures to explain the meaning of the (first four) moments of a distribution (with this I mean: Mean, Variance, Skewness, Kurtosis). The goal is to use this in teaching stats. I am ...
1
vote
1answer
42 views

Adding Semi-transparent Background Image to Tikz Axis

I have a bunch of figures that contain line plots to which I would like to add a background image showing the geometry compared to the data. What I would like to know is: How can I add a ...
1
vote
1answer
24 views

bar graph not showing the first bar with pgfplot

I have the following table in a .txt file Group Real Imag Cable VSC P-mode VSC Vdc-mode A -1.2739095e+02 -3.3612954e+02 4.9822998e-01 4.9309456e-01 8.6754595e-03 B ...
4
votes
1answer
27 views

PGFplots: decorating plot but not legend

Using PGFplots, I would like to apply a decoration to a plot but not to the corresponding legend entry. Is there a way to do this? Here is an example: I'd like the legend image to be just the line, ...
78
votes
4answers
35k views

How to expand TeX's “main memory size”? (pgfplots memory overload)

I'm compiling one pretty simple LaTeX file with few dozen of pgfplots. Now, I can compile part by part, but am unable to compile it all at once. I really need good precision for all those plots (noise ...
1
vote
1answer
35 views

How to draw (major) grid lines only at specified positions?

How to draw (major) grid lines only at specified positions, such as x=0, x=2 in the following MWE@ShareLaTeX (readonly now)? \documentclass{standalone} \usepackage{pgfplots} ...
4
votes
1answer
344 views

pgfplots: Plot only parts of table and in “random” order

I have been lurking around stackexchange for a long time and so far been able to find solutions for my newbie problems but now I'm really stuck! My problem is probably not that complicated, yet a bit ...
3
votes
1answer
238 views

How to pass a function defined in sagetex to pgfplots

Is there any way to pass a function defined in sagtex to pgfplots for plotting? See the following example. \documentclass{article} \usepackage{pgfplots} \usepackage{sagetex} \begin{document} ...
2
votes
0answers
72 views

Dimension too large with a small set of data [closed]

I'm trying to compile a simple tikz plot with floating point numbers, but I'm gettin a Dimension too large error. The tikz file works with a different data set, so I guess the problem has something to ...
0
votes
0answers
23 views

tikzscale with tikz-external: Recreating plot

I am creating pgfplots in the tikzpicture-environment together with the external library. To ensure the width of the plot, I wanted to use tikzscale. Originally, I was using the beamer-class with a ...
1
vote
2answers
53 views

Shade region where two Gaussians overlap

I'm trying to shade the region where the two Gaussians overlap. My code is as follows (altered from Christian's answer here: How can I hatch the areas delimited by two intersecting Gaussian ...
2
votes
2answers
44 views

scatterplot exceeds memory capacity

I am trying to do an overlay of a scatterplot and a barplot. When I try to execute my code, I get, TeX capacity exceeded, sorry [main memory size=3000000]. \pgfplotsapplistXXpushback@smallbufoverfl ...
3
votes
1answer
102 views

Periodic coloring of boxed plane partions

I am using the code below, which creates different coloured layers. Having trouble to get a decoration in making it work simultaneously for each layer in the three axes. Kindly some help here. I am ...
0
votes
1answer
50 views

How I can create a water triple jump graphic - pgfplot?

How can I create a water triple jump graphic like the one in the picture \documentclass[border=3mm]{standalone} \usepackage{pgfplots} \usetikzlibrary{intersections} \begin{document} ...
3
votes
1answer
40 views

pgfplots - insufficient precision

I am having the following problem: Using pgfplots to plot some convergence graphs, I have to load a text file and do some computations. Most of the time everythings works just fine. But in some ...
2
votes
1answer
27 views

Use single plot marker in manual “group” legend entries

I have an axis which contains several plots. These plots can be divided into two groups, of which each has a common plot marker. The plots are styled using a combined cycle list. I would then like ...
1
vote
0answers
50 views

Plot data file using pgfplots

I have a very large data file (.txt) organized as the following example: 0 1 1 . . 1 1 1 . . 2 1 1 . . . . . . . I classically plotted a complex function ...
0
votes
1answer
28 views

pgfplots: percentage in matrix plot

I'm trying to draw a matrix plot with the shown values in percentage. I already tried: nodes near coords = {\pgfmathprintnumber\pgfplotspointmeta\%} Unfortunately this didn't work out. Here is my ...
2
votes
1answer
25 views

Change color in addplot in for loop of pgfplots

I am looping over several files and plotting the content on an axis in pgfplots. I would like to plot each entry as a different color (a shade of blue, for example). While the plotting works fine, I'm ...
2
votes
0answers
54 views

pgfplot draw background color as a polar function

I want to illustrate the path of a light beam refracted in the athmosphere. Using Matlab, i have calculated some numerical solutions to my differential equation. These solutions are in polar ...
5
votes
2answers
313 views

pgfplot legend on top of grid but below graphs in axis as well as groupplot

Is there a way to specify the order of layers of elements in a pgfplots-axis? In my certain case I'd like to have the legend on top of the grid, but below the actual graphs: I know for this ...
2
votes
1answer
35 views

\addplot doesn't work outside of tikzpicture or axis environment

I wrote this code: \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{axis} \draw[->,thick] (-0.5,0) -- ++(11,0) node[below left]{$t$}; ...
1
vote
0answers
31 views

Error when using eps2pgf [closed]

I am trying to convert an eps file to pgf code, using the Java command line tool Eps2pgf. I have an eps file called cuspsurface, which is saved in the same folder as Eps2pgf. When I enter the line ...
2
votes
1answer
62 views

How I can change values on the Y-axis

\documentclass{article} \usepackage[sc]{mathpazo} \usepackage{pgfplots,amsmath} \usepackage{tikz} \usepackage{tkz-fct,tkz-base} \usepackage{tkz-tab,tkz-euclide} \usepackage[miktex]{gnuplottex} ...
2
votes
1answer
59 views

Multiple graphs in tikzpicture

I am trying to draw the picture below. The four graphs are each a density probability function; the distribution in case 1 and case 2 is unimodal, in case 3 it's normal, and in case 4 it's bimodal. ...
21
votes
4answers
18k views

specify the step of pgfplots axis

Now the numbers on the x-axis are 0, 0.5, 1, 1.5, 2 I want to show integer only: 0, 1, 2 How can I do that? My code: \begin{tikzpicture} \begin{axis}[ xlabel=threads, ...
1
vote
1answer
33 views

boundary for x axis for plot in tikz

I have a problem with my plot, I want to have a boundary at x=4000 and don't know how to do. My current plot is the one below and here is the code that I have now \makeatletter ...
6
votes
1answer
108 views

Is there a TikZ and PGFplot HTML manual online?

This builds up on the question TikZ manual newest version online?: I know where to find the latest version of the TikZ (or PGFplots, or ...) manual online, in PDF form. But sometime, answering to a ...
4
votes
1answer
38 views

pgfplotstableread{mydata.csv} VS table {mydata.csv} efficiency and capability for csv files pgfplots

I am trying to plot a very large .csv file with multiple columns using pgfplots. I want to use the first column for all my plots. My usual routine is to do something like: \addplot [solid] table ...
1
vote
1answer
44 views

Customizing torus diagram in pgfplots

I'm trying to produce a nice torus diagram to illustrate its parametrization. I have this: but would like to have this: There's a list of things I can't figure out how to do: Move axis labels ...
2
votes
0answers
59 views

PGFplots, polar plot, extrema of values and fill segmented area

i have some testdata and want to create a polar plot, divided into some segments (21-24, 31-35, 41-42, ...). From the testdata i greate about 50 graphs (Var 1 ... Var x). Up to this everything works ...
0
votes
1answer
41 views

Draw pgfplot markers whose origin is outside the xmin-xmax,ymin-ymax range?

As a followup of this question, i am coping with drawing certain markers. And the solution by John Kormylo works fine for the presented MWE in that question. Here, I would like to extend the plot by ...
2
votes
0answers
36 views

Add regression line to data from file [duplicate]

I would like to display a regression line, as well as a legend for it, reading the raw data from an external file. My code is: \documentclass{report} \usepackage{pgfplots, pgfplotstable} ...
0
votes
0answers
28 views

Lines to zero PGFplot diagram [duplicate]

I want to create a PGFplot wich looks like this one that describes vertical forces. Waht I´m searching for at mot is the vertical lines between zero and the plot line. How can I create those?
2
votes
0answers
54 views

Arrows with charts, labels, tkiz and pgf

I would like to draw an arrow from the K in the first chart to the E in the x-label of the second chart. Normal arrows are working but nodes in the axis labels don't seem to work. Do you have any ...