<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mscneuro.neuro.uni-bremen.de/index.php?action=history&amp;feed=atom&amp;title=Subplot</id>
	<title>Subplot - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mscneuro.neuro.uni-bremen.de/index.php?action=history&amp;feed=atom&amp;title=Subplot"/>
	<link rel="alternate" type="text/html" href="https://mscneuro.neuro.uni-bremen.de/index.php?title=Subplot&amp;action=history"/>
	<updated>2026-06-03T01:21:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://mscneuro.neuro.uni-bremen.de/index.php?title=Subplot&amp;diff=398&amp;oldid=prev</id>
		<title>Davrot at 17:04, 17 October 2025</title>
		<link rel="alternate" type="text/html" href="https://mscneuro.neuro.uni-bremen.de/index.php?title=Subplot&amp;diff=398&amp;oldid=prev"/>
		<updated>2025-10-17T17:04:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:04, 17 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== The goal ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Questions to [mailto:davrot@uni-bremen.de David Rotermund]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Questions to [mailto:davrot@uni-bremen.de David Rotermund]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is a wrapper of Figure.add_subplot which provides additional behavior when working with the implicit API (see the notes section).&amp;lt;/blockquote&amp;gt;&amp;lt;blockquote&amp;gt;*&amp;#039;&amp;#039;&amp;#039;args&amp;#039;&amp;#039;&amp;#039;: int, (int, int, index), or SubplotSpec, default: (1, 1, 1)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is a wrapper of Figure.add_subplot which provides additional behavior when working with the implicit API (see the notes section).&amp;lt;/blockquote&amp;gt;&amp;lt;blockquote&amp;gt;*&amp;#039;&amp;#039;&amp;#039;args&amp;#039;&amp;#039;&amp;#039;: int, (int, int, index), or SubplotSpec, default: (1, 1, 1)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The position of the subplot described by one of * Three integers (nrows, ncols, index). The subplot will take the index position on a grid with nrows rows and ncols columns. index starts at 1 in the upper left corner and increases to the right. index can also be a two-tuple specifying the (first, last) indices (1-based, and including last) of the subplot, e.g., fig.add_subplot(3, 1, (1, 2)) makes a subplot that spans the upper 2/3 of the figure. * A 3-digit integer. The digits are interpreted as if given separately as three single-digit integers, i.e. fig.add_subplot(235) is the same as fig.add_subplot(2, 3, 5). Note that this can only be used if there are no more than 9 subplots.&amp;lt;/blockquote&amp;gt;&amp;lt;syntaxhighlight lang=&quot;python&quot;&amp;gt;import numpy as np&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The position of the subplot described by one of  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Three integers (nrows, ncols, index). The subplot will take the index position on a grid with nrows rows and ncols columns. index starts at 1 in the upper left corner and increases to the right. index can also be a two-tuple specifying the (first, last) indices (1-based, and including last) of the subplot, e.g., fig.add_subplot(3, 1, (1, 2)) makes a subplot that spans the upper 2/3 of the figure.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* A 3-digit integer. The digits are interpreted as if given separately as three single-digit integers, i.e. fig.add_subplot(235) is the same as fig.add_subplot(2, 3, 5). Note that this can only be used if there are no more than 9 subplots.&amp;lt;/blockquote&amp;gt;&amp;lt;syntaxhighlight lang=&quot;python&quot;&amp;gt;import numpy as np&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import matplotlib.pyplot as plt&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import matplotlib.pyplot as plt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-255:rev-398:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Davrot</name></author>
	</entry>
	<entry>
		<id>https://mscneuro.neuro.uni-bremen.de/index.php?title=Subplot&amp;diff=255&amp;oldid=prev</id>
		<title>Davrot: Created page with &quot;== The goal == Questions to [mailto:davrot@uni-bremen.de David Rotermund]  == [https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplot.html matplotlib.pyplot.subplot] == &lt;syntaxhighlight lang=&quot;python&quot;&gt;matplotlib.pyplot.subplot(*args, **kwargs)&lt;/syntaxhighlight&gt;&lt;blockquote&gt;Add an Axes to the current figure or retrieve an existing Axes.  This is a wrapper of Figure.add_subplot which provides additional behavior when working with the implicit API (see the notes...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mscneuro.neuro.uni-bremen.de/index.php?title=Subplot&amp;diff=255&amp;oldid=prev"/>
		<updated>2025-10-17T14:29:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== The goal == Questions to [mailto:davrot@uni-bremen.de David Rotermund]  == [https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplot.html matplotlib.pyplot.subplot] == &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;matplotlib.pyplot.subplot(*args, **kwargs)&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;blockquote&amp;gt;Add an Axes to the current figure or retrieve an existing Axes.  This is a wrapper of Figure.add_subplot which provides additional behavior when working with the implicit API (see the notes...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== The goal ==&lt;br /&gt;
Questions to [mailto:davrot@uni-bremen.de David Rotermund]&lt;br /&gt;
&lt;br /&gt;
== [https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplot.html matplotlib.pyplot.subplot] ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;matplotlib.pyplot.subplot(*args, **kwargs)&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;blockquote&amp;gt;Add an Axes to the current figure or retrieve an existing Axes.&lt;br /&gt;
&lt;br /&gt;
This is a wrapper of Figure.add_subplot which provides additional behavior when working with the implicit API (see the notes section).&amp;lt;/blockquote&amp;gt;&amp;lt;blockquote&amp;gt;*&amp;#039;&amp;#039;&amp;#039;args&amp;#039;&amp;#039;&amp;#039;: int, (int, int, index), or SubplotSpec, default: (1, 1, 1)&lt;br /&gt;
&lt;br /&gt;
The position of the subplot described by one of * Three integers (nrows, ncols, index). The subplot will take the index position on a grid with nrows rows and ncols columns. index starts at 1 in the upper left corner and increases to the right. index can also be a two-tuple specifying the (first, last) indices (1-based, and including last) of the subplot, e.g., fig.add_subplot(3, 1, (1, 2)) makes a subplot that spans the upper 2/3 of the figure. * A 3-digit integer. The digits are interpreted as if given separately as three single-digit integers, i.e. fig.add_subplot(235) is the same as fig.add_subplot(2, 3, 5). Note that this can only be used if there are no more than 9 subplots.&amp;lt;/blockquote&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;import numpy as np&lt;br /&gt;
&lt;br /&gt;
import matplotlib.pyplot as plt&lt;br /&gt;
&lt;br /&gt;
rng = np.random.default_rng()&lt;br /&gt;
&lt;br /&gt;
plt.figure(1)&lt;br /&gt;
plt.subplot(2, 2, 1)&lt;br /&gt;
plt.imshow(rng.random((10, 100)))&lt;br /&gt;
plt.title(&amp;quot;A&amp;quot;)&lt;br /&gt;
plt.subplot(2, 2, 2)&lt;br /&gt;
plt.imshow(rng.random((5, 10)))&lt;br /&gt;
plt.title(&amp;quot;B&amp;quot;)&lt;br /&gt;
plt.subplot(2, 2, 3)&lt;br /&gt;
plt.imshow(rng.random((50, 20)))&lt;br /&gt;
plt.title(&amp;quot;C&amp;quot;)&lt;br /&gt;
plt.subplot(2, 2, 4)&lt;br /&gt;
plt.imshow(rng.random((100, 200)))&lt;br /&gt;
plt.title(&amp;quot;D&amp;quot;)&lt;br /&gt;
plt.show()&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:7 0.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== [https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots_adjust.html matplotlib.pyplot.subplots_adjust] ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;matplotlib.pyplot.subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;blockquote&amp;gt;Adjust the subplot layout parameters.&lt;br /&gt;
&lt;br /&gt;
Unset parameters are left unmodified; initial values are given by &amp;#039;&amp;#039;&amp;#039;rcParams[“figure.subplot.[name]”]&amp;#039;&amp;#039;&amp;#039;.&amp;lt;/blockquote&amp;gt;&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;&amp;#039;left&amp;#039;&amp;#039;&amp;#039;: float, optional&lt;br /&gt;
&lt;br /&gt;
The position of the left edge of the subplots, as a fraction of the figure width.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;right&amp;#039;&amp;#039;&amp;#039;: float, optional&lt;br /&gt;
&lt;br /&gt;
The position of the right edge of the subplots, as a fraction of the figure width.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;bottom&amp;#039;&amp;#039;&amp;#039;: float, optional&lt;br /&gt;
&lt;br /&gt;
The position of the bottom edge of the subplots, as a fraction of the figure height.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;top&amp;#039;&amp;#039;&amp;#039;: float, optional&lt;br /&gt;
&lt;br /&gt;
The position of the top edge of the subplots, as a fraction of the figure height.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;wspace&amp;#039;&amp;#039;&amp;#039;: float, optional&lt;br /&gt;
&lt;br /&gt;
The width of the padding between subplots, as a fraction of the average Axes width.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;hspace&amp;#039;&amp;#039;&amp;#039;: float, optional&lt;br /&gt;
&lt;br /&gt;
The height of the padding between subplots, as a fraction of the average Axes height.&amp;lt;/blockquote&amp;gt;The parameter meanings (and suggested defaults) are:&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;left = 0.125  # the left side of the subplots of the figure​&lt;br /&gt;
right = 0.9   # the right side of the subplots of the figure​&lt;br /&gt;
bottom = 0.1  # the bottom of the subplots of the figure​&lt;br /&gt;
top = 0.9     # the top of the subplots of the figure​&lt;br /&gt;
wspace = 0.2  # the amount of width reserved for space between subplots,​&lt;br /&gt;
              # expressed as a fraction of the average axis width​&lt;br /&gt;
hspace = 0.2  # the amount of height reserved for space between subplots,​&lt;br /&gt;
              # expressed as a fraction of the average axis height&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;import numpy as np&lt;br /&gt;
&lt;br /&gt;
import matplotlib.pyplot as plt&lt;br /&gt;
&lt;br /&gt;
rng = np.random.default_rng()&lt;br /&gt;
&lt;br /&gt;
plt.figure(1)&lt;br /&gt;
plt.subplot(2, 2, 1)&lt;br /&gt;
plt.imshow(rng.random((10, 10)))&lt;br /&gt;
plt.title(&amp;quot;A&amp;quot;)&lt;br /&gt;
plt.subplot(2, 2, 2)&lt;br /&gt;
plt.imshow(rng.random((10, 10)))&lt;br /&gt;
plt.title(&amp;quot;B&amp;quot;)&lt;br /&gt;
plt.subplot(2, 2, 3)&lt;br /&gt;
plt.imshow(rng.random((10, 10)))&lt;br /&gt;
plt.title(&amp;quot;C&amp;quot;)&lt;br /&gt;
plt.subplot(2, 2, 4)&lt;br /&gt;
plt.imshow(rng.random((10, 10)))&lt;br /&gt;
plt.title(&amp;quot;D&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
plt.subplots_adjust(left=0.01, right=1.0, bottom=0.1, top=1.0, wspace=-0.5, hspace=0.4)&lt;br /&gt;
&lt;br /&gt;
plt.show()&amp;lt;/syntaxhighlight&amp;gt;[[File:7 1.png]]&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Davrot</name></author>
	</entry>
</feed>