{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

3
votes
0answers
145 views

Pgfplots: How do I make a style with consistent width while using `axis equal image=true`?

Workaround: If I set height very large, the width of the resulting plot is what I want and the resulting height is no more than it needs to be. In my case, I can set height=11in, which is the height ...
3
votes
0answers
96 views

Creating a tornado plot with pgf and force a break in one of the horizontal bars

To display a sensitivity analysis I want to produce a Tornado plot. In the plot a specific base case value is compared to the values produced after changing parameters in the model. I started from ...
3
votes
0answers
91 views

Part of specified graph is missing [duplicate]

I have the code to graph a rational function f(x)=(3x^{2}+5x)/(2x-3) with a vertical asymptote and a slant asymptote. The equation for the vertical asymptote is x=3/2. I decided to have two parts to ...
3
votes
1answer
141 views

Conditionally use bold font for table cell with pgfplotstable

I am trying to conditionally use bold font for table cells with values according to a condition. It works nicely with changing the text color as illustrated in the example below, but I am not able to ...
3
votes
0answers
52 views

Reduce number of input files for group plot in pgfplots [duplicate]

In the pgfplots groupplot below, I have three sets of data represented by data1, data2 and data3. Each of the data have three subtypes. And I need to plot a graph for each of the subtype. The file ...
3
votes
0answers
26 views

Use data from other multiple data files with calculations [duplicate]

This answer shows nicely how to use data from another file while plotting data using \addplot table. However, when trying to access the create on use column using \thisrow{}, an error occurs. For ...
3
votes
0answers
153 views

Conversion of big “amount” of seconds into HH:MM:SS when plotting timeseries with pgfplots

My aim is to plot a timeseries (experimental data) using pgfplots in LaTeX (pdfLaTeX, TexLive on Mac). The data I'm using is seperated with semicolons (columnwise) and has the following structure: -- ...
3
votes
0answers
135 views

create bar chart from select table row(s) for select column

The code below creates a bar chart but does not use the included data table. I would like to create the chart for an arbitrary year by specifying the year and using the table. Possible? ...
3
votes
0answers
177 views

normalizing graphs in pgfplots

Suppose you have multiple graphs in a pgfplot whose y ranges are [0 y1] [0 y2] etc, y1 < y2 < .... I want to divide all graphs by max(yi), so that the plot would be in the y range [0 1] (but ...
3
votes
0answers
256 views

pgfplots error using matlab2tikz [closed]

I am trying to plot a matlab figure in latex file. so i use this matlab2tikz function. It works really well, until I try to add some customised text on the figure before converting it to tikz file, ...
3
votes
0answers
43 views

pgftables: nodes near coords align depending on value? [duplicate]

The following code results in node labels overlapping the graph. How can I align them depending on the graph so that '1375' und '1574' are below the node and the others still above? ...
3
votes
0answers
81 views

Thick ticks are cut off [duplicate]

I want thick ticks but the 1st and last ticks are cut. It seems that the figure is cut exactly at axis boundaries so the thick ticks are cut off and look thiner than it others. Could someone tell me ...
3
votes
0answers
102 views

How to draw stacked /vastellated bar charts

i want to draw a chart like this (Chart / Image taken from here): First of all: How is this type of diagram called? By searching "stacked bar chart" in google, I cannot find charts like this. My ...
3
votes
0answers
143 views

Barchart, Boxplot Data Table PGF Math Errors from mixed format inline data

My code for a horizontal bar chart with a summarizing boxplot is coming together, but I still have a nagging PGF Math problem if I try to plot the boxplot values, which are commented out at the bottom ...
3
votes
0answers
40 views

PGFPlots option to include/ignore data set when determining axis limits? [duplicate]

Is it possible to tell pgfplots whether or not to consider individual data sets when automatically determining axis limits, or call some sort of "maintain axes limits at their current values from now ...
3
votes
0answers
38 views

Independent coloring of contour and 3D plot in pgfplots [duplicate]

I have a problem with pgfplots where the addition of a contour plot at the bottom of a 3D plot changes the coloring of the surface plot. This is a simple example: ...
3
votes
0answers
121 views

My boxplot draws but the coordinates are NaN when I try to label the plot [closed]

I have been slowly getting my barchart with a boxplot to come together. My current project is to label the whiskers, quartiles and median. Using examples from the manual, no label is printed. This is ...
3
votes
0answers
23 views

change position of tick multiplier [duplicate]

I have a plot like this and want to change the position of the 'tick multiplier', i.e. change where the $10^{-3}$ or $10^{-4}$ actually occurs. I don't want to change where ticks occur or remove the ...
3
votes
0answers
311 views

pgfplots - How can I increase TeX's capacity for plotting large datasets? (TeX Live on Windows)

There are several questions and replies on this topic, yet so far I haven't found one which reliably details the steps for TeX Live and TeXstudio on Windows. Of course the editor might be an ...
3
votes
0answers
455 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 ...
3
votes
0answers
182 views

PgfPlots bar with missing data causes columns to be “misplaced” [closed]

I looked for a similar problem here in SE but I couldn't find it. It's just driving me crazy :| Here is a MWE: \documentclass[xcolor=dvipsnames, 10pt, pdflatex]{beamer} \usepackage[utf8x]{inputenc} ...
3
votes
0answers
36 views

Function not plotted between 0 and 1 [duplicate]

When I am trying to plot the function x^0.5 / ( x^0.5 + 10^0.5 ), the plot will only start at x=1 but not at x=0. See the following MWE: \documentclass{article} \usepackage{tikz} ...
3
votes
0answers
250 views

How to automatically optimize the PDF output of TiKZ externalize?

I use pgfplots with externalization for generating plots in my document. For heavy plots the output PDF for a figure can grow to few hundred KB. I used Adobe Acrobat to optimize the PDFs which ...
3
votes
0answers
74 views

matlab2tikz does not capture legend title? [duplicate]

I generate a plot in MATLAB using the code below (MWE): x = [1:100]; y = x.^0.5; [hLine1]=semilogx(x,y); hleg1 = legend(sprintf('%.4f',0.4334)); set(get(hleg1,'title'),'string','test'); set(hleg1, ...
3
votes
0answers
140 views

External PDF from pgfplots contains several pages when with floatrow

Plotting with pgfplots and the external library creates the single PDFs for every plot as wanted. But every of those PDFs contains several pages, each showing the same plot. Sometimes there are three ...
3
votes
0answers
334 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 ...
3
votes
0answers
200 views

How to scale both data and error bars in pgfplots

I am able to scale the data using the y filter option in pgfplots plot object (like here How to scale existing coordinates data in pgfplots?). However the error bars are not rescaled as expected. Is ...
3
votes
0answers
107 views

Using \onslide in Tikz and pgfplots [duplicate]

I am having trouble with using beamer's \onslide in TikZ and pgfplots. The issue I have encountered is that if I use \onslide then the specific parts of the picture I want to appear on a specific ...
3
votes
0answers
176 views

tikzscale and \tikzsetnextfilename

I'm using Windows 7 or 8.1 with MiKTeX 2.9. I still have the problems, described here and here. I updated the packages with the package manager and I use \documentclass{report} ...
3
votes
0answers
103 views

How to automate right node alignment for labels from table AND marker size AND marker color of scatter plot?

Problem: Labels from table are placed right, but overlap. Is there a way to automate alignment of the labels near nodes so that labels do not overlap? This is a small example but I have bigger table ...
3
votes
0answers
408 views

pgfplots 1.9 on Mac [closed]

I have an iMac with TeX Live 2011. It came with pgfplots version 1.4, which I am able to use without a problem. I just downloaded pgfplots version 1.9 which has new environments like polar axis, smith ...
3
votes
0answers
158 views

How to color groups of bars in a graph, coming form an external file?

I have a graph displaying bars and error bars, the numbers comming from an external .dat, being simply black and white. And this is how I got there: \documentclass[12pt]{report} ...
3
votes
0answers
305 views

Error using “x expr” in “\addplot table” options [closed]

I have not been succesfull using x expr in \addplot table options, within Tikz/pgfplots. I don't think the problem is with the package being installed or not, because I have been using \addplot table ...
3
votes
0answers
119 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 ...
3
votes
0answers
809 views

PGFPlots: importing data from a txt file

So I imported data from two txt files. However, I would like to plot the mean of the data and then the standard deviation bars. How can this be done? \documentclass[tikz, convert = ...
3
votes
0answers
22 views

Empty y-axes label in tikzpicture-diagram [duplicate]

I'm searching for to code for a empty y-axis label. I don't want numbers on my y-axis. Any Ideas? My code: \begin{tikzpicture} \begin{axis}[only marks, ...
3
votes
0answers
46 views

Pgfplots bar chart - One plot, different colors [duplicate]

Is there a possibility to color bars of one plot in different colors? \begin{tikzpicture} \begin{axis}[ xbar, xmin=0, width=12cm, height=3.5cm, enlarge y limits=0.5, xlabel={\#participants}, ...
3
votes
0answers
68 views

Real Zoom in a plot [duplicate]

I was wondering if there are a mean to zoom in the plot, I know about spy library (PGFPlots) but this later tries only to scale the windowed area and get the raster bitmap after a stretch. Here, I am ...
3
votes
0answers
553 views

Clustered Stacked bar Chart Overlapping Labels

I have following code by which I generate the following graph \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{arrows,automata,calc,shapes, ...
3
votes
0answers
167 views

Magnified plot / Vertical Markers [duplicate]

I've been trying to use the spy library to magnify a part of my plot, but I don't really understand how it works, and I can't find a manual/tutorial anywhere. Right now I am doing something based on ...
3
votes
0answers
108 views

Highlight LaTeX code and presenting results as in a manual [duplicate]

I would like to write a short guidelines of LaTeX for my students. In the spirit of some LaTeX manuals, I'd like to present the code and the result as follows, This example illustrate more or less ...
3
votes
0answers
48 views

Tikzpicture: Fill refuses to work with integer node names [duplicate]

I want to create a 3D-grid of named nodes using nested for loops and then fill some polygon based on the names. For some reason tikzpicture doesn't fill the polygon, although it draws the path ...
3
votes
0answers
322 views

pgfplots trim to axis area even with extra ticklabels

I have a plot with extra x tick labels on top in pgfplots that i wish to display in a figure at the top of my page. I wish to have the top of the actual axis rectangle directly at the top, with the ...
3
votes
0answers
179 views

pgfplots — Patterns are not displaying correctly in PDF version 1.4 [closed]

I am using this method to plot a pattern in-between two curves. If I save the file as PDF version 1.5 everything looks great. Unfortunately the journal that I am submitting the paper to requires PDF ...
3
votes
0answers
1k views

Bode plot : any good alternative to bodegraph [closed]

I'm wondering if there is any alternative to "bodegraph" for plotting bode graph with latex. Especially I would ideally be looking for something easy to run (avoid external computation like with ...
3
votes
0answers
355 views

pgfplot gives an error despite using the latest version v1.7 [closed]

I keep getting this error every time I compile using the pgfplot package "! Package pgfkeys Error: I do not know the key '/pgfplots/error bars/ .cd' and I am going to ignore it. Perhaps you ...
3
votes
0answers
675 views

multiple non linear curve fitting using pgfplot for IC50 [closed]

My question is related with Non-linear curve fitting with gnuplot .I want to make multi IC50 using that plot which give result red, green and blue line, but only blue line appeared. this is MWE ...
3
votes
0answers
269 views

ytick pos=right doesn't work [closed]

This is my code: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.3} \begin{document} \begin{tikzpicture} \begin{axis}[xticklabel pos=right, ...
3
votes
0answers
1k 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 ...
3
votes
0answers
93 views

width=\textwidth yet plots overlaps with margin [duplicate]

Possible Duplicate: pgfplots: how can I scale to text width? Without using such command as trim axis=left or scale only axis, I would expect the following plots to be contained in the text ...