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.ArgumentParser
instance- 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
rcParams
encoding (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
post
processing 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 thercParams
dictionary 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
rcParams
include_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:
None
if exec_ is True, otherwise the createdMainWindow
instance- Return type:
None or
psyplot_gui.main.MainWindow
Subpackages
Submodules
FigureCanvas
FigureManager
FigureWidget
FiguresDock
PsyplotCanvas
PsyplotCanvasManager
new_figure_manager()
new_figure_manager_given_figure()
DockMixin
DockMixin.config_page
DockMixin.create_central_widget_action()
DockMixin.create_view_action()
DockMixin.dock
DockMixin.dock_cls
DockMixin.dock_position
DockMixin.hidden
DockMixin.hide_plugin()
DockMixin.is_shown
DockMixin.position_dock()
DockMixin.remove_plugin()
DockMixin.show_plugin()
DockMixin.show_status_message()
DockMixin.title
DockMixin.to_dock()
ListValidator
LoadFromConsoleButton
PyErrorMessage
StreamToLogger
get_icon()
get_module_path()
is_running_tests()
ConsoleWidget
ConsoleWidget.close()
ConsoleWidget.custom_control
ConsoleWidget.dock_position
ConsoleWidget.eventFilter()
ConsoleWidget.get_current_object()
ConsoleWidget.get_obj()
ConsoleWidget.intro_msg
ConsoleWidget.rc
ConsoleWidget.run_command
ConsoleWidget.run_command_in_shell()
ConsoleWidget.run_script
ConsoleWidget.run_script_in_shell()
ConsoleWidget.show_current_help()
ConsoleWidget.title
ConsoleWidget.update_mp()
ConsoleWidget.update_sp()
IPythonControl
init_asyncio_patch()
ArrayItem
DatasetTree
DatasetTree.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
DatasetTreeItem
FiguresTree
FiguresTreeItem
PlotterList
ProjectContent
ProjectContentWidget
SelectAllButton
SelectNoneButton
escape_html()
DataFrameDock
DataFrameEditor
DataFrameEditor.cell_edited
DataFrameEditor.clear_table()
DataFrameEditor.cleared
DataFrameEditor.close()
DataFrameEditor.dock_cls
DataFrameEditor.hidden
DataFrameEditor.maybe_tabify()
DataFrameEditor.open_dataframe()
DataFrameEditor.rows_inserted
DataFrameEditor.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()
DataFrameModel
DataFrameModel.COLS_TO_LOAD
DataFrameModel.ROWS_TO_LOAD
DataFrameModel.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()
DataFrameView
DataFrameView.change_type()
DataFrameView.contextMenuEvent()
DataFrameView.copy()
DataFrameView.filled
DataFrameView.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()
FrozenTableView
bool_false_check()
DependenciesDialog
DependenciesTree
DimensionsWidget
FormatoptionWidget
FormatoptionWidget.clear_text()
FormatoptionWidget.fill_combos_from_project()
FormatoptionWidget.fill_fmt_combo()
FormatoptionWidget.fmt_combo
FormatoptionWidget.fmt_widget
FormatoptionWidget.fmto
FormatoptionWidget.get_name()
FormatoptionWidget.get_obj()
FormatoptionWidget.get_text()
FormatoptionWidget.group_combo
FormatoptionWidget.help_explorer
FormatoptionWidget.insert_obj()
FormatoptionWidget.line_edit
FormatoptionWidget.load_fmt_widget()
FormatoptionWidget.multiline_button
FormatoptionWidget.no_fmtos_update
FormatoptionWidget.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.shell
FormatoptionWidget.show_all_fmt_info()
FormatoptionWidget.show_fmt_info()
FormatoptionWidget.text_edit
FormatoptionWidget.toggle_line_edit()
HelpExplorer
HelpMixin
SphinxThread
TextHelp
UrlBrowser
UrlBrowser.browse()
UrlBrowser.bt_ahead
UrlBrowser.bt_back
UrlBrowser.bt_lock
UrlBrowser.bt_lock_default
UrlBrowser.bt_refresh
UrlBrowser.bt_url_lock
UrlBrowser.bt_url_lock_default
UrlBrowser.button_box
UrlBrowser.completed
UrlBrowser.default_url
UrlBrowser.doc_urls
UrlBrowser.html
UrlBrowser.tb_url
UrlBrowser.toogle_lock()
UrlBrowser.toogle_url_lock()
UrlBrowser.update_url_lock_from_rc()
UrlBrowser.url_changed()
UrlBrowser.url_like_re
UrlBrowser.vbox
UrlCombo
UrlHelp
UrlHelp.browse()
UrlHelp.bt_url_menus
UrlHelp.can_document_object
UrlHelp.can_show_rst
UrlHelp.close()
UrlHelp.describe_object()
UrlHelp.get_doc()
UrlHelp.get_objtype()
UrlHelp.header()
UrlHelp.is_importable()
UrlHelp.object_descriptor
UrlHelp.process_docstring()
UrlHelp.reset_sphinx()
UrlHelp.show_help()
UrlHelp.show_intro()
UrlHelp.show_rst()
UrlHelp.sphinx_thread
UrlHelp.toogle_connect_console()
UrlHelp.toogle_url_lock()
UrlHelp.update_connect_console()
UrlHelp.url_changed()
file2html()
html2file()
MainWindow
MainWindow.about()
MainWindow.add_mp_to_menu()
MainWindow.central_widget_key
MainWindow.change_cwd()
MainWindow.close()
MainWindow.closeEvent()
MainWindow.console
MainWindow.current_shortcuts
MainWindow.dataframeeditors
MainWindow.default_shortcuts
MainWindow.default_widths
MainWindow.dockwidgets
MainWindow.ds_tree
MainWindow.edit_preferences()
MainWindow.eventually_add_mp_to_menu()
MainWindow.excepthook()
MainWindow.export_mp()
MainWindow.export_sp()
MainWindow.figures
MainWindow.figures_tree
MainWindow.fmt_widget
MainWindow.focus_on_console()
MainWindow.help_explorer
MainWindow.load_mp_preset()
MainWindow.load_sp_preset()
MainWindow.logger
MainWindow.new_data_frame_editor()
MainWindow.new_plots()
MainWindow.open_external
MainWindow.open_external_files()
MainWindow.open_files()
MainWindow.open_files_server
MainWindow.open_mp()
MainWindow.open_sp()
MainWindow.project_content
MainWindow.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()
mainwindow
ArrayNameItemDelegate
ArrayNameValidator
ArrayTable
ArrayTable.DIMS_TT
ArrayTable.VARIABLE_TT
ArrayTable.add_single_subplot()
ArrayTable.add_subplots()
ArrayTable.arr_col
ArrayTable.arr_names_dict
ArrayTable.axes
ArrayTable.axes_col
ArrayTable.axes_creator_action()
ArrayTable.axes_info()
ArrayTable.axes_patt
ArrayTable.check_array()
ArrayTable.check_arrays()
ArrayTable.check_col
ArrayTable.check_item()
ArrayTable.current_names
ArrayTable.dropEvent()
ArrayTable.get_all_rows()
ArrayTable.insert_array()
ArrayTable.next_available_name()
ArrayTable.prefer_list
ArrayTable.remove_arrays()
ArrayTable.sep
ArrayTable.set_columns()
ArrayTable.set_pm()
ArrayTable.setup_from_ds()
ArrayTable.showAxesCreator()
ArrayTable.subplot_patt
ArrayTable.update_other_items()
ArrayTable.update_selected()
ArrayTable.var_col
ArrayTable.vnames
AxesCreator
AxesCreatorCollection
AxesSelector
AxesViewer
CoordComboBox
CoordComboBox.close_popups
CoordComboBox.eventFilter()
CoordComboBox.handleItemPressed()
CoordComboBox.hidePopup()
CoordComboBox.hide_anyway()
CoordComboBox.leftclick
CoordComboBox.load_coord()
CoordComboBox.mouseDoubleClickEvent()
CoordComboBox.mousePressEvent()
CoordComboBox.right_click()
CoordComboBox.use_coords
CoordsTable
DragDropTable
PlotCreator
PlotCreator.NO_PM_TT
PlotCreator.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()
SubplotCreator
VariableItemDelegate
VariablesTable
ConfigPage
GuiRcParamsWidget
Prefences
PsyRcParamsWidget
RcParamsTree
RcParamsTree.apply_changes()
RcParamsTree.changed_rc()
RcParamsTree.initialize()
RcParamsTree.is_valid
RcParamsTree.open_menu()
RcParamsTree.propose_changes
RcParamsTree.rc
RcParamsTree.select_changes()
RcParamsTree.selected_rc()
RcParamsTree.set_icon_func()
RcParamsTree.set_valid()
RcParamsTree.top_level_items
RcParamsTree.valid
RcParamsTree.validChanged
RcParamsTree.value_col
RcParamsWidget