{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
410 views

Scaling pgfplots matching papersize

I'm facing some problems at the moment with scaling some diagrams so that they each fit on a page (landscape) in my appendix. Does anyone has some suggestions how to solve this? Any help would be ...
2
votes
1answer
1k views

Error using lualatex and tikzexternalize to compile document with PGFPlots

I have a fairly large document with a number of pgfplots diagrams and due to memory capacity limits in PDFLaTeX I am now using LuaLaTeX to compile. While this works well, it takes forever to produce ...
2
votes
1answer
284 views

How the plot in \groupplot could be moved horizontally and vertically?

This is my code: \documentclass[tikz,12pt]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{mathptmx} \usetikzlibrary{pgfplots.groupplots} \...
2
votes
1answer
329 views

particular prominent yticklabels

Since the paraview legends look horrible when they appear inside a latex document, I want to replace them using Python's matplotlib and Nico's matplotlib2tikz package. So I have compiled a python ...
2
votes
1answer
343 views

PGF Plot correlation table shade negative/ positive values gradient

I am trying to extend the results from Parametrize shading in table through TikZ for negative values. I searched extensively for the absolute value function but could not find one. I tried abs(), but ...
2
votes
1answer
244 views

Macro for pgfplot cycle list entry

I'm trying to define multiple cycle lists based on macro variables. The reason for this is that I need more than one list and I want to be able to change the appearance quickly while keeping the ...
2
votes
1answer
381 views

pgfplots addplot 'domain' option overwrites/collides with axis 'domain' option

I have a problem with domain specification in addplot which collides with domain specification in axis. The code below plots the x axis as well as the function (expo) from 0.1 to 2. My desired ...
2
votes
1answer
117 views

Math-type in y-label repeating; ghost line appearing

When I run the below code, my intended graph is created but with two issues: there is an odd grey line at the bottom which I can't track down and delete the math type from the y-label is repeated ...
2
votes
2answers
513 views

Reducing space in pgfplots xtick label number format?

With the following MWE: \documentclass{standalone} \usepackage{pgfplots} \usepackage{tikz} \usetikzlibrary{intersections} %% named intersections \usetikzlibrary{fit} \usetikzlibrary{calc} \begin{...
2
votes
1answer
1k views

Force 10 base multiplier

How can I get a 10 base multiplier at every tick? I only get 1 multiplier that has a strange position scaled y ticks={base 10:-3} I can't recreate it right now, however by default I got the lowest ...
2
votes
1answer
210 views

Disable decoration for pgfplot nested in tikzpicture

I have the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations,decorations.pathmorphing} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} \begin{...
2
votes
1answer
522 views

Label functions generated with gnuplot in pgfplots

I would like to generate four hyperbolas in the plane and label them. I'm using the following code (sorry for its length, feel free to shorten it...): \documentclass{standalone} \usepackage{pgfplots} ...
2
votes
1answer
203 views

Adding extra ticks based on sum of ybar stacked

I am trying to add minor yticks on my axis based on the end values of a ybar stacked plot. Here is where I'm at: \documentclass[tikz]{standalone} \usepackage{pgfplotstable} \pgfplotstableread{ Year ...
2
votes
2answers
8k views

Install packages in texworks missing style files

So I am trying to install the pgfplots package in LaTeX on my Windows 7 machine. I usually did this by just running the LaTeX file with \usepackage{pgfplots}, and then the computer asks me if I want ...
2
votes
1answer
434 views

tikzpictures positioning

I am having trouble trying to position tikzpictures in their correct position... I want to place the 3 plots with the green filling in a single line above (with the alpha/2 right below), and the 3 ...
2
votes
1answer
149 views

Boxed pgfplots reference in the text

I want to make a reference to a pgfplots graph in the text. The reference should be surrounded by a small box. I have tried several things but it always looks ugly. How can I vertically align the ...
2
votes
1answer
325 views

Softsign derivative 1/(1+abs(x))^2 not drawn correctly at the 2009 latexlive version tikz, pgfplots

I want to draw 1/(1+abs(x))^2 in tikz. At home I have the new latexlive version installed and everything looks fine. At work I do not have the new latex version because Ubuntu 12.04 still includes the ...
2
votes
1answer
225 views

Why doesn't standalone accept my build={} package option?

I frequently use standalone to incorporate tikz images in my documents. I have some really large tikz plots which I would like to include in my beamer presentation, but I am getting "Tex capacity ...
2
votes
1answer
305 views

Patchplots not working recently?

While modifying some images that I created using the patchplots library from pgfplots I noted that the actual colors inside the axis are missing (I had not touched these images for a few weeks and ...
2
votes
1answer
117 views

StrSubstitute not working nicely with pgfplots

This question is related to my older question here, but now slightly different. I now have a function that is supposed to take two multivalued arguments. One contains the columns i want to plot. If i ...
2
votes
1answer
1k views

Create 2x2 groupplot with +1 plot to the side?

I want to create a 2x2 + 1 plot like... ---------------------------| | Plot 1 | Plot 2 | | ------------------- Plot 5 | | Plot 3 | Plot 4 | | ---------------------------| How can I ...
2
votes
1answer
147 views

How to tell pgfplots to keep empty “series”?

I have a plot with xticklabels defined as symbolic. In a modified version of my plot, I want to set ymin value. When doing this, my plot is automatically updated: all x series having only points ...
2
votes
1answer
123 views

Use markers as clip path

I want to plot a line, where the markers knock out a piece of the line instead of being displayed (it would be useful if there was a way to leave a bit of space around a marker, too). Drawing the ...
2
votes
1answer
764 views

error while using gnuplot in pgfplots

I am using pgfplots and tikz library for generating some figures. my problem is that I can not use gnuplot within pgfplots. I tried to compile the following code bu seemingly the gnuplot is not ...
2
votes
1answer
182 views

pgfplots - x unit, space between label and parantheses

Can I specify the space between the label and the parantheses when using x unit in pgfplots? In my example image, I want less space (\,) between the E and the [eV].
2
votes
1answer
166 views

How to inline tikzexternal.sty

I am preparing a document, which uses pgfplots, for submission. I externalized figures etc. successfully. Though, now I'm facing a serious problem: On the target system the tikzexternal.sty file may ...
2
votes
1answer
2k views

pgfplots: how to fix axis length?

I used ymin=0 and ymax=1000 to give axis the length I want. The problem is that if I have some "crazy" data that escape (I have to plot stable solution vs. unstable solution of my algorithm), pgfplots ...
2
votes
1answer
750 views

x-axis values are very close to each other

For the MWE below: \documentclass{report} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{pgfplots} \begin{document} \begin{figure}[H] \...
2
votes
1answer
678 views

Automatic data recognition and plot processing in pgfplots

I am a beginner in LaTeX, trying to use it for industrial documents, such a measurements report. One example is the true position graph of the MWE. The circle represents the true position tolerance. ...
2
votes
1answer
974 views

pgfplots spline and colorseries do not work

I want to create a plot with predefined colors and have the points connected by a spline curve. Both things do not happen. The color series is not applied (all lines are black) and a spline is not ...
2
votes
1answer
626 views

How to order barplots in aligned rows and columns?

I am making xbar plots with pgfplots. Within different age groups ("Agen interval") of men a single winner is choosen (Winner), based on some test, and on this winner two different variables are ...
2
votes
1answer
405 views

pgfplots: externalization and ifthen

I use pgfplots with externalization. When I try to include a macro that uses \ifthenelse, always the 'else' statement is being executed. When I switch off externalization, it works again. See this ...
2
votes
1answer
885 views

pgfplots hand-made legend (\label + \ref) fails with custom styles

In pgfplots, when I use a custom style to plot a line, \label the line and then \ref to this plot, I am unable to get the desired result. The desired result would be to get a little line where I am ...
2
votes
1answer
2k views

Drawing Vertical Arrows in Coordinate System Using Pgfplot

I have a series of data plots, an example of which is depicted below, and I would like to draw a vertical line through a particular x-coordinate on each plot, so that the head of the arrow is is ...
2
votes
1answer
4k views

usepgfplotslibrary - undefined control sequence

I have problem with following example code: %& --shell-escape --enable-write-18 \documentclass[a4paper,10pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{polski} \...
2
votes
1answer
2k views

Regarding bar chart with text as x axis labels

I have seen the previous posts regarding "bar chart with text as x axis labels". I tried to use the same code discussed in the posts and in the documentation, \begin{tikzpicture} \begin{axis}[...
2
votes
1answer
22 views

Changing the axis xmax/domain in a step plot

Consider the MWE below. This example is from the PGF Plot galery with added 1 outlier (1000,50) resulting in the first (wrong) screenshot below. I want to limit the domain/axis, so I get something ...
2
votes
1answer
51 views

TikZ / PGF : why use \addplot instead of \plot?

I cannot understand the difference between addplot and a simple draw plot. Can someone explain why it is generally preferred on forums to do the second thing on this MWE ? \setuppapersize[A4][A4] \...
2
votes
1answer
32 views

PGFPlot: Newcommand argument Color not respected

I created a new command which prints a graph from a file. So far so good. Now I want to add (to the command) an additional argument color. This is what I have so far: \newcommand{\plotvtf}[4]{% \...
2
votes
1answer
26 views

Using a pgfplots style for error bars

The following MWE shows two bar plots with error bars. \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \pgfplotstableread{ ...
2
votes
1answer
65 views

TikZ - Black Dot/Diamond in Center of All Diamond Shapes

I am making a flow chart and in the standalone TikZ file everything looks fine, but when I use \input into my thesis all of the diamonds have a small black diamond in the dead center of the shape. ...
2
votes
1answer
40 views

Connect coordinates in tikzpictures

I use a "parent" tikzpicture to realize a more flexible positioning of pgfplots than what is possible with groupplots i.e. I put the pgfplots in nodes as in the following MWE: \documentclass{article} ...
2
votes
1answer
34 views

pgfplot makes wrong log scaling

I am making a simple semi-logarithmic diagram, with axis set as \begin{axis}[ ymin=0.25, ymax=1.1, % y scale ymode=log, ] Basically, it works, but with that settings produces tick labels like $...
2
votes
1answer
32 views

tikzpicture fails with date input coordinates taken from file

I have a problem implementing a tikzpicture. I want to plot the file with date and TIME and a climatic variable. I followed the PGF manual in section 4.21.2 "Dates as Input Coordinates" and if i do ...
2
votes
1answer
60 views

Preventing the graphical xticklabels from stretching

I need to have my x-labels in my pgfplots to be vector graphics. How can I prevent the graphical x-labels from streching? In below is a MWE that can duplicate my problem. The drawn rectangles and ...
2
votes
1answer
43 views

Tikz pictures disappears when adding legend

\begin{center} \begin{tikzpicture}[>=stealth,trim axis left, trim axis right] \begin{axis}[legend style={at={(axis cs:40,20)},anchor=south west, draw=none}, xmin=0,xmax=4, ymin=0,ymax=2, ...
2
votes
1answer
53 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 ...
2
votes
1answer
68 views

Individual Tick style for each Tick

I would like to raise the left Tick over the x-axis so it doesn't clip into the graph. However If I add a second "Extra x ticks" definition the first definition gets overwritten. How can I achieve an ...
2
votes
1answer
68 views

Strange behavior x tick label style versus y tick label style

I've made a graph with this code: \documentclass[11pt,a4paper]{article} % use larger type; default would be 10pt \usepackage{pgfplots} \usepackage{tkz-euclide} \begin{document} \begin{...
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} \...