[change] visual changes in array map (contourf->contour)

This commit is contained in:
Marcel Paffrath 2019-04-12 10:34:20 +02:00
parent aca0cfcabc
commit 1ee3e43451

View File

@ -382,12 +382,12 @@ class Array_map(QtGui.QWidget):
longitudes.append(self.stations_dict[st_id]['longitude']) longitudes.append(self.stations_dict[st_id]['longitude'])
return picks, latitudes, longitudes return picks, latitudes, longitudes
def draw_contour_filled(self, nlevel='50'): def draw_contour_filled(self, nlevel='75'):
# self.test_gradient() # self.test_gradient()
levels = np.linspace(self.get_min_from_picks(), self.get_max_from_picks(), nlevel) levels = np.linspace(self.get_min_from_picks(), self.get_max_from_picks(), nlevel)
self.contourf = self.basemap.contourf(self.longrid, self.latgrid, self.picksgrid_active, self.contourf = self.basemap.contour(self.longrid, self.latgrid, self.picksgrid_active,
levels, latlon=True, zorder=9, alpha=0.7, cmap=self.get_colormap()) levels, latlon=True, zorder=9, alpha=0.7, cmap=self.get_colormap())
def get_colormap(self): def get_colormap(self):
return plt.get_cmap(self.cmaps_box.currentText()) return plt.get_cmap(self.cmaps_box.currentText())