Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Dec 29, 2023
1 parent 39ad0a4 commit 748e7c8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions upsetplot/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,27 @@ class UpSet:
If `subset_size='sum'` or `'auto'`, then the intersection size is the
sum of the specified field in the `data` DataFrame. If a Series, only
None is supported and its value is summed.
min_subset_size : int, optional
min_subset_size : int or "number%", optional
Minimum size of a subset to be shown in the plot. All subsets with
a size smaller than this threshold will be omitted from plotting.
This may be specified as a percentage
using a string, like "50%".
Size may be a sum of values, see `subset_size`.
.. versionadded:: 0.5
max_subset_size : int, optional
.. versionchanged:: 0.9
Support percentages
max_subset_size : int or "number%", optional
Maximum size of a subset to be shown in the plot. All subsets with
a size greater than this threshold will be omitted from plotting.
This may be specified as a percentage
using a string, like "50%".
.. versionadded:: 0.5
.. versionchanged:: 0.9
Support percentages
max_subset_rank : int, optional
Limit to the top N ranked subsets in descending order of size.
All tied subsets are included.
Expand Down Expand Up @@ -379,11 +389,13 @@ def style_subsets(
styling.
min_subset_size : int or "number%", optional
Minimum size of a subset to be styled.
This may be specified as a percentage using a string, like "50%".
.. versionchanged:: 0.9
Support percentages
max_subset_size : int or "number%", optional
Maximum size of a subset to be styled.
This may be specified as a percentage using a string, like "50%".
.. versionchanged:: 0.9
Support percentages
Expand Down

0 comments on commit 748e7c8

Please sign in to comment.