mirror of https://gitlab.com/pamhyr/pamhyr2
Results: CustomPlot: Minor change to fix warnings.
parent
f73000056c
commit
04c8f1ae5f
|
|
@ -95,7 +95,7 @@ class CustomPlot(PamhyrPlot):
|
||||||
)
|
)
|
||||||
self._axes[axes] = ax_new
|
self._axes[axes] = ax_new
|
||||||
|
|
||||||
if self._x is "kp":
|
if self._x == "kp":
|
||||||
results = self.data
|
results = self.data
|
||||||
reach = results.river.reach(self._reach)
|
reach = results.river.reach(self._reach)
|
||||||
kp = reach.geometry.get_kp()
|
kp = reach.geometry.get_kp()
|
||||||
|
|
@ -130,7 +130,6 @@ class CustomPlot(PamhyrPlot):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
meter_axes.set_ylim(
|
meter_axes.set_ylim(
|
||||||
bottom=min(0, min(z_min)),
|
bottom=min(0, min(z_min)),
|
||||||
top=max(water_z) + 1
|
top=max(water_z) + 1
|
||||||
|
|
@ -165,7 +164,7 @@ class CustomPlot(PamhyrPlot):
|
||||||
color='r',
|
color='r',
|
||||||
)
|
)
|
||||||
|
|
||||||
elif self._x is "time":
|
elif self._x == "time":
|
||||||
if "elevation" in self._y:
|
if "elevation" in self._y:
|
||||||
logging.info("TODO: time/elevation")
|
logging.info("TODO: time/elevation")
|
||||||
if "water_elevation" in self._y:
|
if "water_elevation" in self._y:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue