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
I found the documentation of the function set_facecolors() wasn't quite clear to me as in my recent issue I realize set_facecolors() wasn't actually the same as directly modifying get_facecolors() (And the only major difference for me was setting stale=True, probably because we can't set methods to const in Python).
I think it would be wise to explicitly state that the set_* functions mark the elements/axes or anything as "stale" which trigger redrawing when next draw() is invoked.
I was looking into how to add it myself but as it turns out there were a lot of set_* functions. So I might as well ask if this is a good or stupid idea before I do it.
The text was updated successfully, but these errors were encountered:
I think this duplicates #24479 (see in particular #24479 (comment) for concrete proposals). Closing, but feel free to restart the discussion on the other thread.
Documentation Link
https://matplotlib.org/stable/api/collections_api.html#matplotlib.collections.Collection.set_facecolor
Problem
I found the documentation of the function
set_facecolors()
wasn't quite clear to me as in my recent issue I realizeset_facecolors()
wasn't actually the same as directly modifyingget_facecolors()
(And the only major difference for me was settingstale=True
, probably because we can't set methods toconst
in Python).#27216
Suggested improvement
I think it would be wise to explicitly state that the
set_*
functions mark the elements/axes or anything as "stale" which trigger redrawing when nextdraw()
is invoked.I was looking into how to add it myself but as it turns out there were a lot of
set_*
functions. So I might as well ask if this is a good or stupid idea before I do it.The text was updated successfully, but these errors were encountered: