Skip to content

Commit

Permalink
legend number, ##274
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Aug 29, 2024
1 parent 5fe3859 commit db4517a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
# built documents.
#
# The short X.Y version.
version = "1.1.3"
version = "1.1.4"
# The full version, including alpha/beta/rc tags.
release = "1.1.3"
release = "1.1.4"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion gseapy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# or args = argparser.parse_args() will throw bugs!!!


__version__ = "1.1.3"
__version__ = "1.1.4"


def main():
Expand Down
2 changes: 1 addition & 1 deletion gseapy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _load_data(self, exprs: Union[str, pd.Series, pd.DataFrame]) -> pd.DataFrame

def _check_data(self, exprs: pd.DataFrame) -> pd.DataFrame:
"""
check NAs, duplicates.
check NAs, duplicates, and select number columns
exprs: dataframe, the frist column must be gene identifiers
return: dataframe, index is gene ids
Expand Down
7 changes: 5 additions & 2 deletions gseapy/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,12 @@ def scatter(
handles, labels = sc.legend_elements(
prop="sizes",
num=3, #
fmt="{x:.2f}",
# fmt="{x:.2f}",
color="gray",
func=lambda s: np.sqrt(s) / plt.rcParams["lines.markersize"] / self.scale,
func=lambda s: 100
* np.sqrt(s)
/ plt.rcParams["lines.markersize"]
/ self.scale,
)
ax.legend(
handles,
Expand Down

0 comments on commit db4517a

Please sign in to comment.