Skip to content

Commit

Permalink
Update simpler_mpl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ianozsvald authored May 28, 2023
1 parent 2b847be commit 6e1d4ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simpler_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# ax.get_legend().remove() # remove a legend (another way)

# axs['Uplift'].yaxis.set_major_formatter(StrMethodFormatter('${x:0.0f}')) # apply a standard formatter e.g. floats with no decimal place and dollar sign
# ax.yaxis.set_major_formatter(lambda x, pos: f"{int(x/1000):,}k") # x will be numeric if that's what we'veplotted
# ax.yaxis.set_major_formatter(lambda x, pos: f"{x:,.1f}") # e.g. 100,000.0

# configure font
# font = {'family': 'FreeSans', 'size': 20}
Expand Down

0 comments on commit 6e1d4ab

Please sign in to comment.