Skip to content

Commit 109ba4a

Browse files
ameteAlaettin Serhan Mete
and
Alaettin Serhan Mete
authored
Update the default plotting style (#245)
Co-authored-by: Alaettin Serhan Mete <alaettin.serhan.mete@cern.ch>
1 parent 86b4b13 commit 109ba4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package/scripts/prmon_plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
mpl.use("Agg")
1414
import matplotlib.pyplot as plt
1515

16-
plt.style.use("seaborn-whitegrid")
16+
if "seaborn-v0_8-whitegrid" in plt.style.available:
17+
plt.style.use("seaborn-v0_8-whitegrid")
1718
except ImportError:
1819
print("ERROR:: This script needs numpy, pandas and matplotlib.")
1920
print("ERROR:: Looks like at least one of these modules is missing.")

0 commit comments

Comments
 (0)