Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9cfec7 commit f92c4bdCopy full SHA for f92c4bd
1 file changed
tutorials/provisional/mosaic.py
@@ -243,6 +243,19 @@ def identify_axes(ax_dict, fontsize=48):
243
)
244
identify_axes(axd)
245
246
+###############################################################################
247
+# Alternatively, you can use the sub-Figure functionality:
248
+
249
+mosaic = """AA
250
+ BC"""
251
+fig = plt.figure(constrained_layout=True)
252
+left, right = fig.subfigures(nrows=1, ncols=2)
253
+axd = left.subplot_mosaic(mosaic)
254
+identify_axes(axd)
255
256
+axd = right.subplot_mosaic(mosaic)
257
258
259
260
###############################################################################
261
# We can also pass through arguments used to create the subplots
0 commit comments