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

PGFPLOT Externalization not working [closed]

I am trying to externalize PGF Plot to be saved as EPS file using latex and enabled shell-escape. \documentclass[a4paper]{article} \usepackage{lipsum} \usepackage{tikz} ...
1
vote
0answers
260 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
0answers
103 views

Last version of pgfplots, error with LuaLaTeX [closed]

I have just installed the last version of pgfplots (version 1.10) in my local texmf directory but when I try to compile a file with LuaLaTeX I get the following error: ...
1
vote
0answers
325 views

! I can't find file `pgfutil-common-lists.tex'. \input pgfutil-common-lists.tex [closed]

I've recently run into the following error message that I have no idea on how to resolve: ! I can't find file `pgfutil-common-lists.tex'. \input pgfutil-common-lists.tex It occurs when I use the ...
1
vote
0answers
125 views

Problem with PGFPlots and Tikz fading library with disappearance of nodes near coords and irregular fades

It seems like whenever I turn on Fading from Tikz Fading library, the nodes near coords parameter to the axis environment is not processed by PGFPlots correctly. I am attaching the code and the image ...
1
vote
1answer
208 views

Formatting issues on x-axis and y-axis in latex

I have a latex code to generate graphs from a text file. The contents of the text file are like this: 0.01 0.119693 48.43196 0.02 0.1310796 6214.208 0.03 0.1289268 12973.42 0.04 ...
1
vote
0answers
121 views

pgfplots: enlarge x limits abs value and date coordiantes

Enlarging x limits of date coordinates by an absolute value used to work with pgfplots 1.4, but it gives me an error with the newer version 1.8. Can anyone suggest a working solution to the minimal ...
1
vote
0answers
93 views

pgfplots change fontsize to 1pt nodes near coords

i want to change the fontsize of the "nodes near coord" and also the y tick labels in a pgfplot to 1pt (no worries, that's just of theoretical interest). I found that ...
1
vote
0answers
107 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
0answers
93 views

Proper referencing to programmatic nodes in pgfplots axis? (no shape is known, ill-formatted floating point number …)

This is going to be a slightly messy/unclear question, but here it goes. Basically, I want to work with a plot in pgfplots, where I want to also generate programmatically some nodes (maybe as result ...
1
vote
0answers
54 views

Dimension too large with a small set of data

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
28 views

Base 2 logarithmic scale [duplicate]

I am plotting data with pgfplots using semilogxaxis that use base 10 logarithm. Is there a way to change the base of logarithmic-axes (I need an axis where power of 2 values are separated by the same ...
1
vote
1answer
60 views

Pgfplots, problem with pin and [francais]{babel}

When I don't use babel package, pins are ok. I suspect there is a problem with the colon, in french we put a space before and after, but how to tell pgfplot not to do it? \documentclass{standalone} ...
1
vote
0answers
105 views

inserting tikzstyle objects into sty files [closed]

I am trying to put a tikz object (pie chart) into the sty file so it will update its shape as the presentation proceeds (instead of \insertframenumber/\inserttotalframenumber). the code for the pie ...
1
vote
0answers
120 views

PGFplots - bold nodes only at ticks

The following code produces the diagram below: \begin{center} \begin{tikzpicture} \begin{axis}[date coordinates in=x, axis background/.style={fill,bottom color=gray!50,top color=white}, ...
1
vote
0answers
61 views

Citation in externalized pgfplots

I have a few \cite commands in my pgfplots which are not being displayed properly when externalization in on. As soon as you turn off the externalization, the references will be displayed correctly. ...
1
vote
0answers
150 views

PGFPlots - no lines between marks [closed]

I am starting playing with plots in latex. In my preample I have: \usepackage{pgfplots} \pgfplotsset{width=12cm,compat=1.9} My plots code: (first is copy from from tutorial, second is my attempt) ...
1
vote
0answers
223 views

How to adjust the inner and outer margin spaces around legend in PGFPlots?

How can I adjust the inner/out right/left/top/bottom margins of legend in PGFPlots? (not the space between the legend entries) e.g. indicated in the below figure.
1
vote
0answers
37 views

Define styles to make series of similar pgfplots [duplicate]

I'm writing a journal paper, and in this paper, I have to produce many versions of the same graph as I look at the effect of varying different parameters on the variable of interest (in this case the ...
1
vote
0answers
115 views

Tikz “Times Roman” in axis labels

How do I set my axis labels to use Times New Roman or Times Roman fonts, please? I'm looking for something similar to: \pgfplotsset{every axis/.append style={font=\sffamily\scriptsize}} which works ...
1
vote
0answers
99 views

pgfplot log-log plot: Axes Exponents

I have a question about formatting the axes using pgfplots in LaTeX. For some reason the exponents in my log-log plots (base 10) are fractions instead of whole numbers, i.e. instead of having 10^1, ...
1
vote
0answers
14 views

Process and plot data in different files using pfgplots [duplicate]

I like to read in my x-y-data from different files and then process them somehow. I read different questions here on each topic (data using from different files and processing data) but I somehow ...
1
vote
0answers
185 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
0answers
73 views

How to set a shaded area around 2d plot curve on a pgfplots figure? [duplicate]

I plotted a 2d figure of a curve but I also want to show variance of the value with a shaded area around the curve line. How can I do it in pgfplots? Here is my current plot.
1
vote
0answers
89 views

How can one reduce the size of ternary graphs when they are many on a page?

I need help on how I can reduce the magnification of my ternary plots so that the four graphs can be accommodated on the page.At present what I have is a little more than what a page can accommodate ...
1
vote
0answers
24 views

tikz legend with only 1 bar, not 2 [duplicate]

I have bar graphs made with tikz picture and pgfplots and the legend has two bars shown for each item. If this were printed in black and white I can see it being confusing given that I have multiple ...
1
vote
0answers
313 views

Trouble with 3D axis in pgfplots [closed]

I have texlive 2012 and have drawn a curve in three dimensions with pgfplots. That has not been a problem. The axes occurs in a way not appear well suited. In the code I indicated that ymax = 1.5, ...
1
vote
0answers
32 views

x axis domain/range in a plot [duplicate]

Please consider the following code of a plot and its result. What I want to be shown in the plot is the actual values of the x axis i.e 1000, 5000, 10000 and not 0.1*10^4, 0.5*10^4 , 1*10^4 to be ...
1
vote
0answers
148 views

pgfplot Boxplot How to change the thickness of median [closed]

Is there a way to change the thickness of median line in box plot. I am using the code given in Pgfplot : change the distance between 2 adjacent boxes in box plot
1
vote
1answer
173 views

How to use specific x-values of a CSV-file for drawing a x-y-plot? [closed]

I have a question concerning pgfplots. I have a CSV-file with x-y pairs. The CSV-file is very large (>10k entries). I want to plot now x vs y, but only at some specified x-coordinates. In other ...
1
vote
0answers
169 views

Shade background in pgfplots [closed]

I am using pgfplots package. I tried to use shade axis background. It is working in the .dvi output... But I don't see the shade when I convert it into pdf. Can anybody tell me the reason? I use ...
1
vote
0answers
53 views

multiple labels in pgf plots [closed]

I have a box plot with 8 entries. Now I'd like to group them a little. The first four belong to Test1 and the last four to Test2. What I'd like is to Have two xlabels one with 2 ticks (Test 1 ; Test ...
1
vote
0answers
52 views

How to turn off the axis in tikz plot? [duplicate]

Anyone knows how to let the axis disappear from my plot. \begin{tikzpicture} \begin{axis}[colorbar] \addplot3 [surf,faceted color=blue, samples=15, domain=0:1,y ...
1
vote
0answers
298 views

pgfplots: Plotting one data set with label and the other without label [closed]

I am trying to generate a plot using two data series and have the labels just on one of the series, but not the other. In the following example I would like to see the labels on first \addplot, but ...
1
vote
1answer
216 views

Add labels to y ticks in bar chart [duplicate]

I'm just starting to mess with pgfplots and just had a quick question in formatting bar charts. Specifically, I was trying to add labels to each of my y ticks and i couldn't figure it out. ...
1
vote
0answers
528 views

Plotting a histogram from a dat file using pgfplot [closed]

I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501. I have followed instructions provided elsewhere on this site but the data ...
1
vote
0answers
155 views

A workaround for visualization depends on and ybar stacked [closed]

Are there any workarounds for the bug? The "visualization depends on" function causes an error with stacked plots. With "ybar stacked", the minimal example generates the error message ...
1
vote
0answers
98 views

Issue with PGFPlots text [closed]

I'm trying to generate some plots using TikZ, with the following code: It's not about babel, fontenc, or inputenc; I've tried removing them to no avail. \documentclass[a4paper]{article} ...
1
vote
0answers
84 views

error generating separate pdf from pgfplots [closed]

When I followed the chapter 7pgfplots manual (Revision 1.8) to generate seperate pdf files from the pgfplots figure I could not get the required pdf files. MY file name is test.tex Here is the ...
1
vote
0answers
29 views

Changing fill option in \addplot has no effect [duplicate]

\addplot table [x=X, y=4ACH,fill=black,draw=black,bar shift=-0.5ex] {\datatable}; makes no difference to colour of bars. change color of pgfplot bar plot has the same problem but the workaround ...
1
vote
0answers
74 views

How can I prevent a node from being cropped in an axis environment? [closed]

I would like to put labels on the left side of a y-axis, but the text gets cropped. How can I prevent this? (Also, the entries are looking awful, so any ideas how to make it looking better are ...
1
vote
0answers
281 views

Undefined control sequence. \pgfplots@already@computed@legend@node [closed]

I got following error in my computer only. Undefined control sequence. \pgfplots@already@computed@legend@node ..._{\text ...
1
vote
0answers
106 views

Import external eps into pgfplot [closed]

I have some flow image files in .eps format which I would like to import in pgfplots. What is the practical way to do so?
1
vote
0answers
42 views

In pgfplots, font=\small throws undefined control sequence [duplicate]

I would like to reduce the label font size in a pgfplot. When I do x tick label style={rotate=90, anchor=east}, the file compiles, when I do x tick label style={font=\small,rotate=90, anchor=east}, ...
1
vote
0answers
277 views

change color of nodes in pgfplots bar plot [closed]

I have a bar plot which print the number next to the bar. The text is however not very well readable due to the color applied to it. Therefore I would like to know how to modify its style. ...
1
vote
0answers
183 views

How to bring beauty to this pgfplot? [closed]

We are making a plot as follows: \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{calc,shadings} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \def\xmin{0} ...
1
vote
0answers
221 views

scaled y ticks=false don´t work together with loglogaxis? [closed]

I´ll like to remove the multiplier on the y axis. My wish is to get somethings like, 0.001, not 1.10^-3. Can somebody help me please ...
1
vote
0answers
447 views

3D surface in pgfplots with given data [closed]

I am trying to make a 3D surface in pgfplots with input data. I am not able to get the expected graph. I would highly appreciate if you could point out to me what I am missing. ...
1
vote
0answers
56 views

fix position legend in pgfplot [duplicate]

Possible Duplicate: Put legend (pgfplots) below the plot I'm trying to set correctly the right position of the legend of my plot. I would have the legend just bottom right of my plot. Any ...
1
vote
0answers
988 views

Installing pgfplots package on Mac OS Lion [closed]

I was wondering if I can get help on installation of pgfplots package on Mac OS Lion for LaTeX. I have downloaded a zip file from pgfplots download link but don't really know how to install it. I also ...