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

pgfplots: problem with stacked histograms

I want to plot data for a node that has several inflows and one outflow, using stacked histograms. I want the plot to look like this: First, I have tried stacked histograms (ybar stacked, see the ...
2
votes
0answers
21 views

Legend symbol not being displayed correctly in pgfplots [duplicate]

I'm trying to create a horizontal bar plot with log axis. Adapting several examples I could get what I needed. However, the legend symbols are not being displayed the way I want. Here's what I got so ...
2
votes
0answers
90 views

Why does LaTeX impose a memory limit of 8,000,000 and can I circumvent it? [duplicate]

A few people have already asked the question of how to increase the maximum memory LaTeX is allowed to use (see here and here) because it is quite common for LaTeX to run out of memory when using, for ...
2
votes
0answers
61 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 ...
2
votes
0answers
134 views

pgfplots in beamer class with BaKoMa TeX

I have a problem concerning plotting of functions in beamer class with pgfplots. I use BaKoMa TeX. In the article class, all works fine, but switching to beamer, an error occurs as soon as ...
2
votes
0answers
109 views

tikz externalize and pgfmath error

Using external and \pgfmathdeclarefunction at the same time results in ! Illegal parameter number in definition of \pgfmathfloat@expression. ! Package PGF Math Error: Could not parse input '' as a ...
2
votes
0answers
104 views

Pgfplots: date range and integers as input data

I have a data table that looks something like: Week,value 2010-01-03 - 2010-01-09,0 2010-01-10 - 2010-01-16,0 2010-01-17 - 2010-01-23,0 2010-01-24 - 2010-01-30,0 2010-01-31 - 2010-02-06,0 2010-02-07 ...
2
votes
0answers
30 views

Legend for selected functions only [duplicate]

In my plot, there are 6-7 \addplot[] entries but I want legend for only one of those functions. How can I do that? I tried \addlegendentry after the function I wish to have a legend for but it creates ...
2
votes
0answers
65 views

pgfplots: gnuplot fails to plot series [duplicate]

I want to plot a function containing a (converging) series. To plot this function I changed the series to a finite sum. \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
2
votes
0answers
23 views

Xticklabels with exponential to the end of the axis [duplicate]

I've this problem with tikz package. I'm creating a plot in the x-range [0; 10000] (in my real plot, up to 100000) but the xticklabels are in the form [0, 0.2, 0.4, 0.6, 0.8, 1] and at the end of the ...
2
votes
0answers
150 views

Histogram improvement or to plot histogram in 3D

I have created this histogram! I wanna ask: Can I further improve it as at one "normalized frequency, 41" I have two "frequency shift values, 4 and 11"? Is it possible to plot such histogram in 3D, ...
2
votes
0answers
159 views

How to make a tidy grouped and stacked barchart?

I found this chart in a recent paper. I've emailed the author about it but they didn't reply. I want to create something similar but I don't know what the correct software to use is. I need the ...
2
votes
0answers
268 views

Set xticks, yticks and colorbar tikz at once [closed]

I couldn't figure it out how I can manually set the xticks, yticks as well as those ticks of the colorbar at once. It only works for one of those three, but compiling never ends if I try to change a ...
2
votes
0answers
62 views

combine png and tikz, scalingproblem [duplicate]

due to the huge amount of data in my plot I wasn't able to compile the whole badboy at once after creating a tikz file and then using latex. Since the save_size won't go higher than 80000. so while ...
2
votes
0answers
357 views

LaTeX Box plot drawing using pgfplots

Two issues I have in the following code. I want to put the box in the middle of the line and I like to show the for the maximum value. Any suggestion will be appreciate. Thanks. ...
2
votes
0answers
165 views

How to align bars with the legend?

I'm able to draw bar chart using tex file mentioned below \documentclass[landscape,a3paper,11pt]{article} \usepackage{pstricks-add} \usepackage{pgfplots, pgfplotstable} \begin{document} ...
2
votes
0answers
411 views

Adding a legend next to subfigures of pgfplots

I have an error bar chart, where I would like to add a legend. Using this type of code, I am facing problems to add any kind of legend. Please consider my current code: ...
2
votes
0answers
49 views

TikZ external Library and pgfplots reading data from external txt file [duplicate]

I'm using the external library of TikZ for speeding up the compilation of my LaTeX document. In another thread, Christian Feuersänger reported that from December 2012, the external library uses MD5 ...
2
votes
0answers
285 views

matlab2tikz/pgfplots adding colorbar afterwards

I am currently using both matlab2tikz and pgfplots with external graphics since I am not completely convinced by either yet. Is it possible to add a colorbar with any of the two afterwards (meaning ...
2
votes
0answers
34 views

Is there a way to explicitly state what the ticks on a TikZ/pgfplots picture should say (ie 10.000 rather than 10)? [duplicate]

I'm trying to show that my graph has 5 significant figures on the y-axis. But I can't seem to get TikZ/pgfplots to show the trailing zeros though. I tried to get TikZ/pgfplots to show the extra zeros ...
2
votes
0answers
41 views

pgfPlots color plots [duplicate]

So I would like to present data using a color plot subdivided into squares. For a large data set, it is easy to use a 3D plot with surf, however when there is not so much information, this does not ...
2
votes
0answers
216 views

pgfplotsforeachungrouped in groupplot

I want to create a grid of plots with groupplots, where every plot is taken from an external file and included via pgfplots. Due to the fact, that foreach doesn't work nicely in a axis environment, ...
2
votes
0answers
140 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 ...
2
votes
0answers
150 views

Custom intervals in x-axis [closed]

I'm trying to add a custom interval to the x-axis. In the image below, this is what I'd like to achieve (from Excel). . Latex is putting its own interval as seen below: My graph is defined as ...
2
votes
1answer
301 views

How can the margin around externalized pgfplots crossrefs be set?

When using \usepgfplotslibrary{external} to externalize refs to labels in a pgfplot, the resulting .pdf looks cropped when the linewidth used for the line corresponding to the label is thick (or ...
2
votes
0answers
281 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 ...
2
votes
0answers
48 views

pgfplots: Plot around a Pole of a rational function [duplicate]

I'd like to use pgfplots to plot the function (x-1.2)*(x-3)*(x-4.8)/((x-1)*(x-5)) for x-values from 0 to 6. However, pgfplots does not seem to want to show me the whole plot - it doesn't show anything ...
2
votes
0answers
39 views

How to add PGF plot marker separately to document? [duplicate]

Say I have some PGF plot, which uses some custom plot markers, for instance: \newcommand{\scaleofcirc}{0.85} \pgfdeclareplotmark{manualcirc} { ...
2
votes
0answers
24 views

node at sloped path and/or not respecting every path/.style [duplicate]

I'm producing a schematic Nyquist plot, and I want to create an arc between the x-axis and a straight line, which should be denoted PM (phase margin). I use the intersections library to find the ...
2
votes
0answers
101 views

Plot doesn't care about axis setting [closed]

I have a Pgfplot and for some reason it does not care about my y-axis settings... I have set ymax to 15 but for some reason it only goes up to ymax is 14 or something... Can anyone explain why? And ...
2
votes
0answers
184 views

Stacked bargraph nodes near coords too bunched up vertically tikz [duplicate]

How do I center the coordinates in their bars vertically? This shows horizontally in ybar \documentclass[tikz,border=12pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} ...
2
votes
0answers
297 views

How do I replace an XYZ coordinate system on an already available plot? [closed]

I have an eps file looking like this: I have no access to the original dataset, so replotting it is not an option. I would like to replace the ugly 80s style coordinate system (Both the captions ...
2
votes
0answers
158 views

elsarticle with latest version of pgfplots [closed]

I want to submit a paper to Elsevier using it's elsarticle class. My document uses some commands from the latest version of pgfplots. However, Elsevier uses a TeXlive distrubution with pgfplots ...
2
votes
0answers
45 views

How to I fix my axis to suit the correct order of magnitude? [duplicate]

Problem: It's the times ten to the 3 bit part which bothers me. Not just that is exists but also because it's positioned itself in a strange place. My files is formatted so it is in MHz so I don't ...
2
votes
0answers
357 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 ...
2
votes
0answers
100 views

Bounding box calculation in groupplots suddenly fails? [closed]

Suddenly some graphs changed in my documents. I have not the slightest idea what changed but as of today the bounding box calculation for some plots created in pgfplots is going haywire. My MWE looks ...
2
votes
0answers
187 views

Multiple Labels on X coordinate when using symbolic coordinate [closed]

I am using pgfplots to plot bar charts; when I try to use symbolic labelling for the x coordinates, I get the labels repeating. Any ideas why, the snippet is below. \begin{figure}[!h] \centering ...
2
votes
0answers
41 views

Increase the X length of a tikzpicture [duplicate]

This is the code that i'm using (Thanks to percusse in here): \documentclass[conference]{IEEEtran} \usepackage{lipsum} %<-- For dummy text \usepackage{pgfplots} \pgfplotsset{compat=1.7} ...
2
votes
0answers
408 views

How to use tikzexternal? [closed]

I use some huge file to plot and for this I changed the tex conf file to increase memory that works. But I would like use instead external memory for this I try to use tikzexternal. But I fail. MWE ...
2
votes
0answers
393 views

How legend-entry can be possible in Tikz [closed]

I want to use legend-entry for straight line & dotted line. \begin{figure}[htp] {\small \centering \begin{tikzpicture} \draw [color=black, fill=gray!50] ( 0.2 , 1.975 )-- ( 0.3 , 2.05 )-- ( 0.4 ...
2
votes
0answers
310 views

Contour plot: ignored columns, wrong color-assignment, 1D-interpolation [closed]

This forum has often been of a great help for me, but i never posted myself. So please excuse me, if i won't stick to every formality here perfectly. I will do my best. I hope it's ok that i have 3 ...
2
votes
0answers
180 views

elementwise division of two columns loaded from different files [duplicate]

My next question follows on Sum up rows from different data files where I asked how to sum up the data from different files. In this case I have e.g. two data files, consisting of m (here e.g. m=3) ...
2
votes
0answers
480 views

Problem with TikZ area legend [closed]

I am trying to produce an area legend like the following picture. For some reasons, the output of the following code does not produce a single box for each dataset in the legend. ...
2
votes
0answers
281 views

Error on grouping level [closed]

I'm trying to create a graph from a big file with pgfplots. This is the code I use: \begin{figure} \makebox[\textwidth][c]{ \subfloat[] { ...
2
votes
0answers
816 views

“Fatal error” when using TikZ externalize [closed]

So I'm having problems with TikzExternalize. I have a paper with a large amount of dynamically built graphs. I get to a certain point in my files and I can't build anymore. Once I get to this point I ...
2
votes
0answers
146 views

How can I adjust the width of legend images in PGFPlots? [closed]

I am using pgfplots to create charts. How can I adjust the width of images of legend entries? I have adjusted plot coordinates in legend image code in the line legend style, but this not worked ...
2
votes
0answers
280 views

Tikz - Using calculated coordinates inside the plot function [closed]

I'm wondering if its possible to use calculated coordinates inside the function plot, somehow like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc, positioning} ...
2
votes
0answers
145 views

Strange behaviour of pin angles with PGFPlots [duplicate]

Possible Duplicate: How can I force TikZ pin angle? TikZ node pin angle in 2D plot I need to have some marks in a diagram pointing at characteristic points of the plot. To not have the ...
2
votes
0answers
379 views

axis discontinuity in bar chart [duplicate]

pgfplot provides the possibility to insert a discontinuity on the axes (see MWE 1 & first srceenshot). However, it seems as this discontinuity is only applicable from the value 0 to ymin/xmin. I ...
2
votes
0answers
467 views

How to plot a data from excel file with multiple sheets [closed]

I am really new in latex. I have a data from excel file, which contains different sheet. I need to plot these data on latex, any one have an idea?? I need it urgently please.