Skip to content

Commit

Permalink
suggested new way of plotting?
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Sep 3, 2024
1 parent a5b196d commit 4c2e76c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/simple_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#
# a simple matplotlib plot - testing for pipelines
#
# parent shell can optionally do:
# export MPLBACKEND=agg
#
_version = "3-sep-2023"
_mode = 0

Expand All @@ -19,6 +22,14 @@
else:
_mode = 0
plotfile = None

import matplotlib
if _mode == 0:
matplotlib.use('qt5agg')
else:
matplotlib.use('agg')
import matplotlib.pyplot as plt
print('mpl backend spectra',matplotlib.get_backend())

x = np.arange(0,2,0.1)
y = np.sqrt(x)
Expand Down

0 comments on commit 4c2e76c

Please sign in to comment.