Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a724652

Browse files
committed
DOC: add whats new entry
1 parent c058015 commit a724652

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Per-subplot keyword arguments in ``subplot_mosaic``
2+
----------------------------------------------------
3+
4+
It is now possible to pass keyword arguments through to the creation to each
5+
specific call to ``add_subplot`` in `.Figure.subplot_mosaic` and
6+
`.pyplot.subplot_mosaic` :
7+
8+
.. plot::
9+
:include-source: true
10+
11+
fig, axd = plt.subplot_mosaic(
12+
"AB;CD",
13+
per_subplot_kw={
14+
"A": {"projection": "polar"},
15+
("C", "D"): {"xlabel": "X Label"},
16+
"B": {"projection": "3d"},
17+
},
18+
)
19+
20+
21+
This is particularly useful for creating mosaics with mixed projections, but
22+
any keyword arguments can be passed through.

0 commit comments

Comments
 (0)