Package schrodinger :: Package application :: Package desmond :: Package event_analysis :: Module pl_image_tools
[hide private]
[frames] | no frames]

Module pl_image_tools

Functions [hide private]
matplotlib.axes.Axes
add_histo(ax, data, color, na_color='#D9D9D9', grey_axes_decorations=True)
Add a histogram to the right of the given axes
Variables [hide private]
  __package__ = 'schrodinger.application.desmond.event_analysis'
Function Details [hide private]

add_histo(ax, data, color, na_color='#D9D9D9', grey_axes_decorations=True)

 

Add a histogram to the right of the given axes

Parameters:
  • ax (matplotlib.axes.Axes) - The axes to add the histogram to
  • data (list) - The data to calculate the histogram for
  • color (str) - The color for the histogram bars
  • na_color (str) - The color for the "NA" text if no data is present. Defaults to light gray.
  • grey_axes_decorations (bool) - If True, the spines, ticks, and axis labels will be colored dark gray. If False, they will be colored the default matplotlib colors.
Returns: matplotlib.axes.Axes
The newly added histogram axes