arpes.plotting.interactive.ImageTool
- class arpes.plotting.interactive.ImageTool(curs=None, **kwargs)[source]
Implements a 2D and 3D data browser via Bokeh.
Methods
__delattr__(name, /)Implement delattr(self, name).
__dir__()Default dir() implementation.
__eq__(value, /)Return self==value.
__format__(format_spec, /)Default object formatter.
__ge__(value, /)Return self>=value.
__getattribute__(item)Allow more convenient use of attributes from self.app_context.
__gt__(value, /)Return self>value.
__hash__()Return hash(self).
__init__([curs])Load application and fetch marginal sizes from settings.
__init_subclass__This method is called when a class is subclassed.
__le__(value, /)Return self<=value.
__lt__(value, /)Return self<value.
__ne__(value, /)Return self!=value.
__new__(**kwargs)__reduce__()Helper for pickle.
__reduce_ex__(protocol, /)Helper for pickle.
__repr__()Return repr(self).
__setattr__(name, value)Overrides __setattr__ to handle setting debug info into a div so it's visible.
__sizeof__()Size of object in memory, in bytes.
__str__()Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
add_cursor_lines(figure)Adds the standard X and Y cursors to a figure.
deserialize(json_data)Loads the cursor position from a saved copy of the tool.
init_bokeh_server()Tells Bokeh to send output to Jupyter with a relatively long timeout.
load_app()load_settings(**kwargs)Loads a user's settings for interactive tools into the tool.
make_tool(arr[, notebook_url, notebook_handle])Starts the Bokeh application in accordance with the Bokeh app docs.
prep_image(image_arr)Optionally, postprocess data before showing it.
save_app()serialize()Saves the current cursor position so it can be loaded later.
tool_handler(doc)Delegates widget creation to 2D and 3D code based on array dimensions.
tool_handler_2d(doc)Application definition and widgets for the 2D data browser.
tool_handler_3d(doc)Application and widget definitions for the 3D data browser.
update_colormap_for(plot_name)Sets the colormap on the plot plot_name to have an appropriate range.
Attributes
__abstractmethods____dict____doc____module____slots____weakref__list of weak references to the object (if defined)
_abc_impl_cursor_cursor_dims_cursor_info_cursor_lines_debug_div_horiz_cursor_x_horiz_cursor_y_vert_cursor_x_vert_cursor_yauto_rebinauto_zero_nanscursorThe location of the cursor in the data volume.
cursor_dictThe location of the cursor in the data volume, as a dim=value dict.
cursor_dimsThe dimesnion names for the current cursor order.
debug_divA debug element which makes developing tools with Bokeh more straightforward.
default_paletteResolves user settings for a color palette to an actual matplotlib palette.
filenamepathrebin_size