Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuellar committed Jan 23, 2024
1 parent 6a93873 commit 1e4e266
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def open_file(self, file_name=None, file_dir=None):
if error:
self.output_console.print_output(error["msg"])

mpl_plot_vertical = self.findChild(MplPlotVertical, "mpl_plot_vertical")

if isinstance(plot_data, PlotPoints):
self.plot_points = plot_data
self.output_console.print_output(
Expand All @@ -174,13 +176,16 @@ def open_file(self, file_name=None, file_dir=None):
if not mpl_plot_vertical:
self.add_vertical_settings()
mpl_plot_vertical = self.findChild(MplPlotVertical, "mpl_plot_vertical")
mpl_plot_vertical.set_new_file(
filename=self.plot_horizo.filename.split("/")[-1]
)

self.output_console.print_output(
f"{len(self.plot_horizo.names)} functions."
)

if mpl_plot_vertical:
mpl_plot_vertical.set_new_file(
filename=self.plot_horizo.filename.split("/")[-1]
)

self.canvas_plot.update_plot()
self.last_file_open = file_to_open

Expand Down

0 comments on commit 1e4e266

Please sign in to comment.