[bugfix] contourf plot not shown in station map. min() max() was not working when nan in list
This commit is contained in:
		
							parent
							
								
									86c76c6f61
								
							
						
					
					
						commit
						4077ec207c
					
				| @ -1 +1 @@ | ||||
| 530a-dirty | ||||
| 86c7-dirty | ||||
|  | ||||
| @ -234,9 +234,9 @@ class map_projection(QtGui.QWidget): | ||||
|                                          self.picks_no_nan, (self.latgrid, self.longrid), method='linear') ################## | ||||
| 
 | ||||
|     def draw_contour_filled(self, nlevel='50'): | ||||
|         levels = np.linspace(min(self.picks_rel), max(self.picks_rel), nlevel) | ||||
|         levels = np.linspace(min(self.picks_no_nan), max(self.picks_no_nan), nlevel) | ||||
|         self.contourf = self.basemap.contourf(self.longrid, self.latgrid, self.picksgrid_no_nan, | ||||
|                                               levels, latlon=True, zorder=9) | ||||
|                                               levels, latlon=True, zorder=9, alpha=0.5) | ||||
| 
 | ||||
|     def scatter_all_stations(self): | ||||
|         self.sc = self.basemap.scatter(self.lon, self.lat, s=50, facecolor='none', latlon=True, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user