``widget_graphsVisual`` ======================================================= .. py:module:: optimeed.visualize.graphs.widget_graphsVisual Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: optimeed.visualize.graphs.widget_graphsVisual.Widget_graphsVisualLite optimeed.visualize.graphs.widget_graphsVisual.Widget_graphsVisual .. py:class:: Widget_graphsVisualLite(theGraphs, **kwargs) Bases: :py:obj:`PyQt5.QtWidgets.QWidget` Widget element to draw a graph. The traces and graphs to draw are defined in :class:`~optimeed.visualize.graphs.Graphs.Graphs` taken as argument. This widget is linked to the excellent third-party library pyqtgraph, under MIT license .. py:attribute:: signal_must_update .. py:attribute:: signal_graph_changed .. py:method:: set_graph_disposition(indexGraph, row=1, col=1, rowspan=1, colspan=1) Change the graphs disposition. :param indexGraph: index of the graph to change :param row: row where to place the graph :param col: column where to place the graph :param rowspan: number of rows across which the graph spans :param colspan: number of columns across which the graph spans :return: .. py:method:: __create_graph(idGraph) .. py:method:: __check_graphs() .. py:method:: on_click(plotDataItem, clicked_points) .. py:method:: update_graphs(singleUpdate=True) This method is used to update the graph. This is fast but NOT safe (especially when working with threads). To limit the risks, please use self.signal_must_update.emit() instead. :param singleUpdate: if set to False, the graph will periodically refres each self.refreshtime .. py:method:: fast_update() Use this method to update the graph in a fast way. NOT THREAD SAFE. .. py:method:: select_folder_and_export() .. py:method:: exportGraphs(filename) Export the graphs .. py:method:: export_txt(filename_txt) .. py:method:: export_svg(filename) .. py:method:: export_tikz(foldername_tikz) .. py:method:: link_axes() .. py:method:: get_graph(idGraph) -> optimeed.visualize.graphs.graphVisual.GraphVisual Get corresponding :class:`~optimeed.visualize.gui.widgets.graphsVisualWidget.GraphVisual.GraphVisual` of the graph idGraph .. py:method:: get_trace(idGraph, idTrace) -> optimeed.visualize.graphs.traceVisual.TraceVisual Get corresponding Tracevisual .. py:method:: keyPressEvent(event) What happens if a key is pressed. R: reset the axes to their default value .. py:method:: delete_graph(idGraph) Delete the graph idGraph .. py:method:: delete() .. py:method:: get_all_graphsVisual() Return a dictionary {idGraph: :class:`~optimeed.visualize.gui.widgets.graphsVisualWidget.GraphVisual.GraphVisual`}. .. py:method:: get_layout_buttons() Get the QGraphicsLayout where it's possible to add buttons, etc. .. py:method:: set_actionOnClick(theActionOnClick) Action to perform when the graph is clicked :param theActionOnClick: :class:`on_graph_click_interface` :return: .. py:method:: set_title(idGraph, titleName, **kwargs) Set title of the graph :param idGraph: id of the graph :param titleName: title to set .. py:class:: Widget_graphsVisual(*args, **kwargs) Bases: :py:obj:`Widget_graphsVisualLite` Create a gui for pyqtgraph with trace selection options, export and action on clic choices .. py:method:: refreshTraceList() Refresh all the traces .. py:method:: set_actions_on_click(actions)