Catch any import errors from matplotlib #62
Signed-off-by: colramos425 <colramos@amd.com>
Ta zmiana jest zawarta w:
%! (template.HTML=
colramos425)złożyło 2023-01-17 10:26:00 -06:00
1 rodzic
32444e43de
złożenie
c3e3c9982b
Plik 1 zmieniony
+11
-5
@@ -21,14 +21,22 @@
|
||||
################################################################################
|
||||
|
||||
from linecache import cache
|
||||
import subprocess
|
||||
from operator import sub
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import numpy
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib
|
||||
|
||||
try:
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
except ImportError:
|
||||
# other non-interactive options:
|
||||
# cairo, pdf, pgf, ps, svg, template
|
||||
matplotlib.use("agg", force=True)
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from matplotlib.pyplot import get, text
|
||||
from math import log, pi, sqrt
|
||||
import pandas as pd
|
||||
@@ -511,8 +519,6 @@ def plot_application(inputs, verbose):
|
||||
|
||||
print(intensities)
|
||||
|
||||
# fig, ax = plt.subplots()
|
||||
|
||||
plotted_spots = []
|
||||
labels = []
|
||||
for i in intensities:
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika