Skip to content

Commit

Permalink
v0.2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
yh202109 committed Jul 3, 2024
1 parent 42d2922 commit bcab00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtbp3/statlab/kappa.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ def create_bubble_plot(self, out_path="", axis_label=[], max_size_ratio=0, hist=
if self.n_rater == 2 and self.y_count_sq is not None and self.y_count_sq.shape[0] == self.y_count_sq.shape[1] and self.y_count_sq.shape[0] > 0:
categories = self.y_count_sq.columns
n_categories = len(categories)
max_size_ratio = max_size_ratio if max_size_ratio >= 1 else max(1,int(150 / n_categories))

r1 = []
r2 = []
Expand All @@ -279,6 +278,7 @@ def create_bubble_plot(self, out_path="", axis_label=[], max_size_ratio=0, hist=
r2.append(c2)
sizes.append(self.y_count_sq.iloc[i1, i2])
df0 = pd.DataFrame({'r1': r1, 'r2': r2, 'sizes': sizes})
max_size_ratio = max_size_ratio if max_size_ratio >= 1 else max(1,int((6000/max(sizes)) / n_categories))
if hist:
sns.jointplot(
data=df0, x="r1", y="r2", kind="scatter",
Expand Down

0 comments on commit bcab00f

Please sign in to comment.