Skip to content

Commit

Permalink
Removing scientific notation from dist plot
Browse files Browse the repository at this point in the history
  • Loading branch information
souzadevinicius committed Nov 2, 2023
1 parent edabe1e commit 42bd648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pheval/utils/semsim_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def distribution(input: List[Path], score_column: str, output: Path):
print(f"Saving plot in {output}/bars.png")
plt.savefig(f"{output}/bars.png")
plt.clf()
sns.histplot(
graph = sns.histplot(
df_concat,
x=score_column,
bins=10,
Expand All @@ -134,6 +134,7 @@ def distribution(input: List[Path], score_column: str, output: Path):
alpha=0.5,
hue="semsim",
)
graph.ticklabel_format(style="plain", axis="both")
print(f"Saving plot in {output}/dist.png")
plt.savefig(f"{output}/dist.png")

Expand Down

0 comments on commit 42bd648

Please sign in to comment.