Skip to content

Commit

Permalink
Example showing rcParams for smaller font size (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Dec 28, 2023
1 parent ffd4aad commit 0837786
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/plot_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
This example illustrates basic plotting functionality using generated data.
"""

import matplotlib
from matplotlib import pyplot as plt

from upsetplot import generate_counts, plot
Expand Down Expand Up @@ -42,3 +43,10 @@
plot(example, show_percentages="{:.2%}")
plt.suptitle("With fraction shown in custom format")
plt.show()

##########################################################################

matplotlib.rcParams["font.size"] = 6
plot(example, show_percentages="{:.2%}")
plt.suptitle("With a smaller font size")
plt.show()

0 comments on commit 0837786

Please sign in to comment.