-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplotOutput.py
36 lines (25 loc) · 992 Bytes
/
plotOutput.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import json
import scienceplots
import matplotlib as mpl
from matplotlib.pyplot import figure
import matplotlib.pyplot as plt
from matplotlib.legend_handler import HandlerTuple
import numpy as np
def plotOutput(outputdic):
plt.style.use(['science','ieee'])
plt.style.use(['science','no-latex'])
# plt.ylim(-15, 40)
# plt.xlim(0, 180)
fig, ax = plt.subplots()
for keys in outputdic.keys():
figure(figsize=(4, 3), dpi=300)
plt.rcParams["axes.edgecolor"] = "black"
plt.rcParams["axes.linewidth"] = 2.50
p1,=plt.plot(outputdic[keys], color='black', label=keys)
# p4,=plt.plot(mse9,linestyle='--', color='black')
# p5,=plt.plot(mse8,linestyle='--', color='blue')
# p6,=plt.plot(mse7,linestyle='--', color='red')
plt.ylabel('Score',fontweight='bold')
plt.xlabel('Image number (-)',fontweight='bold')
plt.title(keys)
plt.show()