modified method to update plot lines on expert app
This commit is contained in:
parent
fe640dcc3b
commit
3e9ad0b933
1 changed files with 2 additions and 2 deletions
|
|
@ -251,8 +251,8 @@ class ExposureComparissonResult(View):
|
|||
self.update_plot(exp_models, updated_labels)
|
||||
|
||||
def update_plot(self, exp_models: typing.Tuple[models.ExposureModel, ...], labels: typing.Tuple[str, ...]):
|
||||
self.ax.lines.clear()
|
||||
self.ax2.lines.clear()
|
||||
[line.remove() for line in self.ax.lines]
|
||||
[line.remove() for line in self.ax2.lines]
|
||||
start, finish = models_start_end(exp_models)
|
||||
colors=['blue', 'red', 'orange', 'yellow', 'pink', 'purple', 'green', 'brown', 'black' ]
|
||||
ts = np.linspace(start, finish, num=250)
|
||||
|
|
|
|||
Loading…
Reference in a new issue