File: api_changes_3.6.1.rst

package info (click to toggle)
matplotlib 3.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 76,280 kB
  • sloc: python: 133,763; cpp: 66,599; objc: 1,699; ansic: 1,367; javascript: 765; makefile: 153; sh: 48
file content (15 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
API Changes for 3.6.1
=====================

Deprecations
------------

Colorbars for orphaned mappables are deprecated, but no longer raise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Before 3.6.0, Colorbars for mappables that do not have a parent Axes would
steal space from the current Axes. 3.6.0 raised an error on this, but without a
deprecation cycle. For 3.6.1 this is reverted; the current Axes is used, but a
deprecation warning is shown instead. In this undetermined case, users and
libraries should explicitly specify what Axes they want space to be stolen
from: ``fig.colorbar(mappable, ax=plt.gca())``.