Hi, @rcomer.
Could you please clarify, what is the proper way to change the following code (which was removing contours from plot):
if isinstance(contour, ContourSet):
for lineset in contour.collections:
lineset.remove()
The problem for me is that if I try to replace collection with get_paths, then remove method does not work on path.
If I try removing path via del (for example, as follows):
for k, path in enumerate(contour.get_paths()):
del contour.get_paths()[k]
then the contour to be removed remains in the image.
Many thanks in advance