Re: [Matplotlib-users] Removing a shapefile after it is loaded

2015-07-01 Thread Benjamin Root
You would need to save the artist object that is returned by drawshapefile() in a list or something. Then, when you want to get rid of it. you can call its `remove()` method or just do a `set_visible(False)` to just hide it. This all requires having a reference to the artist object itself. Does

[Matplotlib-users] Removing a shapefile after it is loaded

2015-07-01 Thread Ronquillo, Edgar Nahum
Hello All, I am working with Basemap and loading several shapefiles using checkboxes in python. However, when I uncheck a checkbox I would like a shapefile to be removed and stay with the other shapefiles that are already loaded. I tried reloading and replotting the whole thing when I remove a