feature/port-to-py3 #11
| @ -17,7 +17,7 @@ import matplotlib.patheffects as PathEffects | ||||
| import cartopy.crs as ccrs | ||||
| import matplotlib.pyplot as plt | ||||
| import cartopy.feature as cf | ||||
| from cartopy.io.shapereader import Reader | ||||
| import cartopy.io.shapereader as shpr | ||||
| from cartopy.feature import ShapelyFeature | ||||
| from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER | ||||
| 
 | ||||
| @ -156,6 +156,8 @@ class Array_map(QtWidgets.QWidget): | ||||
|         self.canvas.axes.add_feature(cf.OCEAN) | ||||
|         self.canvas.axes.add_feature(cf.COASTLINE, linewidth=1, edgecolor='gray') | ||||
|         self.canvas.axes.add_feature(cf.BORDERS, alpha=0.7) | ||||
|         self.canvas.axes.add_feature(cf.LAKES, alpha=0.7) | ||||
|         self.canvas.axes.add_feature(cf.RIVERS, linewidth=0.8) | ||||
| 
 | ||||
|         # parallels and meridians | ||||
|         self.add_merid_paral() | ||||
|  | ||||
| @ -1836,7 +1836,7 @@ class PickDlg(QDialog): | ||||
|         self.statusbar = QtWidgets.QStatusBar(self) | ||||
| 
 | ||||
|         # add hotkeys | ||||
|         self._shortcut_space = QtWidgets.QShortcut(QtWidgets.QKeySequence(' '), self) | ||||
|         self._shortcut_space = QtWidgets.QShortcut(QtGui.QKeySequence(' '), self) | ||||
|         self._shortcut_space.activated.connect(self.accept_button.clicked) | ||||
|         # button shortcuts (1 for P-button, 2 for S-button) | ||||
|         # self.p_button.setShortcut(QKeySequence('1')) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user