Removing single/selected traces in a figure

Hi guys

Is there a way to remove single or selected traces from the data property of a figure? I am asking because I dont want to reset the complete figure each time a callback adjusts the data property. It seems that it works for javascript:

Thanks and best regards

1 Like

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

1 Like

ok, thanks @Emmanuelle for the clarification.

best regards

Any update on this in the meantime?