Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Sep 3, 2024
1 parent 4c2e76c commit d8095ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/simple_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import sys

import numpy as np
import matplotlib.pyplot as plt


if __name__ == "__main__":
if len(sys.argv) > 1:
Expand All @@ -29,7 +27,11 @@
else:
matplotlib.use('agg')
import matplotlib.pyplot as plt
print('mpl backend spectra',matplotlib.get_backend())
if 'MPLBACKEND' in os.environ:
print('$MPLBACKEND :',os.environ['MPLBACKEND'])
else:
print("no $MPLBACKEND used")
print('mpl backend :',matplotlib.get_backend())

x = np.arange(0,2,0.1)
y = np.sqrt(x)
Expand All @@ -41,4 +43,4 @@
plt.show()
else:
plt.savefig(plotfile)
print("Wrote ",plotfile)
print("Wrote",plotfile)

0 comments on commit d8095ea

Please sign in to comment.