mirror of https://gitlab.com/pamhyr/pamhyr2
debug GL in resluts
parent
64c99d46d4
commit
5adb0bdee5
|
|
@ -150,8 +150,17 @@ class PlotAC(PamhyrPlot):
|
||||||
self.annotation = []
|
self.annotation = []
|
||||||
self.cgl, self.igl = reach.geometry.compute_guidelines()
|
self.cgl, self.igl = reach.geometry.compute_guidelines()
|
||||||
|
|
||||||
lcomplete = list(self.cgl)
|
# we make sure that the lines are in the left-to-right order
|
||||||
lincomplete = list(self.igl)
|
lcomplete = [
|
||||||
|
x.name
|
||||||
|
for x in profile.geometry.named_points()
|
||||||
|
if x.name in self.cgl
|
||||||
|
]
|
||||||
|
lincomplete = [
|
||||||
|
x.name
|
||||||
|
for x in profile.geometry.named_points()
|
||||||
|
if x.name in self.igl
|
||||||
|
]
|
||||||
|
|
||||||
self.color_complete_gl = self.colors
|
self.color_complete_gl = self.colors
|
||||||
self.color_incomplete_gl = 2 * ["grey"]
|
self.color_incomplete_gl = 2 * ["grey"]
|
||||||
|
|
@ -171,7 +180,7 @@ class PlotAC(PamhyrPlot):
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
color = self.color_incomplete_gl[
|
color = self.color_incomplete_gl[
|
||||||
lincomplete.index(txt)
|
lincomplete.index(txt) % len(self.color_incomplete_gl)
|
||||||
]
|
]
|
||||||
|
|
||||||
annotation = self.canvas.axes.annotate(
|
annotation = self.canvas.axes.annotate(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue