
    G@d	                     \    d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	  G d dee          Z
dS )	z
Plots Plugin.
    )PluginsSpyderDockablePlugin)ShellConnectMixin_)PlotsWidgetc                       e Zd ZdZdZej        gZej        ej	        gZ
eZeZdZdZed             Zd Zd Zd Zd Zd	 Zd
S )Plotsz
    Plots plugin.
    plotsFc                       t          d          S )Nr
   r        ;lib/python3.11/site-packages/spyder/plugins/plots/plugin.pyget_namezPlots.get_name    s    zzr   c                      t          d          S )Nz2Display, explore and save console generated plots.r   selfs    r   get_descriptionzPlots.get_description$   s    EFFFr   c                 ,    |                      d          S )Nhist)create_iconr   s    r   get_iconzPlots.get_icon'   s    '''r   c                 h    |                                  j                            | j                   d S )N)
get_widgetsig_figure_loadedconnect_on_first_plotr   s    r   on_initializezPlots.on_initialize*   s.     	+33D4GHHHHHr   c                 N    |                                                                  S )z
        Return the current widget displayed at the moment.

        Returns
        -------
        spyder.plugins.plots.widgets.figurebrowser.FigureBrowser
            The current figure browser widget.
        )r   current_widgetr   s    r   r    zPlots.current_widget1   s        //111r   c                     |                      d          r|                     d           |                                 j                            | j                   dS )z5Actions to execute after the first plot is generated.mute_inline_plottingF)force_focusN)get_confswitch_to_pluginr   r   
disconnectr   r   s    r   r   zPlots._on_first_plot?   s\     ==/00 	5!!e!444
 	+66t7JKKKKKr   N)__name__
__module____qualname____doc__NAMEr   IPythonConsoleREQUIRESVariableExplorerHelpTABIFYr   WIDGET_CLASSCONF_SECTION	CONF_FILEDISABLE_ACTIONS_WHEN_HIDDENstaticmethodr   r   r   r   r    r   r   r   r   r
   r
      s          D&'H&5FLLI"'   \G G G( ( (I I I	2 	2 	2L L L L Lr   r
   N)r*   spyder.api.pluginsr   r   spyder.api.shellconnect.mixinsr   spyder.api.translationsr   (spyder.plugins.plots.widgets.main_widgetr   r
   r   r   r   <module>r:      s    
 = < < < < < < < < < < < < < % % % % % % @ @ @ @ @ @9L 9L 9L 9L 9L "3 9L 9L 9L 9L 9Lr   