{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

1
vote
1answer
168 views

undefined references using \usepgfplotslibrary{external}

I use MikTex 2.9 on a Windows 7 64-bit machine. I do not have and will not have Admin rights on this machine. I have a lot of tikzpictures and curves in my article so I use tikz with ...
1
vote
1answer
93 views

Drawing angles using pgfplots that are identical to angles using TikZ

I am using pgfplots to draw intersecting lines. Three right triangles are made by these intersecting lines - two of them in the third. I am trying to mark the two pairs of acute angles of equal ...
1
vote
1answer
45 views

Erroneous graph, values are different but the plot is same, what to do?

Trying to plot some data from text file, the values are different but the plots overlap in the end result. The code is this: \documentclass{article} \usepackage{geometry} \usepackage{amsmath} ...
1
vote
1answer
128 views

Printing a title below the y-axis

I have a graph of two lines. Below the y-axis and centered about the y-axis, I would like to put "Graph of lines in the case $e=f=1$" in a box. "Graph of lines" above "in the case $e=f=1$." Here is ...
1
vote
1answer
138 views

pgfplots tikzpicture node to the right of axis is cut

I have a piecewise-defined function and would like a describing node to the right end of it. Unfortunately the node is cut and not visible using this code: \begin{tikzpicture} \begin{axis}[ ...
1
vote
1answer
281 views

pgfplots with gnuplot: 3d-surface/mesh plot and problems with number of samples

I want to plot a 3d-surface/mesh of a given function via 'gnuplot'. Of course the smoothness of the surface depends on the number of samples. But here I run into a small problem. Take the following ...
1
vote
1answer
95 views

Moving a tick mark on each axis but keeping the default tick marks

I would like to move one tick mark on the x-axis and one tick mark on the y-axis. The only tick mark, labeled 16,000/3\sqrt{3}, should be moved to the right side of the y-axis, and the tick mark, ...
1
vote
1answer
138 views

Side-by-side tikzpicture (use of axis causes problems)

I am struggling with putting three graphs side-by-side in one line. Every solution I could find caused errors because of the usage of axis. \begin{tikzpicture} \begin{axis}[ ...
1
vote
1answer
165 views

How can I print the axis descriptions only once in a groupplot? (background: symbolic x coords breaks “xlabels at=bottom edge” option)

I am using symbolic x coords in a groupplot. This proves problematic as I can't disable the ticks and tick labels for the upper plots without losing the xmajorgrid. I can't seem to find the ...
1
vote
1answer
122 views

Overlapping ticks and figure not centered with matlab2tikz

See the printscreen. What I want is that the figure is centered, now that is not the case with using \setlength\figurewidth{1.0\textwidth}. Besides that the ticks with negative signs on the x-axis are ...
1
vote
2answers
345 views

Matlab2tikz, alignment of subplot ylabel (large distance from plot)

Matlab2tikz came to my attention in the past month and have been using the simple tutorial from HowToTeX. It has worked great so far only one issue remains, I am unable to anchor the ylabel to the ...
1
vote
1answer
242 views

Scaling pgfplot with tikzscale

I'm using tikz and pgfplots for graphs. When using a second y-axis on the right the scaling of tikz is not proper. So I tried to use the tikzscale package and the includegraphics but it seems to scale ...
1
vote
1answer
62 views

How can I add the index of value of a table to a point on a graph?

I would like to add to each branch of my polar comb graph the index value as a label. I give you my code and a screenshot with what I would like to have: \documentclass{minimal} ...
1
vote
1answer
65 views

Problem with documentclass memoir + pgfplots from data file

I'm using the documentclass memoir and I want to make a plot from a file.dat of two rows, nothing special. But I keep getting that pgfplots could not open the file. The point is that if I make a new ...
1
vote
1answer
2k views

PGFplots - single legend in a group plot [duplicate]

I have a group plot and when I try to add a legend it repeats on all subgraphs. I want a single common legend line at the top of the whole graph. \documentclass{standalone} \usepackage{graphicx} ...
1
vote
1answer
136 views

PGFplots multiple ylabels

I want to have multiple y labels in a group plot. Now I have 4 different values for ylabels:Range1, Range2, Range3 and Range4. I want to add a common ylabel say "throughput". How do I do that? ...
1
vote
1answer
132 views

after end axis messes up pgfplots axis position

Latex and Tikz are going to get the life out of me... I saw Need to do some changes to pgfplots axis #39099, and that example was working fine for me; so I modified it a bit, and came up with the ...
1
vote
1answer
436 views

PGFPLOTS boxplot data from inline file

I have The following code: \documentclass{article} \usepackage{filecontents} \usepackage{pgfplots, pgfplotstable} \usepgfplotslibrary{statistics} \begin{document} ...
1
vote
1answer
179 views

Loop through table for boxplot prepared

I am trying to produce figure with 2 boxplot prepared plots from an inline data file. I grabbed this code from here to use as a starting point. Given that the wrapper code allows the boxplot data to ...
1
vote
1answer
421 views

String column tick labels and plotting selected samples on y axis with groupplots?

I have seen other relate questions (like Basic bar chart with text as x axis labels), but still cannot figure out where the problem is in my example. The MWE below contains a snippet of a .csv table ...
1
vote
1answer
188 views

Can I make an xbar plot based on an external file?

I'd like to use the, imho, most common value alignment of x- and y-values in an external file and then produce an xbar with it. It shall look like the examples here (the better example because there ...
1
vote
1answer
864 views

Plotting Multiple Time Series plots in LaTeX using PGFplots and txt files - Relativity Issues

I have a problem with plotting multiple time series plots in a single graph in Latex. Background: I have three products - Potatoes, Apples, and Oranges. Each products' historical price and ...
1
vote
1answer
155 views

How can I resolve the side effects of AddEverypageHook to external pgfplots?

I have quite a huge document with many pgfplots, which I would like to externalize. Well I can externalize them, but my \AddEverypageHook command from the everypage package affects this externalized ...
1
vote
1answer
338 views

rectangle in 3d plane

I am trying to plot a 3d axis with a rectangle perpendicular to the x-plane using the following code: \documentclass[tikz]{standalone} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{calc} ...
1
vote
1answer
322 views

pgfplots: xticklabels and yticklabels in fractions

How to properly put xticklabels and yticklabels in fractions? \documentclass{article} \usepackage{pgfplots} \let\ds\displaystyle \begin{document} \begin{tikzpicture} \begin{axis}[ scale only ...
1
vote
1answer
494 views

datetime plot in pgfplot using gnuplot

I have a large data file with several columns wherein the first column is a date and time in the format, 'yyyy-mm-dd hh:MM' and the rest are numerical values of different variables. I often have ...
1
vote
1answer
298 views

bar width not recognized in group plot

I am trying to put four bar charts within one groupplot. My file is \documentclass[tikz,border=3pt]{standalone} \usepackage{xcolor} \usepackage{pgfplots,pgfplotstable} \usepgfplotslibrary{groupplots} ...
1
vote
1answer
121 views

Composite plot in PGFPlot

I am trying to get pgfplots to do produce a plot like the following: i.e. a scatterplot with a second scatterplot below the x-axis. I am having a hard time figuring out how this kind of plot is ...
1
vote
1answer
400 views

Only the old version of pgfplots is available with MiKTeX (version 1.7)

I am looking for a solution to install the last version (currently 1.8) of pgfplots via the package manager MiKTeX on Windows. However, MiKTeX only offers the old version 1.7 of pgfplots. Is there a ...
1
vote
1answer
106 views

Problem with referencing plots

I want to reference some plots (done with pgfplots) in my text but somehow it's not possible. If i copypaste the examples from the pgfplot- documentation it works but if I move one of the labels to ...
1
vote
1answer
197 views

Scale only dataset read from file without scaling whole graphics

I have datasets which vary strong in range. So i want to scale my dataset to adjust it to my template, so that the grids, axes and so on are identical with the neighbour-subfigures. What is the ...
1
vote
1answer
261 views

Set xstep and ystep pgfplots

I have this MWE. My question is how can set xsep and ystep in the axis so that they will properly appear, and without have to know in prior the range of values: xtick={0,0.1,...,1}, ...
1
vote
1answer
486 views

Pgfplot figure off-center

I create a tikzpicture in standalone mode (see code below). Then import the resultant .pdf file into my document via \includegraphics (see pic). However the axis labels are cut off and part of the ...
1
vote
1answer
690 views

Problem in modifying contour label style in pgfplots

I am trying to modify the contour label style in a TikZ picture. I would like to have the label values in the format 0.0 instead of being integers. The following code produces a picture in which ...
1
vote
1answer
488 views

Debugging TikZ and PGFPlots compatibility issue

I just tried to compile an old TikZ code (which as far as I recall compiled perfectly in the past and was not changed in the meanwhile) and I faced some serious compilation issues related to TikZ. ...
1
vote
1answer
97 views

Specifying ymin in pgfplots misalignes images vertically [closed]

I have two plots drawn with the \pgfplots package. In one of them, I specified that ymin=0 when I created the axis since the plotted curve never goes below y=0 (otherwise something like ymin=-0.2 ...
1
vote
1answer
202 views

pgfplots externalize and references: some work, some don't

I have started using the tikz externalization library for my current project. From here I learned to use \pgfplotsset{invoke before crossref tikzpicture={\tikzexternaldisable},invoke after crossref ...
1
vote
1answer
425 views

Vertically aligned legend to PGFPlots subplots

What I want to do is to have 3 PGFPlots subplots and the legend arranged in four equally sized boxes. However, when I use the following code, in the output the legend is not vertically aligned with ...
1
vote
1answer
1k views

TikZ Label multiple plots outside of axis box

I'm endeavouring to make a graph similar to the following using PgfPlots and TikZ. I can make all of this work, except for the placement of the R=2, R=3, R=5, and R=10 markers on the left-hand ...
1
vote
1answer
287 views

Using pgfplot externalize with .eps output in letter 10cm*10cm

Using pgfplots, externalize an .avi file and using DVI>ps, externalize an .eps file on A4 but I want a figure with width and height of 10cm in letter (10cm x 10cm). How can I make it? (If you ...
1
vote
1answer
1k views

Fill a quadrant with PGFplots and axis equal=true

I need to fill quadrant three and want to use axis equal=true. However, using this setting changes the minimum value of x. How do I adjust this to fill the entire quadrant independent of axis ...
1
vote
1answer
287 views

pgfplots: correlation for data values from file works, but with errors

maybe I do not to see the wood for the trees, but I'm always getting error messages for compiling the following pgf code, while the output looks like the way it should. Does anyone see whats wrong ...
1
vote
1answer
7 views

How plot a function (using pgfplots) using a specific domain for one and specific coordinates for another?

I want to plot 2 curves (x^5), but one is using the domain 50-140 and the other one just in the specific points. Here is the code: \begin{figure}[!h] \centering \caption{Gráfico (c)} ...
1
vote
0answers
6 views

Overlap and non-functioning filling in groupplots

I'm trying to place multiple plots in the same figure. In each plot I'd like to have a certain region highlighted. However, there is significant overlap between the plots and the highlighting doesn't ...
1
vote
0answers
33 views

List of Tables not filling with pgfplots package

This is my first question on here but I am hoping someone can help me with this issue. I am writing a thesis with my university's .sty file for formatting, however when I compile the list of tables ...
1
vote
0answers
32 views

Scaling tikz graph when pgfplots is loaded

This question is related to: tikz: Scaling the unscalable — issues with a TikZ graph I'm using the suggested modification from the linked answer to scale tikz graphs. However, I'm also including ...
1
vote
1answer
66 views

Font size in PGFPlots Minipage

I am using this guide to put concorde tsp solver's vector graphics in LaTeX. I want to show 2 images and a description text right next to them, all side-by-side. I am usign the minipage to do so, but ...
1
vote
0answers
49 views

Temporarily disable Tikz shadow in pgfplots

I am using Tikz to create nice margin notes, like Gonzalo's answer to create a framed environment for a margin note I added a shadow to these notes with `drop shadow =' followed by a color. It works ...
1
vote
1answer
30 views

Insert a line break in the title of a groupplot plot

I've seen some posts that address this question for a caption, but most rely on using the caption package... I have a groupplot that produces the following output: Obviously I'd like to clean up ...
1
vote
1answer
49 views

Combine multiple pgfplots from tex files

I have been using Sharelatex to write my thesis and I have accumulated many pgfplots. I can't include more than ~6 pgfplots produced by csv files before I get compile time out. I have been dividing my ...