Skip to content
Snippets Groups Projects
Commit 73601db9 authored by pswain's avatar pswain
Browse files

feature(plotting): ylim to plot_binned

parent dbd54576
No related branches found
No related tags found
No related merge requests found
......@@ -780,6 +780,7 @@ def plot_binned(
ylabel=None,
title=None,
legend_loc="best",
ylim=None,
):
"""
Plot a statistic for y_signal of cells binned by their x_signal value.
......@@ -818,7 +819,8 @@ def plot_binned(
Title for plot.
legend_loc: str, optional
Location for legend.
ylim: (float, float), optional
Lower and upper limits of y-axis.
Example
-------
......@@ -898,5 +900,7 @@ def plot_binned(
plt.title(y_signal.replace("_", " "))
else:
plt.title(title)
if ylim is not None:
plt.ylim(ylim)
plt.legend(loc=legend_loc)
plt.show(block=False)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment