Catch any import errors from matplotlib #62

Signed-off-by: colramos425 <colramos@amd.com>


[ROCm/rocprofiler-compute commit: c3e3c9982b]
Этот коммит содержится в:
colramos425
2023-01-17 10:26:00 -06:00
родитель 5d0928fd8f
Коммит e97c745ba5
+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: