wolfhece.GraphNotebook ====================== .. py:module:: wolfhece.GraphNotebook .. autoapi-nested-parse:: Author: HECE - University of Liege, Pierre Archambeau Date: 2024 Copyright (c) 2024 University of Liege. All rights reserved. This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited. Module Contents --------------- .. py:class:: PlotPanel(parent, id=-1, dpi=None, toolbar=True, **kwargs) Bases: :py:obj:`wx.Panel` .. autoapi-inheritance-diagram:: wolfhece.GraphNotebook.PlotPanel :parts: 1 :private-bases: Un seul Panneau du notebook Plusieurs sizers : - sizerfig (horizontal) avec la figure en premier élément --> l'ajout se place à droite - sizer (vertical) avec comme éléments sizerfig et la barre d'outils Matplotlib --> l'ajout se place en dessous .. py:attribute:: figure :type: matplotlib.figure.Figure .. py:attribute:: wx_exists .. py:attribute:: myax :value: None .. py:method:: add_ax(ax3d=False) -> matplotlib.axes.Axes .. py:method:: get_fig_ax(ax3d=False) -> tuple[matplotlib.figure.Figure, matplotlib.axes.Axes] .. py:class:: PlotCS(parent: wx.lib.agw.aui.AuiNotebook, id=-1, dpi=None, mycs: wolfhece.PyCrosssections.profile = None, **kwargs) Bases: :py:obj:`PlotPanel` .. autoapi-inheritance-diagram:: wolfhece.GraphNotebook.PlotCS :parts: 1 :private-bases: Panels de traçage des sections en travers @author Pierre Archambeau .. py:attribute:: mycs :value: None .. py:attribute:: linked_arrays .. py:attribute:: figsuppl .. py:method:: init_UI() .. py:method:: set_linked_arrays(linked_arrays: dict) .. py:method:: set_cs(mycs: wolfhece.PyCrosssections.profile, plot: bool = True) .. py:method:: movegenslider(event) .. py:method:: movebanksslider(event: wx.Event) .. py:method:: plot_cs() .. py:method:: plot_up(event) .. py:method:: plot_down(event) .. py:class:: ManagerInterp(parent, id=-1, dpi=None, **kwargs) Bases: :py:obj:`PlotPanel` .. autoapi-inheritance-diagram:: wolfhece.GraphNotebook.ManagerInterp :parts: 1 :private-bases: Un seul Panneau du notebook Plusieurs sizers : - sizerfig (horizontal) avec la figure en premier élément --> l'ajout se place à droite - sizer (vertical) avec comme éléments sizerfig et la barre d'outils Matplotlib --> l'ajout se place en dessous .. py:attribute:: active_zones :value: None .. py:attribute:: active_zone :value: None .. py:attribute:: active_vec :value: None .. py:attribute:: active_cs :value: None .. py:attribute:: mapviewer :value: None .. py:attribute:: fig_3D :value: None .. py:attribute:: ax_3D :value: None .. py:attribute:: sizernextprev .. py:attribute:: sizerposbank .. py:attribute:: sizertransfer .. py:attribute:: ButPrev .. py:attribute:: ButNext .. py:attribute:: tftHBG .. py:attribute:: tftHBD .. py:attribute:: tftTHA .. py:attribute:: tftGarbage .. py:attribute:: correctz .. py:attribute:: transfernewzone .. py:method:: pointing(gui, accs: wolfhece.PyCrosssections.crosssections, ac_vec: wolfhece.PyVertexvectors.vector) .. py:method:: create_struct() .. py:method:: tft_vec(zonename) .. py:method:: color_acvec() .. py:method:: uncolor_acvec() .. py:method:: plot_curvec() .. py:method:: tha(event) .. py:method:: hbg(event) .. py:method:: hbd(event) .. py:method:: garbage(event) .. py:method:: _transfernewzone(event) .. py:method:: corrz(event) Correction des altitudes du vecteur support .. py:method:: plot_up(event) .. py:method:: plot_down(event) .. py:class:: PlotNotebook(mapviewer=None, id=-1, show=True, framesize=(1024, 768)) Bases: :py:obj:`wx.Panel` .. autoapi-inheritance-diagram:: wolfhece.GraphNotebook.PlotNotebook :parts: 1 :private-bases: Fenêtre contenant potentiellement plusieurs graphiques Matplotlib .. py:attribute:: frame .. py:attribute:: mapviewer :value: None .. py:attribute:: ntb .. py:method:: OnClose(event) .. py:method:: add(name='plot', which='') -> PlotPanel Ajout d'un onglet au notebook L'onglet contient une Figure Matplotlib On retourne la figure du nouvel onglet .. py:method:: getfigure(index=-1, caption='') -> matplotlib.figure.Figure