mirror of https://gitlab.com/pamhyr/pamhyr2
Pamhyr: Fix Pep8.
parent
c58dc5785a
commit
5226836211
|
|
@ -36,9 +36,9 @@ class PamhyrPlot(APlot):
|
||||||
colors = list(mplcolors.TABLEAU_COLORS)
|
colors = list(mplcolors.TABLEAU_COLORS)
|
||||||
|
|
||||||
plot_default_kargs = {
|
plot_default_kargs = {
|
||||||
"lw" : 1.,
|
"lw": 1.,
|
||||||
"markersize" : 3,
|
"markersize": 3,
|
||||||
"marker" : "+",
|
"marker": "+",
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, data=None,
|
def __init__(self, data=None,
|
||||||
|
|
@ -181,7 +181,6 @@ class PamhyrPlot(APlot):
|
||||||
|
|
||||||
self.toolbar_update()
|
self.toolbar_update()
|
||||||
|
|
||||||
|
|
||||||
def toolbar_update(self):
|
def toolbar_update(self):
|
||||||
if self._toolbar is not None:
|
if self._toolbar is not None:
|
||||||
self._toolbar.update()
|
self._toolbar.update()
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,6 @@ class PamhyrPlotToolbar(NavigationToolbar2QT):
|
||||||
def add_tool_separator(self):
|
def add_tool_separator(self):
|
||||||
self.toolitems.append((None, None, None, None))
|
self.toolitems.append((None, None, None, None))
|
||||||
|
|
||||||
|
|
||||||
def init_tool_home(self):
|
def init_tool_home(self):
|
||||||
self.toolitems.append(
|
self.toolitems.append(
|
||||||
(
|
(
|
||||||
|
|
@ -171,9 +170,9 @@ class PamhyrPlotToolbar(NavigationToolbar2QT):
|
||||||
icon_btn_global_view = QtGui.QIcon()
|
icon_btn_global_view = QtGui.QIcon()
|
||||||
icon_btn_global_view.addPixmap(
|
icon_btn_global_view.addPixmap(
|
||||||
QtGui.QPixmap(
|
QtGui.QPixmap(
|
||||||
os.path.abspath(
|
os.path.abspath(
|
||||||
f"{file_path}/../../ui/ressources/zoom_fit.png"
|
f"{file_path}/../../ui/ressources/zoom_fit.png"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -250,6 +250,7 @@ def old_pamhyr_date_to_timestamp(date: str):
|
||||||
|
|
||||||
return ts
|
return ts
|
||||||
|
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# COMMAND LINE PARSER #
|
# COMMAND LINE PARSER #
|
||||||
#######################
|
#######################
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue