def update_graphslicey_from_control(self): """ takes control panel input and changes the current tab's y coordinate for the displayed graph """ self.current_tab.dataview.y = int(self.window.graphslicey.text()) self.current_tab.marker.set_ydata(self.current_tab.dataview.y) plot_tools.plot_graph(self.current_tab.img2, self.current_tab.graph_axes, self.current_tab.data, self.current_tab.dataview)
def update_graph(self): self.marker.set_xdata(self.dataview.x) self.marker.set_ydata(self.dataview.y) plot_tools.plot_graph(self.img2, self.graph_axes, self.data, self.dataview) self.update_control()