diff --git a/maintenance.py b/maintenance.py index 9e0330d..a68b565 100644 --- a/maintenance.py +++ b/maintenance.py @@ -380,25 +380,35 @@ class Maintenance(Workflow, ModelSQL, ModelView): def get_create_graph(matrix, patterns): image = BytesIO() - all_data = matrix + all_data = [] + + for mistake in matrix: + mean = sum(mistake)/len(mistake) + all_data.append(mean) + labels = list(patterns) - fig, ax1 = plt.subplots(nrows=1, ncols=1, figsize=(9, len(labels)+1)) - # rectangular box plot - bplot1 = ax1.boxplot(all_data, - vert=True, # vertical box alignment - patch_artist=True, # fill with color - labels=labels) # will be used to label x-ticks - top = 0.3 - bottom = -0.3 + + x = labels + y = all_data + + top = 0.40 + bottom = -0.40 + ls = 'dotted' + + fig, ax1 = plt.subplots(nrows=1, ncols=1) + ax1.set_ylim(bottom, top) - ax1.set_yticks([-1,-0.75,-0.5,-0.25,0.0,0.25,0.5,0.75,1]) + ax1.set_xlim((-21, 21)) + ax1.yaxis.grid(True) ax1.set_title('Error[D]') - # adding horizontal grid lines - for ax in [ax1]: - ax.yaxis.grid(True) - #ax.set_xlabel('Three separate samples') - #ax.set_ylabel('Observed values') + ax1.set_xlabel('Patrones') + ax1.set_ylabel('Valores Observados') + + ax1.set_yticks([-0.25,0.0,0.25]) + #ax1.set_xticks([-10.0,-5.0,0.0,5.0,10.0]) + + ax1.errorbar(x, y, yerr=0.1, marker='D', markersize=10, linestyle=ls) plt.savefig(image, format='png') plt.close() diff --git a/report/Calibration.fodt b/report/Calibration.fodt index 150c759..d4ee040 100644 --- a/report/Calibration.fodt +++ b/report/Calibration.fodt @@ -1,24 +1,24 @@ - 2022-10-11T16:28:51.1019484802022-11-08T16:14:55.366057668PT4H1M8S44LibreOffice/7.3.6.2$Linux_X86_64 LibreOffice_project/30$Build-2 + 2022-10-11T16:28:51.1019484802022-11-08T21:17:39.171982622PT4H7M49S47LibreOffice/7.3.6.2$Linux_X86_64 LibreOffice_project/30$Build-2 - 23883 + 34463 0 34851 - 15291 + 16028 true false view2 - 16013 - 33681 + 17425 + 44390 0 - 23883 + 34463 34849 - 39172 + 50490 0 1 false @@ -88,7 +88,7 @@ true true - 4104766 + 4119373 true false @@ -159,7 +159,7 @@ - + @@ -882,7 +882,10 @@ - + + + + @@ -1657,7 +1660,7 @@ - Pagina 2 + Pagina 1 @@ -1895,7 +1898,7 @@ - + Texto 1: @@ -1908,7 +1911,7 @@ - + <maintenance.service_maintenance.technical.party.name>