File: api_changes_3.6.1.rst

package info (click to toggle)
matplotlib 3.10.1%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 78,352 kB
  • sloc: python: 147,118; cpp: 62,988; objc: 1,679; ansic: 1,426; javascript: 786; makefile: 104; sh: 53
file content (15 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (2)
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())``.