Basemap and Matplotlib - Improving Speed
问题 I'm creating a tool for geospatial visualization of economic data using Matplotlib and Basemap . However, right now, the only way I thought of that gives me enough flexibility is to create a new basemap every time I want to change the data. Here are the relevant parts of the code I'm using: class WorldMapCanvas(FigureCanvas): def __init__(self,data,country_data): self.text_objects = {} self.figure = Figure() self.canvas = FigureCanvas(self.figure) self.axes = self.figure.add_subplot(111) self