imgui_datascience package¶
Submodules¶
imgui_datascience.imgui_cv module¶
-
imgui_datascience.imgui_cv.image(img, width=None, height=None, title='', image_adjustments=None, always_refresh=False)[source]¶
-
imgui_datascience.imgui_cv.image_explorer(image, width=None, height=None, title='', zoom_key='', hide_buttons=False, image_adjustments=None)[source]¶ Parameters: - image_adjustments –
- hide_buttons –
- image – opencv / np image.
- width –
- height –
- title – an optional title
- zoom_key – Set the same zoom_key for two image if you want to link their zoom settings
Returns: mouse location in image coordinates (None if the mouse is outside of the image)
imgui_datascience.imgui_datascience module¶
Main module.
imgui_datascience.imgui_ext module¶
-
class
imgui_datascience.imgui_ext.FontId[source]¶ Bases:
object-
Font_10= 0¶
-
Font_14= 1¶
-
Font_18= 2¶
-
Font_22= 3¶
-
Font_26= 4¶
-
Font_30= 5¶
-
-
class
imgui_datascience.imgui_ext.TogglableWindowParams(window_title='', initial_show=True, size=(0, 0), pos=(0, 0))[source]¶
imgui_datascience.imgui_fig module¶
-
imgui_datascience.imgui_fig.fig(figure, width=None, height=None, title='')[source]¶ imgui_fig.fig will display a matplotlib figure
Note: this might fail on OSX, with the following message
AttributeError: 'FigureCanvasMac' object has no attribute 'renderer'
In this case, simply change the renderer to Tk, like this:
import matplotlib matplotlib.use('TkAgg') # this has to be done *before* importing pyplot import matplotlib.pyplot
imgui_datascience.imgui_image_lister module¶
imgui_datascience.imgui_runner module¶
imgui_datascience.static_vars module¶
-
class
imgui_datascience.static_vars.Bunch(**kw)[source]¶ Bases:
dictBunch is a dictionary that supports attribute-style access, a la JavaScript. See original article here : http://code.activestate.com/recipes/52308-the-simple-but-handy-collector-of-a-bunch-of-named/?in=user-97991 pip install bunch will install an official version