How to remove a tool or a model from chart?

Like we use chart.tools.append to be able to add a tool to a chart, is there a way to remove a tool as well? Also, like we use .visible method to hide/unhide a model, is there a way to delete a model, i.e. delete the glyphs plotted on the chart? I wanna delete because if I hide a model, the legends still don’t get removed.

Like we use chart.tools.append to be able to add a tool to a chart, is there a way to remove a tool as well?

Yes, just delete the tool from the chart.tools list in any of the standard ways to remove things from lists in Python.

1 Like

okay, thanks Bryan!