schrodinger.ui.qt.figureoptions module

Module that provides a GUI-based editor for matplotlib’s figure options

Copyright © 2009 Pierre Raybaut Licensed under the terms of the MIT License see the mpl licenses directory for a copy of the license

Additional changes copyright Schrodinger, LLC. All rights reserved.

schrodinger.ui.qt.figureoptions.get_icon(name)
schrodinger.ui.qt.figureoptions.update_figure_legends(axes, legends)

Context manager for assigning the <matplotlib.legend.Legend> object to legends if it is empty. Clear legends list elements after code execution if it was empty. If not cleared, resetting the plot from panel doesn’t remove the linked Legend object.

Parameters
  • axes (matplotlib.axes.Axes) – Axes object of the plot

  • legends (list) – List with <matplotlib.legend.Legend> object added to plot. Could also be an empty list.

Yield

list with Legend object as element

schrodinger.ui.qt.figureoptions.update_legends(legends, all_axes)

Update legend label, markers, postions.

Parameters
  • legends (list) – Elements of list are <matplotlib.legend.Legend> objects.

  • all_axes (list) – Elements of list are AxesSubplot objects

schrodinger.ui.qt.figureoptions.figure_edit(axes, parent=None, allow_log=True, allow_linear=True)

Edit matplotlib figure options