mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
SL: SL edit disable X axis.
This commit is contained in:
1 parent
47ec0ac9b5
commit
e199ac7d5e
1 file changed
+8
-7
@@ -34,18 +34,19 @@ class Plot(APlot):
|
|||||||
self.canvas.axes.cla()
|
self.canvas.axes.cla()
|
||||||
self.canvas.axes.grid(color='grey', linestyle='--', linewidth=0.5)
|
self.canvas.axes.grid(color='grey', linestyle='--', linewidth=0.5)
|
||||||
|
|
||||||
if self.data is None:
|
# self.canvas.axes.set_xlabel(
|
||||||
return
|
# _translate("MainWindow_reach", "X (m)"),
|
||||||
|
# color='green', fontsize=12
|
||||||
self.canvas.axes.set_xlabel(
|
# )
|
||||||
_translate("MainWindow_reach", "X (m)"),
|
self.canvas.axes.axes.get_xaxis().set_visible(False)
|
||||||
color='green', fontsize=12
|
|
||||||
)
|
|
||||||
self.canvas.axes.set_ylabel(
|
self.canvas.axes.set_ylabel(
|
||||||
_translate("MainWindow_reach", "Height (m)"),
|
_translate("MainWindow_reach", "Height (m)"),
|
||||||
color='green', fontsize=12
|
color='green', fontsize=12
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if self.data is None:
|
||||||
|
return
|
||||||
|
|
||||||
x = [0,1]
|
x = [0,1]
|
||||||
z = [0,0]
|
z = [0,0]
|
||||||
sl = self.data.height()
|
sl = self.data.height()
|
||||||
|
|||||||
Reference in new issue
Block a user