Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [groupplots]

The groupplots library of pgfplots, which is made to facilitate placing multiple axes in a grid, with common settings.

2
votes
1answer
17 views

Ticks not showing up as intended in a group plot

I am working on a groupplot (still in progress). The problem I have here is that the ticks are not showing up as expected. I have looked into my code and I don't seem to understand how to fix them. ...
0
votes
0answers
37 views

How to embed a multiple subplots inside another subfigure using grouplots

Could somebody please give me a hint of how can I do this using grouplots and tikz. I have done it using subfigure and \includegraphics, however, I am facing problems to arrange the borders of the ...
3
votes
2answers
147 views

4 tikzpictures in a 2x2 layout

\documentclass{article} \usepackage{pgfplots} \usetikzlibrary{fit,shapes,positioning} \begin{document} \begin{tikzpicture}[ mydot/.style={ circle, fill, inner sep=2pt }, >=latex, ...
1
vote
1answer
34 views

Error with label in a groupplot

I'm trying to convert a subplot from python. I'm using matplotlib2tikz but there's an error I don't understand. The labels overlap the graphs. How can I solve this? This is the code: \documentclass[...
0
votes
0answers
23 views

Logic behind Standalone Precompiled graphics

I want to compile my expensive graphics to a PDF such that I can integrate the files in my main document. I am using pgfplots and groupplots for that purpose. So let's say I have two graphics looking ...
2
votes
1answer
36 views

Pgfplots y label style in grouplot

For some reason, groupplot y labels seem to be very reluctant to styling. How can I rotate the ylabels, shift them a little bit closer to the tick labels, and have a multi-line label in the ...
2
votes
1answer
59 views

pgfplots: trim axis breaks legend positioning

I have a figure that should be centered and contain three plots. One at the top, one at the bottom-left and one at the bottom-right. I used one tikzpicture with a regular begin{axis} for the top plot ...
5
votes
1answer
138 views

How to generate a xy diagram with multiple grouped data sets?

Based on the answer of Stefan Pinnow in 'How to group several charts into one chart?', I tried to generate a diagram with multiple grouped data. Therefore, I modified the diagram but I have some ...
0
votes
1answer
25 views

remove xticks within groupplot

Is there a way to get rid of the xticks between the first and second, and the second and third plots in the groupplot below? Getting rid of the xticks on the inside of each plot (e.g. the ticks ...
2
votes
1answer
26 views

Consistent unit vector across grouped plots

Take the following graph: \documentclass[12pt,border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepgfplotslibrary{groupplots} \begin{document} \begin{tikzpicture} \...
1
vote
2answers
55 views

How to remove extra vertical space when using groupplots

I'm following the example from Axis break in pgfplots However, I found that you get a spurious vertical space on the plots Any way to remove it? And why is it there? \documentclass[convert]{...
1
vote
0answers
41 views

axis on top=false with addplot3 and groupplot, failed placement of colorbar [closed]

The goal is to have the grid below the graph, the axis on top=false is working for addplot but not for addplot3, to fix that I applied the solution proposed in axis on top not respected on addplot3 , ...
1
vote
1answer
61 views

Subcaption spacing inside node

I need to add a subcaption at the side of each plot within a \groupplots environment. After some searching I found this topic here on Tex.SE which shows how to add a subcaption to groupplots. I ...
5
votes
2answers
80 views

tabular with xticks enabled at some plots make one plot moved

I have 4 plots arranged using tabular: \documentclass{scrartcl} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \pgfplotsset{ height=4cm, width=\linewidth*0.5, every axis plot ...
1
vote
0answers
63 views

PGFplots/groupplots: Understanding the commands dominance of the colorbar ticks style

With groupplots When plotting group plots with colorbar, I used major y tick style in the global groupplot options and y tick style in the colorbar style={}. However, for colorbar style, I found ...
4
votes
1answer
87 views

PGFplots: Print groupplots over multiple pages

For this MWE, I have 8 plots where only 6 are printed where the last two are overlooked. So, is there a way to make PGFplots split the groupplots over multiple pages based on the size of the plot/page?...
3
votes
1answer
140 views

create a standalone legend for a grid of plots

This question somewhat relates to Using a pgfplots-style legend in a plain-old tikzpicture I'm looking for a better way to do the following. I'm generating a huge amount of data, and from the data I'...
0
votes
1answer
62 views

pgfplots: bar chart with scale “break” displays undesirable lines

I'm trying to create a bar chart using pgfplots that has a scale "break" in the middle, to reasonably display both small bars and very large ones. Inspired by this answer, I got very close to my ...
3
votes
1answer
55 views

pgfplots - trim axis of groupplots

Using the groupplots library of pgfplots, it is fairly simple to create aligned plots. Now, I want to move the left axes into the margin of my document. Typically, that is, if I had a single plot ...
2
votes
1answer
50 views

PGFplots: Assigning subcaptions to the grouped plots

This is a follow-up question about this answer, where I would like to get the same output using the conventional article class and edit the printed cross-reference text such that, for example, I would ...
2
votes
1answer
40 views

draw common axis in groupplots over two groups

I have a groupplot with size 2 by 1 and want to draw a common axis over both groups. This is what I have \begin{tikzpicture} \begin{groupplot}[ group style={ group name=my plots, ...
2
votes
1answer
145 views

How to create multiple bar charts from one CSV file

I have the following CSV dow_distribution.csv file: DoW,ANZ Vol.,CBA Vol.,MQG Vol.,NAB Vol.,WBC Vol.,AORD Vol.,Total Vol. Monday,3.63,1.93,0.88,3.14,3.56,457.56,470.7 Tuesday,4.11,2.12,0.92,3.64,4.07,...
1
vote
1answer
110 views

How to set the height of a plot using pgfplot?

I thought that the option height passed to \nextgroupplot is what i needed but it's not. As you can probably see in the picture, the second plot isn't two times the height of the first one. So how can ...
1
vote
0answers
21 views

How to draw lines across several subplots created using pgfplotslibrary groupplots [duplicate]

In the following just a minimal example to work with: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.14} \usepgfplotslibrary{groupplots} \begin{document} \begin{tikzpicture} \...
2
votes
2answers
528 views

Conditional color and mark style for scatter plot in PGFPlots

I have a data file that has two columns each containing a class, one for color (QoI) and one for marker type (type). I would like points that have have the same QoI value be the same color, but have a ...
2
votes
1answer
43 views

Adding title to plots in groupplot from file

I am plotting a lower triangular matrix of plots with groupplot, and I would like to add a title to the plots on the diagonal. I generate these plots by reading data using \foreach, and therefore need ...
1
vote
1answer
97 views

Conditional plotting by position in pgfplots groupplot

Edit: I was able to get the layout in the last image following the accepted answer. Just needs some visual tweaking now. I have some issues with compilation with LuaLatex, which I will troubleshoot ...
4
votes
1answer
173 views

Two x-axis, one below the other, in a pgfplots groupplots with two columns

I was following the explained in Two x-axis, one below the other, in a pgfplots groupplots, but I am unable to make the same thing when the plot has two columns. I need to match the 0 Hz tick in the ...
1
vote
0answers
57 views

Reduce horizontal space between columns

I'm using groupplot to generate the following graph: Regarding right graph: If the space between the columns was reduced, then the graph would be more beautiful. Right now the columns are overlapping ...
3
votes
1answer
227 views

Combining Groupplots with discontinuity axis to modify the scale

i want to create a not continuous plot where it is possible to "jump" from 10% to e.g. 50% without a continuous scaling. I think i got most of the solution myself and will post it below. The "problem" ...
1
vote
1answer
157 views

Reduce distance betwen bar groups in pgfplots

I am using pgfplots and groupplot to create grouped bar plots, however the results I get show both groups far from each other, the bars are too thin, and the whole figure doesn't look very elegant. ...
0
votes
2answers
146 views

Groupplot with piecewise constant colorbar

I'm currently in the progress of attempting to combine my custom colorbar with a 2x1 groupplot such that it is shared. I've come quite far with the help of this topic, but arrived at an impasse. The ...
3
votes
1answer
279 views

TikZ: groupplot with nested foreach loops to highlight background of profile

I'm trying to use \groupplots and \pgfplotsinvokeforeach to generate a dynamic picture showing different profiles. Within those profiles I'd like to highlight different ranges (sequences) with a ...
3
votes
1answer
36 views

Joining points in different graphs in groupplots

I (probably naïvely) wrote: \documentclass[border=10pt]{standalone} \usepackage{pgfplots}\pgfplotsset{compat=1.13} \usetikzlibrary{babel, calc, arrows.meta} \usepgfplotslibrary{groupplots} \begin{...
2
votes
1answer
57 views

“declare function” not working in groupplots?

Consider the following MWE: \documentclass[border=10pt]{standalone} \usepackage{pgfplots}\pgfplotsset{compat=1.13} \usetikzlibrary{babel, calc, arrows.meta} \usepgfplotslibrary{groupplots} \begin{...
4
votes
1answer
70 views

Passing arguments to addplot inside groupplots

My question is about basic usage of pgfplots and groupplots. Here's a simple example plotting powers of x: \documentclass[tikz]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \...
2
votes
1answer
389 views

groupplot with two y axes (one at each side of the plot)

I'm trying to do a graph using groupplots where the reader could read the curves considering the left y axis (frequency), or the right one (time), but the right y axis is not obeying its ymin and ymax ...
2
votes
1answer
469 views

pgfplots varying vertical spacing in groupplot

I think the title is self-explanatory, however: I am trying to do a 2 by 3 groupplot (2 columns, 3 rows), but I want the spacing between rows 2 and 3 to be greater than between rows 1 and 2. How can ...
6
votes
1answer
600 views

Two x-axis, one below the other, in a pgfplots groupplots

I have the following plot. I changed the \addplot table command by an \addplot coordinates just to create a minimal example. \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{...
1
vote
1answer
71 views

Chose different symbols to display in a different plots

I have the following code: \begin{figure} \caption{My figure} \label{evolQAS} \centering \begin{tikzpicture}[scale=0.65] \begin{groupplot}[group style={ group name=myplot, ...
3
votes
1answer
417 views

Pgfplots: One Colorbar, two scales

Is it possible for one colorbar to have two different scales? Like mentioned in this question: Matlab colorbar with two axes? I'm trying to include two heatmaps with a colorbar in the center. As both ...
2
votes
0answers
274 views

Missing \endcsname inserted. when \foreach{\nextgroupplot}

I try to generate a lot of plots, organized in a groupplot, automatically. Unfortunately, \foreach seems to have a problem with the \nextgroupplot macro. \documentclass{standalone} \usepackage{...
1
vote
1answer
93 views

Subplots in pgfplots groupplot are unaligned when using the colorbrewer package

I am trying to create a groupplot with PGFPlots where each subplot uses colors from the colorbrewer library. When adding the \pgfplotsset{cycle/list/Set1-5} the two subplots are unaligned and I get ...
2
votes
1answer
113 views

pgfmathsetmacro changes when it shouldn't and vice versa

I try to generate a groupplot dynamically. In general this works except of a variable extracted from a table. \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \...
1
vote
1answer
175 views

groupplots with multiple little bar charts has mystified me

I am trying to create a graphic as beautiful as the one attached. My graphic has 3 columns and 6 rows so a 3x6 matrix. Headaches: Issue 1: ylabels and yticklabels should only appear on the ...
1
vote
2answers
196 views

CSV groupplot expansion within foreach loop

I want to make a groupplot of a number of columns from a CSV file. The CSV file looks like this: a,b,x,y 1,2,3,4 5,6,8,1 9,2,4,5 5,5,1,9 Therefore I made a package that uses the code below to plot ...
6
votes
1answer
377 views

pgfplots ybar with discontinuity decoration on the x-axis line

I'm trying to create a ybar plot with a discontinuity decoration on the x-axis. I've managed to do this somehow with the help of the groupplots library but facing some problems. Is there a way to ...
0
votes
1answer
112 views

Follow-up: Particular bar plot.

This is a follow-up question to: LaTeX barplot: one x-axis, two y-axis In the previous question, I got some useful advice, but I also noticed that my description of the desired bar-plot was not ...
1
vote
1answer
358 views

Is a combined use of subcaption, tikzscale and groupplots possible?

I am just trying to get the "everything in one". I would like to have figures using the groupplot library of pgfplots subcaption to be able to reference to every single plot inside the groupplot. See ...
2
votes
1answer
76 views

Problem with pgfplotstablegetcolumnnamebyindex and math in column name

I am creating a group plot, in which individual plots are added via a macro that pulls data from a text file. This is the macro that adds a plot and legend entries: \newcommand{\plotFourFactorCombis}[...