Skip to content

Commit

Permalink
fix: generate examples for all included styles
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanljones committed Nov 8, 2022
1 parent 220db53 commit 87a716e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@

import numpy as np
import matplotlib.pyplot as plt
from mplstyles import mplstyle_context

STYLES = "figures.mplstyle", "plots.mplstyle"
from mplstyles import get_mplstyles, mplstyle_context


def main():
x = np.linspace(-5, +5, 1001)
y = np.sin(x)
for style in STYLES:

for style in get_mplstyles():
with mplstyle_context(style):
fig, ax = plt.subplots()
ax.plot(x, y)
Expand Down

0 comments on commit 87a716e

Please sign in to comment.