You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArtistList (#18216) is great :) but I realized that I had a few places in my old programs where I was doing e.g. ax.lines + ax.images + ..., which now breaks because there's no ArtistList.__add__. Instead one can do [*ax.lines, *ax.images, ...] but perhaps implementing ArtistList.__add__ may help with the transition?
Proposed Solution
Implement ArtistList.__add__ (which should only add ArtistLists and/or lists, and return plain lists). ArtistList.__iadd__ should probably also be implemented as throwing an exception (or emitting a deprecation warning), as direct modification of ArtistLists is currently being deprecated.
Additional context and prior art
N/A
The text was updated successfully, but these errors were encountered:
ArtistList.__iadd__ should probably also be implemented as throwing an exception (or emitting a deprecation warning), as direct modification of ArtistLists is currently being deprecated.
This already triggers a deprecation warning through ArtistList.insert.
QuLogic
added a commit
to QuLogic/matplotlib
that referenced
this issue
Apr 8, 2021
Problem
ArtistList (#18216) is great :) but I realized that I had a few places in my old programs where I was doing e.g.
ax.lines + ax.images + ...
, which now breaks because there's noArtistList.__add__
. Instead one can do[*ax.lines, *ax.images, ...]
but perhaps implementingArtistList.__add__
may help with the transition?Proposed Solution
Implement
ArtistList.__add__
(which should only add ArtistLists and/or lists, and return plain lists).ArtistList.__iadd__
should probably also be implemented as throwing an exception (or emitting a deprecation warning), as direct modification of ArtistLists is currently being deprecated.Additional context and prior art
N/A
The text was updated successfully, but these errors were encountered: