
    Je	                     T    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
y)	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y
)Plotsz
    Plots plugin.
    plotsFc                      t        d      S )Nr
   r        =/usr/lib/python3/dist-packages/spyder/plugins/plots/plugin.pyget_namezPlots.get_name    s    zr   c                     t        d      S )Nz2Display, explore and save console generated plots.r   selfs    r   get_descriptionzPlots.get_description$   s    EFFr   c                 $    | j                  d      S )Nhist)create_iconr   s    r   get_iconzPlots.get_icon'   s    ''r   c                 j    | j                         j                  j                  | j                         y )N)
get_widgetsig_figure_loadedconnect_on_first_plotr   s    r   on_initializezPlots.on_initialize*   s%     	++33D4G4GHr   c                 >    | j                         j                         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1r   c                     | j                  d      r| j                  d       | j                         j                  j	                  | j
                         y)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?   sE     ==/0!!e!4
 	++66t7J7J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
      su     D&&'H&&5FLLI"'  G(I	2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 "3 9Lr   