psyplot_gui package
psyplot-gui
Graphical user interface for the psyplot package
Classes:
|
Data:
A boolean variable to check if the GUI is tested. |
Functions:
|
Return a parser to make that can be used to make plots or open files from the command line |
|
|
|
Simple socket client used to send the args passed to the psyplot executable to an already running instance. |
|
Eventually start the QApplication or only make a plot |
- class psyplot_gui.ListGuiPluginsAction(option_strings, dest='==SUPPRESS==', nargs=None, default='==SUPPRESS==', **kwargs)[source]
Bases:
Action
- psyplot_gui.UNIT_TESTING = 'true'
A boolean variable to check if the GUI is tested. This is set automatically true on CI services
- psyplot_gui.get_parser(create=True)[source]
Return a parser to make that can be used to make plots or open files from the command line
- Returns:
The
argparse.ArgumentParserinstance- Return type:
psyplot.parser.FuncArgParser
See also
psyplot.main.get_parser,psyplot.parser.FuncArgParser,psyplot.main.main
- psyplot_gui.send_files_to_psyplot(callback, fnames, project, *args)[source]
Simple socket client used to send the args passed to the psyplot executable to an already running instance.
This function has to most parts been taken from spyder
- psyplot_gui.start_app(fnames=[], name=[], dims=None, plot_method=None, output=None, project=None, engine=None, formatoptions=None, tight=False, encoding=None, enable_post=False, seaborn_style=None, output_project=None, concat_dim=None, chname={}, backend=False, new_instance=False, rc_file=None, rc_gui_file=None, include_plugins=None, exclude_plugins=[], offline=False, pwd=None, script=None, command=None, exec_=True, use_all=False, callback=None, preset=None, opengl_implementation=None, webengineview=True, decoder=None)[source]
Eventually start the QApplication or only make a plot
- Parameters:
fnames (list of str) – Either the filenames to show, or, if the project parameter is set, the a list of ,-separated filenames to make a mapping from the original filename to a new one
name (list of str) – The variable names to plot if the output parameter is set
dims (dict) – A mapping from coordinate names to integers if the project is not given
plot_method (str) – The name of the plot_method to use
output (str or list of str) – If set, the data is loaded and the figures are saved to the specified filename and now graphical user interface is shown
project (str) – If set, the project located at the given file name is loaded
engine (str) – The engine to use for opening the dataset (see
psyplot.data.open_dataset())formatoptions (dict) – A dictionary of formatoption that is applied to the data visualized by the chosen plot_method
tight (bool) – If True/set, it is tried to figure out the tight bbox of the figure and adjust the paper size of the output to it
rc_file (str) – The path to a yaml configuration file that can be used to update the
rcParamsencoding (str) – The encoding to use for loading the project. If None, it is automatically determined by pickle. Note: Set this to
'latin1'if using a project created with python2 on python3.enable_post (bool) – Enable the
postprocessing formatoption. If True/set, post processing scripts are enabled in the given project. Only set this if you are sure that you can trust the given project file because it may be a security vulnerability.seaborn_style (str) – The name of the style of the seaborn package that can be used for the
seaborn.set_style()functionoutput_project (str) – The name of a project file to save the project to
concat_dim (str) – The concatenation dimension if multiple files in fnames are provided
chname (dict) – A mapping from variable names in the project to variable names in the datasets that should be used instead
preset (str) – The filename or identifier of a preset. If the given preset is the path to an existing yaml file, it will be loaded. Otherwise we look up the preset in the psyplot configuration directory (see
get_configdir()).decoder (str) – Keyword arguments for the decoder.
backend (None or str) – The backend to use. By default, the
'gui.backend'key in thercParamsdictionary is used. Otherwise it can be None to use the standard matplotlib backend or a string identifying the backendnew_instance (bool) – If True/set and the output parameter is not set, a new application is created
rc_gui_file (str) – The path to a yaml configuration file that can be used to update the
rcParamsinclude_plugins (list of str) – The plugin widget to include. Can be either None to load all that are not explicitly excluded by exclude_plugins or a list of plugins to include. List items can be either module names, plugin names or the module name and widget via
'<module_name>:<widget>'exclude_plugins (list of str) – The plugin widgets to exclude. Can be either
'all'to exclude all plugins or a list like in include_plugins.offline (bool) – If True/set, psyplot will be started in offline mode without intersphinx and remote access for the help explorer
pwd (str) – The path to the working directory to use. Note if you do not provide any fnames or project, but set the pwd, it will switch the pwd of the current GUI.
script (str) – The path to a python script that shall be run in the GUI. If the GUI is already running, the commands will be executed in this GUI.
command (str) – Python commands that shall be run in the GUI. If the GUI is already running, the commands will be executed in this GUI
use_all (bool) – If True, use all variables. Note that this is the default if the output is specified and not name
exec (bool) – If True, the main loop is entered.
callback (str) – A unique identifier for the method that should be used if psyplot is already running. Set this parameter to None to avoid sending
opengl_implementation ({'software', 'desktop', 'gles', 'automatic'}) – OpenGL implementation to pass to Qt. Possible options are ‘software’, ‘desktop’, ‘gles’ and ‘automatic’ (which let’s PyQt decide).
webengineview (bool) – If True (default), use an HTML help widget. This might not be available for all builds of PyQt5 under all circumstances. If not set, the rcParams key
'help_explorer.use_webengineview'is used.
- Returns:
Noneif exec_ is True, otherwise the createdMainWindowinstance- Return type:
None or
psyplot_gui.main.MainWindow
Subpackages
Submodules
FigureCanvasFigureManagerFigureWidgetFiguresDockPsyplotCanvasPsyplotCanvasManagernew_figure_manager()new_figure_manager_given_figure()DockMixinDockMixin.config_pageDockMixin.create_central_widget_action()DockMixin.create_view_action()DockMixin.dockDockMixin.dock_clsDockMixin.dock_positionDockMixin.hiddenDockMixin.hide_plugin()DockMixin.is_shownDockMixin.position_dock()DockMixin.remove_plugin()DockMixin.show_plugin()DockMixin.show_status_message()DockMixin.titleDockMixin.to_dock()
ListValidatorLoadFromConsoleButtonPyErrorMessageStreamToLoggerget_icon()get_module_path()is_running_tests()ConsoleWidgetConsoleWidget.close()ConsoleWidget.custom_controlConsoleWidget.dock_positionConsoleWidget.eventFilter()ConsoleWidget.get_current_object()ConsoleWidget.get_obj()ConsoleWidget.intro_msgConsoleWidget.rcConsoleWidget.run_commandConsoleWidget.run_command_in_shell()ConsoleWidget.run_scriptConsoleWidget.run_script_in_shell()ConsoleWidget.show_current_help()ConsoleWidget.titleConsoleWidget.update_mp()ConsoleWidget.update_sp()
IPythonControlinit_asyncio_patch()ArrayItemDatasetTreeDatasetTree.add_datasets_from_cp()DatasetTree.create_dataset_tree()DatasetTree.expand_items()DatasetTree.expanded_items()DatasetTree.is_coord()DatasetTree.is_variable()DatasetTree.load_variable_desc()DatasetTree.make_plot()DatasetTree.open_menu()DatasetTree.refresh_items()DatasetTree.set_columns()DatasetTree.tooltips
DatasetTreeItemFiguresTreeFiguresTreeItemPlotterListProjectContentProjectContentWidgetSelectAllButtonSelectNoneButtonescape_html()DataFrameDockDataFrameEditorDataFrameEditor.cell_editedDataFrameEditor.clear_table()DataFrameEditor.clearedDataFrameEditor.close()DataFrameEditor.dock_clsDataFrameEditor.hiddenDataFrameEditor.maybe_tabify()DataFrameEditor.open_dataframe()DataFrameEditor.rows_insertedDataFrameEditor.set_df()DataFrameEditor.set_dtypes_changeable()DataFrameEditor.set_index_editable()DataFrameEditor.set_lbl_size_text()DataFrameEditor.to_dock()DataFrameEditor.toggle_fmt_button()DataFrameEditor.update_format()DataFrameEditor.update_index_editable()
DataFrameModelDataFrameModel.COLS_TO_LOADDataFrameModel.ROWS_TO_LOADDataFrameModel.bgcolor()DataFrameModel.can_fetch_more()DataFrameModel.columnCount()DataFrameModel.data()DataFrameModel.fetch_more()DataFrameModel.flags()DataFrameModel.get_format()DataFrameModel.get_value()DataFrameModel.headerData()DataFrameModel.insertRow()DataFrameModel.insertRows()DataFrameModel.reset()DataFrameModel.rowCount()DataFrameModel.setData()DataFrameModel.set_format()DataFrameModel.sort()DataFrameModel.update_df_index()
DataFrameViewDataFrameView.change_type()DataFrameView.contextMenuEvent()DataFrameView.copy()DataFrameView.filledDataFrameView.insert_row_above_selection()DataFrameView.insert_row_below_selection()DataFrameView.load_more_data()DataFrameView.moveCursor()DataFrameView.reset_model()DataFrameView.resizeEvent()DataFrameView.scrollTo()DataFrameView.set_df()DataFrameView.set_index()DataFrameView.setup_menu()DataFrameView.sortByColumn()DataFrameView.update_section_height()DataFrameView.update_section_width()
FrozenTableViewbool_false_check()DependenciesDialogDependenciesTreeDimensionsWidgetFormatoptionWidgetFormatoptionWidget.clear_text()FormatoptionWidget.fill_combos_from_project()FormatoptionWidget.fill_fmt_combo()FormatoptionWidget.fmt_comboFormatoptionWidget.fmt_widgetFormatoptionWidget.fmtoFormatoptionWidget.get_name()FormatoptionWidget.get_obj()FormatoptionWidget.get_text()FormatoptionWidget.group_comboFormatoptionWidget.help_explorerFormatoptionWidget.insert_obj()FormatoptionWidget.line_editFormatoptionWidget.load_fmt_widget()FormatoptionWidget.multiline_buttonFormatoptionWidget.no_fmtos_updateFormatoptionWidget.refill_from_rc()FormatoptionWidget.remove_fmt_widget()FormatoptionWidget.reset_fmt_widget()FormatoptionWidget.run_code()FormatoptionWidget.set_current_fmt_value()FormatoptionWidget.set_fmto()FormatoptionWidget.set_obj()FormatoptionWidget.setup_fmt_completion_model()FormatoptionWidget.shellFormatoptionWidget.show_all_fmt_info()FormatoptionWidget.show_fmt_info()FormatoptionWidget.text_editFormatoptionWidget.toggle_line_edit()
HelpExplorerHelpMixinSphinxThreadTextHelpUrlBrowserUrlBrowser.browse()UrlBrowser.bt_aheadUrlBrowser.bt_backUrlBrowser.bt_lockUrlBrowser.bt_lock_defaultUrlBrowser.bt_refreshUrlBrowser.bt_url_lockUrlBrowser.bt_url_lock_defaultUrlBrowser.button_boxUrlBrowser.completedUrlBrowser.default_urlUrlBrowser.doc_urlsUrlBrowser.htmlUrlBrowser.tb_urlUrlBrowser.toogle_lock()UrlBrowser.toogle_url_lock()UrlBrowser.update_url_lock_from_rc()UrlBrowser.url_changed()UrlBrowser.url_like_reUrlBrowser.vbox
UrlComboUrlHelpUrlHelp.browse()UrlHelp.bt_url_menusUrlHelp.can_document_objectUrlHelp.can_show_rstUrlHelp.close()UrlHelp.describe_object()UrlHelp.get_doc()UrlHelp.get_objtype()UrlHelp.header()UrlHelp.is_importable()UrlHelp.object_descriptorUrlHelp.process_docstring()UrlHelp.reset_sphinx()UrlHelp.show_help()UrlHelp.show_intro()UrlHelp.show_rst()UrlHelp.sphinx_threadUrlHelp.toogle_connect_console()UrlHelp.toogle_url_lock()UrlHelp.update_connect_console()UrlHelp.url_changed()
file2html()html2file()MainWindowMainWindow.about()MainWindow.add_mp_to_menu()MainWindow.central_widget_keyMainWindow.change_cwd()MainWindow.close()MainWindow.closeEvent()MainWindow.consoleMainWindow.current_shortcutsMainWindow.dataframeeditorsMainWindow.default_shortcutsMainWindow.default_widthsMainWindow.dockwidgetsMainWindow.ds_treeMainWindow.edit_preferences()MainWindow.eventually_add_mp_to_menu()MainWindow.excepthook()MainWindow.export_mp()MainWindow.export_sp()MainWindow.figuresMainWindow.figures_treeMainWindow.fmt_widgetMainWindow.focus_on_console()MainWindow.help_explorerMainWindow.load_mp_preset()MainWindow.load_sp_preset()MainWindow.loggerMainWindow.new_data_frame_editor()MainWindow.new_plots()MainWindow.open_externalMainWindow.open_external_files()MainWindow.open_files()MainWindow.open_files_serverMainWindow.open_mp()MainWindow.open_sp()MainWindow.project_contentMainWindow.register_shortcut()MainWindow.reset_rcParams()MainWindow.run()MainWindow.run_app()MainWindow.save_mp()MainWindow.save_mp_preset()MainWindow.save_sp()MainWindow.save_sp_preset()MainWindow.set_central_widget()MainWindow.setup_default_layout()MainWindow.show_dependencies()MainWindow.start_open_files_server()MainWindow.update_project_action()
mainwindowArrayNameItemDelegateArrayNameValidatorArrayTableArrayTable.DIMS_TTArrayTable.VARIABLE_TTArrayTable.add_single_subplot()ArrayTable.add_subplots()ArrayTable.arr_colArrayTable.arr_names_dictArrayTable.axesArrayTable.axes_colArrayTable.axes_creator_action()ArrayTable.axes_info()ArrayTable.axes_pattArrayTable.check_array()ArrayTable.check_arrays()ArrayTable.check_colArrayTable.check_item()ArrayTable.current_namesArrayTable.dropEvent()ArrayTable.get_all_rows()ArrayTable.insert_array()ArrayTable.next_available_name()ArrayTable.prefer_listArrayTable.remove_arrays()ArrayTable.sepArrayTable.set_columns()ArrayTable.set_pm()ArrayTable.setup_from_ds()ArrayTable.showAxesCreator()ArrayTable.subplot_pattArrayTable.update_other_items()ArrayTable.update_selected()ArrayTable.var_colArrayTable.vnames
AxesCreatorAxesCreatorCollectionAxesSelectorAxesViewerCoordComboBoxCoordComboBox.close_popupsCoordComboBox.eventFilter()CoordComboBox.handleItemPressed()CoordComboBox.hidePopup()CoordComboBox.hide_anyway()CoordComboBox.leftclickCoordComboBox.load_coord()CoordComboBox.mouseDoubleClickEvent()CoordComboBox.mousePressEvent()CoordComboBox.right_click()CoordComboBox.use_coords
CoordsTableDragDropTablePlotCreatorPlotCreator.NO_PM_TTPlotCreator.add_new_ds()PlotCreator.close()PlotCreator.connect_combo_boxes()PlotCreator.create_plots()PlotCreator.fill_ds_combo()PlotCreator.fill_fmt_tree()PlotCreator.fill_plot_method_combo()PlotCreator.get_ds()PlotCreator.insert_array()PlotCreator.insert_array_from_combo()PlotCreator.keyPressEvent()PlotCreator.load_preset()PlotCreator.open_data()PlotCreator.open_dataset()PlotCreator.reset_comboboxes()PlotCreator.set_decoder()PlotCreator.set_ds()PlotCreator.set_pm()PlotCreator.set_preset()PlotCreator.setup_subplot()PlotCreator.setup_subplots()PlotCreator.show_pm_info()PlotCreator.switch2ds()PlotCreator.toggle_close_popups()
SubplotCreatorVariableItemDelegateVariablesTableConfigPageGuiRcParamsWidgetPrefencesPsyRcParamsWidgetRcParamsTreeRcParamsTree.apply_changes()RcParamsTree.changed_rc()RcParamsTree.initialize()RcParamsTree.is_validRcParamsTree.open_menu()RcParamsTree.propose_changesRcParamsTree.rcRcParamsTree.select_changes()RcParamsTree.selected_rc()RcParamsTree.set_icon_func()RcParamsTree.set_valid()RcParamsTree.top_level_itemsRcParamsTree.validRcParamsTree.validChangedRcParamsTree.value_col
RcParamsWidget