Hi @Madison01, unfortunately you have to update the figure as a whole, so this is not possible at the moment. You can extend the data of a trace as described here but I donโt think you can remove data. There have been previous discussions of this topic on the forum, see for example Extend (or append) data instead of update
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to delete a particular trace from multiple traces in a graph_objects figure? | 2 | 4757 | November 25, 2022 | |
| Is there a way to remove data from a trace without having to delete the trace in ploltly.js? | 0 | 461 | August 18, 2019 | |
| Delete trace by name from plotly.graph_object | 2 | 2561 | May 25, 2024 | |
| Remove all traces | 3 | 33171 | May 11, 2021 | |
| Removing some traces from scatter plot | 5 | 12606 | April 24, 2023 |