The tag has no usage guidance.

learn more… | top users | synonyms

21
votes
1answer
8k views

Colors and legend in groupplots/barplot

In order to compare three items I use the groupplot command. For each item I have n different criteria to compare. Is it possible to set the color for each criteria itself? Meaning the first bar in ...
16
votes
2answers
2k views

Create x and y label which overlaps for multiple plots

I have a groupplot of 5x3. Now I want to be able to 'overlap', so to speak, the ylabel over all the plots vica versa for the xlabel. This enables me namely to make the groupplot smaller. Currently I ...
12
votes
2answers
552 views

Automatically label groupplots (A), (B), (C),

Is there a way to automatically label a set of groupplots from the pgfplots package (A), (B), (C), ...? \documentclass[margin=2pt]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \...
12
votes
1answer
906 views

Align ylabels of grouped plots at a common line

I use the groupplots library of pgfplots to stack several plots above each other. The y tick label of the two plots have different width as the y axes of the plots are in different scales. As long as ...
11
votes
1answer
4k views

Multiple y axes in groupplot

I want to create a barplot with three groups. Compared are two criteria. To make it more comprehensive here the plot I already generated I approached this problem by using the example from Stacked ...
9
votes
1answer
1k views

Common colorbar for groupplot

I want to group two surface plots with the groupplots library from pgfplots and place a common colorbar from the top of the first plot to the bottom of plot. At the moment (code below), both plots ...
9
votes
1answer
444 views

groupplot pie charts

Is there a way to group pie charts using groupplots? I want to have something similar to this: Here is the MWE: \documentclass[times]{article} \usepackage{pgfplots, pgfplotstable} \usepackage{tikz}...
9
votes
1answer
687 views

pgfplot groupplot fillbetween

I am trying to use the fillbetween package with combined with groupplot and I am having serious troubles. Basically, what I want to have is the error plotted around my curves with a filled area. I am ...
7
votes
2answers
477 views

How to draw line through group plots in pgfplots?

This issue has been driving me crazy for the past 10-20h. I have a group plot (pgfplots) where I have 2 plots one under another. I'd like to draw a vertical line (e.g. a helpline at x=150e-6) that ...
7
votes
1answer
1k views

scaling multi column groupplot while maintaining font size and node placement

This is a follow-up to two previous questions: 1: font size scaling and node placement issues using pgfplots and tikzscale 2: Scaling a multi-column TikZ/pgfplots groupplot to page width I would ...
7
votes
1answer
264 views

How to change the scale between ticks

Is it possible to change the spacing between two ticks? 4000-3000 = 3000-2000 = 2000-1500 = 1500-1000 \begin{tikzpicture} \begin{groupplot}[ group style={ group name=my plots, ...
7
votes
1answer
978 views

Common label for a groupplot [duplicate]

This can be considered a combination of the following questions How can a title be placed for a group of pgfplots? Align ylabels of grouped plots at a common line The following piece of code ...
6
votes
2answers
246 views

How to plot Lambert W function with pgfplots

I would like to plot the two main branches of the Lambert W function with different colors using pgfplots like here but I don't know how to do it. Is there some way to reflect a function with respect ...
6
votes
1answer
997 views

Common scale for pgfplots groupplot

The groupplots environment allows global values of xmax to be set. Is there a way to automatically select a common value for all plots in a group? For example, with the code below, the 4th plot does ...
6
votes
0answers
116 views

Group style key does not work in pgfplotsset

When I want to set a style using groupplot, I will do something like this: \begin{groupplot}[ group style={ group size=1 by 2, vertical sep=1cm, }, ] However, I've found that if I try ...
5
votes
2answers
311 views

pgfplots - How can I change an option (e.g. xlabel) for all subsequent groupplots?

If xlabel or ylabel are defined in the groupplots options, the values are used for all subsequent plots. Same with other options. Can one change the xlabel for all following groupplots from one point ...
5
votes
1answer
57 views

String concatenation macro to find file in pgfplots groupplots

I have a strange problem with pgfplots and using a macro to return a string to a file to be included. MWE Code: \documentclass[a4paper,10pt]{article} \usepackage{pgfplots} \usepgfplotslibrary{...
5
votes
1answer
175 views

How to center align a single plot within a row of groupplot

I have an odd number of plots, 5, and would like to center align this fifth plot using groupplot as well as a group x-axis label. I have a 3x2 setup. I searched for answers and I've seen a case where ...
5
votes
1answer
314 views

How to prevent frames on each groupplot in TikZ/pgfplots

I want to do a group of plots. However, I set the option \tikzset{every picture/.style={framed} at the begin of my document, because I want a frame around all my pictures. What I get now is a frame ...
5
votes
1answer
2k views

groupplots: Managing number of ticks

This question was asked already here but not answered completely. I know of two approaches but they do not apply to my problem: ytick=data: In my example some of the tick labels will overlap. ytick={...
5
votes
0answers
269 views

pgfplots groupplot: fillbetween breaks alignment of plots [closed]

I recently (foolishly) updated all my TeXlive packages, including pgfplots (from 1.10 to 1.11). I now have an issue with the groupplots and fillbetween libraries, where using the fillbetween library ...
4
votes
2answers
435 views

fillbetween from pgfplots does not work inside groupplots

MWE: \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=newest} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{fillbetween} \usepackage{filecontents} ...
4
votes
2answers
192 views

Centering group plot figure

Can anyone show me how to center this group plot? I've tried every trick in the tex.stackexchange book of similar posts (e.g., How to center large figures in LaTeX and how to fix short justified ...
4
votes
1answer
165 views

Plot Width Error with pgfplot's groupplot in Beamer

I am making a 3x3 matrix of plots in a beamer slide. Position (1,1) is empty, the rest of the first row has column titles and the rest of the first column has row titles. Positions (2,2) to (3,3) ...
4
votes
1answer
482 views

External coordinates breaks alignment of groupplots

This answer showed how to make overlay drawings with nodes defined in previous plots using TikZ. However, that solution (ie. adding cell picture=if necessary to the axis) does not work with groupplots....
4
votes
1answer
2k views

Placing extra x tick on the upper axis

Please consider the following MWE. In addition to the xstick of the bottom x-axis (or primary x-axis) I would like to add a extra tick at the upper x-axis (or secondary x-axis). \documentclass{...
4
votes
0answers
169 views

Conflict tikzscale and matrix group plot

I want two axis environments next to each other in one figure environment. I want them to be vertically aligned and scaled to the width of the text. I am trying to achieve this by means of the ...
4
votes
0answers
316 views

Automatically positioning a legend relative to multiple plots in groupplots

This question deals with centered legend placement in a set of plots aligned with groupplots. However, as the OP stated in a comment, the (accepted) solution requires some hand tweaking. I suspect ...
3
votes
2answers
661 views

Create groupplot 3 x 6

I asked a similar question before: Create 2x2 groupplot with +1 plot to the side? For that time using the subfigure environment wasn't a problem. But I do not want to use the subfigure environment ...
3
votes
1answer
563 views

get caption/subcaption every plot using groupplot pgf tikz

Hello I want to have Under each plot (subgroup plot) its caption or label, so I can also reference it in my document. Here in my example I used (a), (b), (c) I can keep them but they are not well ...
3
votes
2answers
344 views

Vertically stacked group plot with different horizontal scaling

I've 4 data sets that I'd like to present as a stack using pgfplots' groupplot library. What I'm struggling with is that the first data set has a larger horizontal range to the remaining three. I'd ...
3
votes
1answer
100 views

Funky (don't know how else to describe) Surface Plot

Below is an MWE \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \usetikzlibrary{pgfplots.groupplots} \pgfplotsset{compat = 1.12} \begin{document} \centering \...
3
votes
1answer
353 views

Contour Plots in Groupplot

I am trying to produce a groupplot with two contour plots. I suspect I could work this out on my own given enough time to play with it, but I am up against a bit of a time crunch... As background, ...
3
votes
1answer
349 views

plot pgfplots graph similar to facet_wrap from ggplot2

I need to plot a 2x2 grid of graphs as shown below: Note: The above graph was generated using the ggplot2 library from the statistical programming language R. Graph taken from link. Here are the ...
3
votes
1answer
67 views

Overlap and non-functioning filling in groupplots

I'm trying to place multiple plots in the same figure. In each plot I'd like to have a certain region highlighted. However, there is significant overlap between the plots and the highlighting doesn't ...
3
votes
1answer
2k views

Plot alignment using groupplot in pgfplots

I am using the groupplots library in pgfplots to create plot groupings. I am using the 2x2 sizing but only have 3 plots. How can I center the furthest right plot vertically, to make a triangle rather ...
3
votes
2answers
705 views

LaTeX - PGF groupplot - polar axis

I can't find the answer anywhere, is it [and how] possible to make a group plot of multiple polar graphs? For grouping, I use pgf.groupplot library, for polar axis, I use \begin{polaraxis} from pgf ...
3
votes
1answer
465 views

Wrong plot alignment when using colorbar and groupplot

The alignment of the plot is wrong when I use colorbar, see figure. How can I fix this? Further I would like to know how I can make the small axis ticks black in stead of gray? Now you can't really ...
3
votes
1answer
49 views

Show tick labels on both edgess in groupplot

I would like to put quite many small plots in a groupplot environment and provide ticklabels on all adges of the groupplot (no labels at individual plots). In the following example, I've set the ...
3
votes
1answer
85 views

force \groupplot to start from the bottom left corner

Using \groupplot, subplots are generated starting from the upper left corner as shown in the following illustration: Is it possible to force it to start from the bottom left corner, i.e : Here is ...
3
votes
1answer
183 views

Setting zmin/zmax in groupplot confuses colorbar creation (colorbar is 3d)

When using groupplots and setting zmin and/or zmax in the groupplot environment manually, pgfplots generates a (broken) 3d legend: I assume the issue is that groupplot passes the zmin/zmax settings ...
3
votes
1answer
176 views

Groupplots become misaligned with axis equal image

I have several images I want to align in a groupplot environment. All of the images have the same width, whereas the images fall into two categories when it comes to height, one with "small height" ...
3
votes
1answer
128 views

Common colorbar over groupplot

I have results that I want to present in a groupplot that share a common result range. Naturally, I don't want to show multiple colorbar next to each picture next to each individual picture but one ...
3
votes
1answer
178 views

Unwanted vertical space above x-axis in TikZ + pgfplots + groupplot

I'm using TikZ with groupplot to merge two plots vertically and thus I need to remove the lower x-axis line on the upper plot upper x-axis line on the lower plot. This is achieved with this MWE: \...
2
votes
1answer
57 views

pgfplot - groupplot print x label only once in the last row

In the below group plot, the xvalues are common for all the subplots. I want the x labels to be displayed only on the last row of the group plots. \documentclass{article} \usepackage{tikz} \...
2
votes
1answer
651 views

How can several boxplots be combined into a single figure as groups?

Currently I have the following MWE: \documentclass[a4paper]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{external,colormaps,groupplots,statistics} \pgfplotsset{compat=1.8} \usepackage{tikz} ...
2
votes
1answer
50 views

Spy glasses in a group plot

I have a group plot in which the graphs have common x axis and are stacked one over the other- like the one givenhere. Now, I want to have a spy glass on each of these plots in the group. But when I ...
2
votes
2answers
169 views

pgfplots - tikz external - legends are missing

I'm using tikz external to get plots rendered faster. But legends in the plots are missing if external is used. Update: I'm using label to create legend. The same issue does not occur if \legend is ...
2
votes
1answer
155 views

Ticks vanish in pgfplots if groupplot is combined with set layers and axis on top

I am trying to use set layers to get the grid behind the tick labels and axis on top=true to get the axis on top of the plot lines. If I use these settings in a groupplot neither the ticks nor their ...
2
votes
1answer
945 views

Place vertically centered legend to the right of groupplots

I want to place the legend to the right of groupplots using the pgfplots package, and for the legend to be vertically aligned at the center. In other words, I want the legend to be placed at the point ...