{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
0answers
109 views

Add fitting line to histogram plot created by pgfplots [duplicate]

I have created a histogram plot with pgfplots as following \begin{tikzpicture} \begin{axis}[small,ymin=0,title=\texttt{hist}] \addplot [ hist, fill=orange!75, draw=orange!50!black] table [y ...
4
votes
0answers
70 views

Grouped overlay bar chart in LaTeX? [duplicate]

I have been trying to create a grouped overlay bar chart in latex using pgfplots, much like this one (not actually mine, found randomly on Google): What I'm trying to achieve is not a stacked bar ...
4
votes
0answers
660 views

using gnuplot to plot data from a file

I am trying to plot some data using pgfplots, but the data are so extensive that the maximum capacity is reached. I get the error: TeX capacity exceeded, sorry [main memory size=3000000]. What can I ...
4
votes
0answers
56 views

Using PGFPlots to plot macro result [duplicate]

I've got a few macros that perform floating point lookups and calculations for me and I'm interesting in plotting their results. They're the kind of calculation which requires if/else, so they can't ...
4
votes
0answers
586 views

Decorating a PGFPlots bar graph with Tikz decorations

Update :- This appears to be a problem in which nodes near coords are handled by PGFPlots and incompatibility with Tikz decorations and fading library. I simply commented the nodes near coords line ...
4
votes
1answer
507 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 ...
4
votes
0answers
542 views

Multiple ternary plots and pie charts in pgfplots

I'm trying to plot lots of ternary plots and pie charts. Ideally it should look smth like this: The pie-chart (ternary plot) on the left-hand side serves as an explanation of what is happening, ...
4
votes
0answers
409 views

Normal probability plot with percentile grid and axis [closed]

How can I make a normal probability plot with a percentile grid and y-axis as shown in figure? I've read the pgfplots documentation but i can't find anything useful.
4
votes
0answers
136 views

Pgfplots fails to generate boxplots for some data set [closed]

I use pgfplots to generate boxplots, however with some small data sets as the following, I get an error message. speed 2 3 1 2 2 11 Here is the error message : Sorry, an ...
4
votes
0answers
307 views

Problems with pgfplots, loops inside tikzpicture and reading from files

I was trying to implement this method (How to import ASCII coordinates to TikZ) to import coordinates and draw them, but I am having this problem Undefined control sequence \end{tikzpicture} Extra }, ...
4
votes
0answers
295 views

How to draw this 3D H-layout recursive tree with Tikz? [closed]

Background: This is an extension problem from my last post How to draw the recursive H-Layout tree using Tikz?. The (2D) H-layout tree is actually from the VLSI layout problem in computer science. I ...
4
votes
1answer
347 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 ...
4
votes
0answers
136 views

Nested symbolic x coords in bar chart [closed]

any ideas on how to create something like this in latex? the image is of a basic grouped plot (using pgfplots) but with a nested x axis group (the numbers in red) that I've added using an image ...
4
votes
0answers
330 views

Convolve two 2D Gaussians using tikzfading - intensity issues

I would like to visualize the convolution of two 2D Gaussians (or something looking similar). To do this, I declare them in a tikzfadingfrompicture environment. However, to get the desired result and ...
4
votes
0answers
78 views

question on pgfplots and pos= [duplicate]

In pgfplots, pos=a , with a between 0 and 1, refers to the relative x coordinate on a plot. I was wondering if there is an equivalent construct that accept the absolute x coordinate rather than the ...
4
votes
0answers
121 views

Axis labels according to DIN461 [closed]

DIN461 requires to put the unit of the axis between the last two ticks of an axis, see http://de.wikipedia.org/wiki/DIN_461 (sorry only in german, but the lower two images make it clear, I think) Is ...
4
votes
0answers
427 views

Creating plots in Latex - easy to learn? [closed]

I am currently working on my summer project for which I created the following plot with Mathematica: Now I am not 100% satisfied with the results and one of my professors recommended PGF and TikZ. ...
4
votes
0answers
300 views

pgfplots: percentages and endvalues in stacked ybar

I have two questions regarding the pgfplots package. I have attached the source code I worked on. There are two features I am not able to realize: I would like to put the total value (sum of the ...
4
votes
0answers
456 views

Using `external` selective for TikZ-pictures [closed]

For the following example: \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calc,external} \usepackage{pgfplots} \tikzexternalize \begin{document} ...
4
votes
0answers
52 views

pgfplots: How to move bar labels [duplicate]

2 questions: 1) How do I move my data labels to the center of my bars? 2) How do I make the labels be purely data labels, and not cumulative values? eg I want the red bar labels to be the value of ...
4
votes
0answers
62 views

Decimal number in axis tick using: “x tick=data” [duplicate]

I have found the following problem during the building of an histogram: \documentclass[a4paper,11pt]{article} \usepackage{pgfplots} \pgfplotsset{/pgf/number format/use comma,compat=newest} ...
4
votes
1answer
641 views

Grid lines in top-view surface plot

I'm almost satisfied with my graphs, only grid lines are missing. What I'm basically doing is a sort of density plot / color plot by letting pgfplots generate a surface and viewing it from the top: ...
4
votes
0answers
928 views

Matlab2tikz adds extra legend entries [closed]

The legend from a boxplot figure is not being created properly. I get this: Instead of thiS: But really only need 2 legend entries. Any Ideas why all the objects in this plot are being given ...
4
votes
0answers
847 views

How to correctly set a colorbar for an external graphic? [closed]

I created a pdf file from a Matlab imagesc plot. I have remove the colorbar and axis and now I want to have this image in my tex document. I manged to get the axes almost as I want them, but the ...
4
votes
0answers
115 views

Time plot with pgfplots [duplicate]

I tried to plot this type of data x y 00:00 99.42 00:15 99.44 00:30 99.41 00:45 99.37 01:00 99.00 01:15 99.29 01:30 99.51 01:45 99.58 02:00 99.49 02:15 99.50 ...
4
votes
0answers
430 views

Create bar graph wider [closed]

I created a bar graph using pgfplot and option ybar. I would get a graph wider. I used width option \documentclass[12pt,a4paper,twoside,openright]{book} \usepackage{tikz} ...
4
votes
0answers
80 views

LaTex Pgfplots Two axes 1 legend [duplicate]

Possible Duplicate: Using a pgfplots-style legend in a plain-old tikzpicture I'm trying to accomplish this: I have a plot with two y-axes. The first y has two plots, the second has one. I ...
4
votes
0answers
2k views

Set ticks precision with pgfplotsset [closed]

First, this forum has been a great resource for me for some time now. I recently started using pgfplots and tikz, so some things I still need to figure out. I hope my question will be clear and the ...
4
votes
0answers
30 views

Mask Scaling Factor from axis [duplicate]

Possible Duplicate: How do you remove the axis multiplier? I'd like to mask the scaling factor from my plot: Here's an image I marked it with two red circles. How can I do this? ...
4
votes
0answers
418 views

Artefacts in 3D-Plots when z-values exceed z-axis limits? [closed]

When plotting an expression using pgfplots, there are strange artefacts in places where the z-values are too big for the current axis. How do I fix it? Is there an equivalent to y domain for the ...
4
votes
0answers
1k views

How can I export pdf files with tikz/pgfplots? [closed]

I am writing a long thesis and would like to source out some graphics, so that I do not have to in every run I am compiling the tex file. Here is a simple example: \documentclass[a4paper]{scrreprt} ...
4
votes
0answers
2k views

Problems by enlarging tex memory [closed]

I have a problem with the tex memory while using pgfplots and a very huge dataset in Ubuntu. Under Windows with MikTeX I have the following settings and the texfile compile without any problems: ...
3
votes
2answers
288 views

Make curves appear one by one in one plot in a beamer presentation

I want to put one figure with multiple curves in my beamer presentation, but I want to put a pause between the curves. It means that the curves appear in the plot one by one. The \pause option does ...
3
votes
3answers
779 views

Tikzpicture: Step function (most minimalistic!)

I found nice example of step functions, e.g. probability-density-function-of-uniform-distribution and drawing-cumulative-distribution-function-for-a-discrete-variable. But they use extensive ...
3
votes
4answers
1k views

Plotting several functions with TikZ/pgf

How do I plot several functions in Latex with tikz? I want it to look something like this: With the this code: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} % GNUPLOT ...
3
votes
2answers
755 views

Origin shift in pgfplots

I want to shift the origin in such a way as the following code will cause the circle to appear with center at the point marked in red. \documentclass{article} \usepackage{amsmath} ...
3
votes
1answer
2k views

PGFPlots: Axis dashed

How to configure axis dashed on PGFPlots? \begin{axis}[grid=major] %need grid=dashed \end{axis}
3
votes
2answers
1k views

tikz plots alignment

I'm trying to produce a figure using \begin{figure} \centering \makebox[\columnwidth]{\input{try1.tikz}} \makebox[\columnwidth]{\input{try2.tikz}} \end{figure} The files try1.tikz and try2.tikz ...
3
votes
1answer
179 views

Displaying a pgfplots graph above another pgfplots graph in TikZ

I have two graphical solutions to an inequality (and an algebraic solution to it). One solution is to be displayed on the number line, and the other solution is to be displayed on the Cartesian ...
3
votes
1answer
263 views

Showing the area between two curves using rectangles (Riemann Sum)

I've been looking for a solution to draw the area between two curves using infinitesimal rectangles, like the image below: It would be great also to use only one rectangle to show the difference ...
3
votes
2answers
178 views

pgfplots combining expression with marks at fixed x coordinates

I would like pgfplots to draw an expression together with marks at pre-specified coordinates and/or fixed intervals. For instance, to plot the function 1/x as a line together with marks at discrete ...
3
votes
2answers
59 views

PGF-Plot not at centre

I would like to plot some circles with pgfplots inside a diagram, however, they are always off-centered. \pgfplotsset{width=7cm, compat=1.12} \pgfplotsset{compat=1.5.1} \begin{tikzpicture} ...
3
votes
2answers
295 views

How to cut the upper part of the plot?

\begin{tikzpicture} \draw[->] (-1,0) -- (5,0) node[right] {$x$}; \draw[->] (0,-1) -- (0,8) node[left] {$y$}; \foreach \a in {0,...,5} \draw[scale=1,domain=1:3,smooth,variable=\x,purple] ...
3
votes
3answers
243 views

Tikz: Drawing tangent to S-shaped (logistic) function

I want to make a similar graph as given below but without x-axis labels. This is what I got with the code given below: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} ...
3
votes
3answers
79 views

Text beneath two function graphics inside of a figure

Is there a way to put extra text under some function plots in the following code? I need them to appear side by side on the page in the same figure and I do not what to use an extra caption. The text ...
3
votes
3answers
190 views

Sizing a pgfplot so it fits in a multicol column

I'm very new to TeX but I'm trying to put together a document that has a multicol layout with a chart inline in the column. The chart always seems to overflow the width of the column and I can't ...
3
votes
1answer
820 views

Plotting f(x) = sin x and f(x) = cos x on pgf/tikz

I'm new to graphing on TikZ/pgf and have been trying to figure this out but can't seem to find any helpful info for what I want. I want to plot the above functions over one period, i.e. on the ...
3
votes
1answer
128 views

Display plot pgfplots multicolumns

I have the following data & I'm trying to display a plot similar to the screenshot items,section_1,section_2,section_3,section_4 10,82,42,38,22 20,38,24,20,63 30,44,49,39,40 40,58,48,47,47 ...
3
votes
1answer
517 views

Footnote on graph title

I'd like to add a footnote to the graph title. After adding the footnote, it disappears! Here is my MWE: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pagestyle{empty} ...
3
votes
2answers
2k views

Changing circle to “-stealth”

I took an example from pgfplots % Preamble: \pgfplotsset{width=7cm,compat=1.3} % [See the TikZ manual if you’d like to learn about nodes and pins] \begin{tikzpicture} \tikzset{ every ...