{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

2
votes
1answer
24 views

pgfplots: coordinates from macros that change

I do realize that pgfplots needs to do its thing at \end{axis} apply scaling etc. But is there a manner where one can make this work as intended? In the MWE I define a coordinate from a macro (my ...
6
votes
1answer
50 views

PGFPlots axis label not moving

Could some body please explain why I can't move the y axis label to the end of the axis like the x. Using the following I get the below. \documentclass[a4paper]{article} \usepackage{pgfplots} \begin{...
4
votes
0answers
526 views

Generating Gantt Charts for process scheduling

I am trying to create a gantt chart for my thesis on blocking analysis. I know of the pgfgantt package for generating gantt charts. But this package generates charts for normal schedules, what I need ...
1
vote
0answers
42 views

PGPlots xtick label from a table

I am trying to load data from a table which looks like below and use the 'label' column for xticklabels. idx,label,value 1,20040101_20050108.rotation.summary, 19.470949839091155 2,20040101_20050115....
4
votes
1answer
60 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 ...
4
votes
2answers
65 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, ...
1
vote
0answers
38 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
52 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
78 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
145 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
552 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} \begin{...
3
votes
0answers
42 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
24 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
107 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} \begin{...
4
votes
1answer
84 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} \...
2
votes
0answers
44 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
30 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
314 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
54 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, axis lines = ...
1
vote
1answer
64 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 semi-...
1
vote
1answer
40 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 -3....
4
votes
1answer
39 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, ...
1
vote
1answer
51 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} \pgfplotsset{width=7cm,...
3
votes
1answer
245 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
73 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 ...
1
vote
0answers
31 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
64 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
53 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 ......
0
votes
1answer
57 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} \begin{...
3
votes
1answer
55 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
43 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
61 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 f(Y,\thisrowno(0),\thisrowno(1),\...
0
votes
1answer
58 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
51 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
366 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
43 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
34 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
66 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
78 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. ...
23
votes
4answers
20k 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, ylabel=...
1
vote
1answer
38 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 \newcommand{\...
6
votes
1answer
121 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
53 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 [x=A,...
1
vote
1answer
66 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
69 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 ...
2
votes
0answers
37 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} \begin{...
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
60 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 ...
2
votes
1answer
80 views

pgfplots boxplot first column as draw position

I have data like this in a file. 1 0.1 0.2 0.3 0.8 ... 5 0.3 0.5 0.6 0.9 ... 10 0.2 0.3 0.7 0.10 .. ... How do I tell boxplot to use the first column as draw position and compute the box for the ...