{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
149 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
178 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
97 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
91 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
171 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
70 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
85 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
298 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
142 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
166 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
163 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
52 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
259 views

Free space in bar-chart with empty entries

I would like to plot some data set with the ybar option of pgfplot. But not all entries are nonzero. The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore ...
1
vote
0answers
51 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
289 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
209 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
516 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
142 views

A workaround for visualization depends on and ybar stacked

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
81 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
70 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
249 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
98 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
274 views

standalone pgfplot with extra include in subdirectory -> no output [closed]

I am trying to generate a pgfplot with data in a textfile as a standalone document. I am using the 1.2 version of standalone from https://bitbucket.org/martin_scharrer/standalone/downloads because it ...
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
264 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
173 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
210 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
437 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
55 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
914 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 ...
1
vote
0answers
221 views

tikz foreach used for number in filename for addplot [closed]

I have quite a few tables generated which I want to plot in the same TikZ figure (using pgfplots). I am currently trying to use a foreach loop to plot them all, but it is only plotting the last ...
1
vote
0answers
52 views

PGFPlots fixed number formatting fails on small numbers [duplicate]

Possible Duplicate: How do you remove the axis multiplier? I have a problem getting fixed (as opposed to scientific) number formatting on my axes in PGFPlots. The following example: ...
1
vote
0answers
2k views

Creating .dat files and reading a .dat file in pgfplots [closed]

The first question I have, is about creatinga .dat file in Mac. How can I create a file containing columns of data with .dat format in Mac OS Lion? What I did was to create the file using TextEdit, ...
1
vote
0answers
29 views

Visualising a matrix as an image, or specifying directly values for segments rather than for vertices [duplicate]

Possible Duplicate: Using pgfplots, how do I arrange my data matrix for a surface plot so that each cell in the matrix is plotted as a square? I'm trying to use pgfplots to visualise a ...
1
vote
0answers
124 views

pgfplots: work on single points in different files

I have a file containing a lots of data: time, position (3 coordinates), velocity (3 coordinates) and energy. I want to pick only the coordinates at t=50 (50th column of the table) and calculate the ...
1
vote
0answers
51 views

pgfplots: function with a filled confidence band [duplicate]

Possible Duplicate: Is there an easy way of using line thickness as error indicator in a plot? How can I plot a function with a filled confidence band using pgfplots? I have table data in ...
1
vote
0answers
37 views

Extract x and y coordinates when using intersectionlibary [duplicate]

Possible Duplicate: Coordinates of intersections I have the following minimal plot \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{intersections} ...
1
vote
0answers
43 views

pgfplots: How to change the alignment of one single node [duplicate]

Possible Duplicate: How to display labels on points of a tikz plot I plot a scatter plot using pgfplots and automatically label every single mark with its description. When two marks are ...
1
vote
0answers
57 views

How to split y axis in pgfplots to display differing datasets in one graph? [duplicate]

Possible Duplicate: Axis break in pgfplots I'm trying to convince pgfplots to display my measurement results. It works quite well except the fact that the datasets vary in numbers. Most of ...
1
vote
0answers
312 views

Nested axis: several concatenated axis with different ticks

I'm trying to convert a so called "dotplot" into latex. This plots are used in biology to compare sequences. Each axis represents a sequence and the coordinates of a dot are the actual X and Y ...
1
vote
0answers
2k views

! I can't find file `pgflibrarytikz*.code.tex' [closed]

I can compile the following LaTeX: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,backgrounds,plotmarks} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
1
vote
0answers
1k views

Can't plot a surf from MATLAB using pgfplots [closed]

for whatever reason I cannot come up with I am not able to plot a surf figure I have generated in MATLAB and then converted to tikz using the script available here. I am getting the following errors: ...
1
vote
0answers
160 views

Make the boundary of markers more apparent in pgfplots? [closed]

I use pgfplots to draw a black-white array resembling imshow() in MATLAB. I use the following code (from Plot a matrix of real values with TikZ/PGF like imshow in matlab ) to do it ...
1
vote
0answers
503 views

Reproducing a 3dplot example from texample.net using pgfplots: drawing angles with pgfplots in 3d [closed]

I am trying to reproduce the 3dplots example from www.texample.net using pgfplots: So far, I did not come far at all, actually. One problem is that pgfplots does not allow to work in spherical ...