How do I clear a plot's series? #1328
Locked
hoffstadt
announced in
Frequently Asked Questions (FAQ)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Answer
A series is no different than any other Dear PyGui item. Just delete it! The structure of a plot is as follows:
To clear all of a plot's series. You just need to delete the y axes' slot 1 children using
delete_item(...)with children_only set to True and slot set to 1.Example
Reusable Code
Deletes a plot's series given the plot tag.
Resources
Beta Was this translation helpful? Give feedback.
All reactions