schrodinger.application.desmond.event_analysis.pl_image_tools module¶
- schrodinger.application.desmond.event_analysis.pl_image_tools.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 todata (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
The newly added histogram axes
- Return type
matplotlib.axes.Axes