PGFplots: decorating plot but not legend
Using PGFplots, I would like to apply a decoration to a plot but not to the corresponding legend entry. Is there a way to do this? Here is an example: I’d like the legend image to be just the line,...
View ArticleShade region where two Gaussians overlap
I’m trying to shade the region where the two Gaussians overlap. My code is as follows (altered from Christian’s answer here: How can I hatch the areas delimited by two intersecting Gaussian...
View Articlepgfplots: shifting scope via named coordinate
Consider the following MWE: I find it amusing that the second tikzpicture cannot compile without the first, even though the second value for (A) is the one being used. Can anyone explaing this? In my...
View ArticlePGFPlot with data that is way too small
I’m trying to plot the Wien and Rayleigh-Jeans laws in a graph of $I times nu$. Wien Law: [ I=frac{2hnu^3}{c^2}e^{-textstylefrac{hnu}{kT}}] Rayleigh-Jeans Law: [I=frac{2knu^2T}{c^2}] But PGFPlot always...
View ArticleConstructing a Seismic Tripartite Graph with TikZ & pgfplots
I am attempting to use TiKZ and pgfplots to construct a seismic tripartite graph. These are used by structural engineers to determine seismic response for a structure. The example I am attempting to...
View Articlepgfplots quiver arrowhead size
I am making a quiver plot using pgfplot and I want the arrow head size to be scaled “nicely” with the length of the vector (e.g., the way Matlab quiver plot does). I’ve come across several solutions to...
View ArticleI want to center vertically these group-plots but i can't do it
documentclass[border=1cm]{standalone} usepackage[x11names,dvipsnames]{xcolor} usepackage{tikz} usepackage{tikz-3dplot} usepackage{pgfplots}...
View Articlextick in polaraxis useless
As a followup question to my answer here, I have a problem with the polaraxis of pgfplots. When I try to define xtick, nothing changes compared to dropping the option. MWE documentclass{standalone}...
View ArticleTikz image with remember picture combined with custom page numbering
I have a problem combining TIKZ-pictures when using custom pagenumbers. I modify my page numbers as shown in the upmost answer here. When drawing a simple TIKZ-image, I recieve the error ! Illegal unit...
View Articlereading inline table from macro
For a patch plot I need to read the patch table from a previously defined macro mytable. However this results in an error: ! Package pgfplots Error: Sorry, the choice 'row sep=crcr' is currently only...
View ArticleBarchart with Different Colors and Labels for Positive or Negative
I have a simple bar chart below and I’d like to change the color of the bars if the value associated with it is positive or negative. I’d also like to change the Y labels to use different labels...
View ArticleGrouping data with pgfplots
Right now I have some data year,0-19 years,20-39 years,40-59 years,60-79 years,80-99 years,100 years+ 2015,100,100,100,100,100,100...
View Articleboundary for x axis for plot in tikz
I have a problem with my plot, I want to have a boundary at x=4000 and don’t know how to do. My current plot is the one below and here is the code that I have now makeatletter...
View Articlepgfforeachungrouped with three arguments
This is a follow-up to a previous question of mine, with a slight addition. I would like to loop over data in a file and give the plot styles as a list. In the old question I gave only a color and an...
View ArticleCustomizing torus diagram in pgfplots
I’m trying to produce a nice torus diagram to illustrate its parametrization. I have this: but would like to have this: There’s a list of things I can’t figure out how to do: Move axis labels closer to...
View ArticlePGFplots, polar plot, extrema of values and fill segmented area
i have some testdata and want to create a polar plot, divided into some segments (21-24, 31-35, 41-42, …). From the testdata i greate about 50 graphs (Var 1 … Var x). Up to this everything works fine....
View ArticleI miss my ylabel in my latex pdf file
I draw the pic with tex, and I have included all the packages listed: usepackage[perpage]{footmisc} usepackage{graphicx} usepackage{tabularx} usepackage{paralist} usepackage{uestc/common}...
View ArticleStrange 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{tikzpicture}...
View ArticleHow to expand TeX's “main memory size”? (pgfplots memory overload)
I’m compiling one pretty simple LaTeX file with few dozen of pgfplots. Now, I can compile part by part, but am unable to compile it all at once. I really need good precision for all those plots (noise...
View ArticlePlot composite functions using tikz
I’m trying to plot something which I thought was very simple: sin(ln(x)) But this exact line in my plot doesn’t work: addplot[draw=red]{sin(deg(ln(x)))}; The error that I receive is: Missing number,...
View Article