Skip to content

Commit

Permalink
added y axis to popularity plots
Browse files Browse the repository at this point in the history
  • Loading branch information
dswigh committed Mar 30, 2024
1 parent c3b89f9 commit 2efed04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orderly/plot/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,10 @@ def plot_molecule_popularity_histogram(

if molecule_type.lower() == "product":
divider = 1
plt.ylabel("Frequency")
else:
divider = 1000
plt.ylabel("Frequency (1000s)")

# Plot the results in thousands
plt.bar(
Expand All @@ -356,6 +358,7 @@ def plot_molecule_popularity_histogram(
# set the plot title and axis labels

plt.title(f"Most popular {molecule_type}s")

plt.xlabel(f"Popularity rank")

# Get top 10 molecules
Expand Down

0 comments on commit 2efed04

Please sign in to comment.