Minor bug fixes

This commit is contained in:
Kaan Cökerim 2021-06-21 11:28:54 +02:00
parent 7ccad4cb86
commit 5efe75f4ea
2 changed files with 4 additions and 2 deletions

View File

@ -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()

View File

@ -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'))