update graph
This commit is contained in:
parent
4d9e352611
commit
4e026a1422
@ -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()
|
||||
|
@ -1,24 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<office:document xmlns:officeooo="http://openoffice.org/2009/office" xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rpt="http://openoffice.org/2005/report" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:xforms="http://www.w3.org/2002/xforms" office:version="1.3" office:mimetype="application/vnd.oasis.opendocument.text">
|
||||
<office:meta><meta:creation-date>2022-10-11T16:28:51.101948480</meta:creation-date><dc:date>2022-11-08T16:14:55.366057668</dc:date><meta:editing-duration>PT4H1M8S</meta:editing-duration><meta:editing-cycles>44</meta:editing-cycles><meta:generator>LibreOffice/7.3.6.2$Linux_X86_64 LibreOffice_project/30$Build-2</meta:generator><meta:document-statistic meta:table-count="8" meta:image-count="1" meta:object-count="0" meta:page-count="2" meta:paragraph-count="65" meta:word-count="271" meta:character-count="3077" meta:non-whitespace-character-count="2861"/></office:meta>
|
||||
<office:meta><meta:creation-date>2022-10-11T16:28:51.101948480</meta:creation-date><dc:date>2022-11-08T21:17:39.171982622</dc:date><meta:editing-duration>PT4H7M49S</meta:editing-duration><meta:editing-cycles>47</meta:editing-cycles><meta:generator>LibreOffice/7.3.6.2$Linux_X86_64 LibreOffice_project/30$Build-2</meta:generator><meta:document-statistic meta:table-count="8" meta:image-count="1" meta:object-count="0" meta:page-count="2" meta:paragraph-count="65" meta:word-count="271" meta:character-count="3077" meta:non-whitespace-character-count="2861"/></office:meta>
|
||||
<office:settings>
|
||||
<config:config-item-set config:name="ooo:view-settings">
|
||||
<config:config-item config:name="ViewAreaTop" config:type="long">23883</config:config-item>
|
||||
<config:config-item config:name="ViewAreaTop" config:type="long">34463</config:config-item>
|
||||
<config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item>
|
||||
<config:config-item config:name="ViewAreaWidth" config:type="long">34851</config:config-item>
|
||||
<config:config-item config:name="ViewAreaHeight" config:type="long">15291</config:config-item>
|
||||
<config:config-item config:name="ViewAreaHeight" config:type="long">16028</config:config-item>
|
||||
<config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item>
|
||||
<config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item>
|
||||
<config:config-item-map-indexed config:name="Views">
|
||||
<config:config-item-map-entry>
|
||||
<config:config-item config:name="ViewId" config:type="string">view2</config:config-item>
|
||||
<config:config-item config:name="ViewLeft" config:type="long">16013</config:config-item>
|
||||
<config:config-item config:name="ViewTop" config:type="long">33681</config:config-item>
|
||||
<config:config-item config:name="ViewLeft" config:type="long">17425</config:config-item>
|
||||
<config:config-item config:name="ViewTop" config:type="long">44390</config:config-item>
|
||||
<config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item>
|
||||
<config:config-item config:name="VisibleTop" config:type="long">23883</config:config-item>
|
||||
<config:config-item config:name="VisibleTop" config:type="long">34463</config:config-item>
|
||||
<config:config-item config:name="VisibleRight" config:type="long">34849</config:config-item>
|
||||
<config:config-item config:name="VisibleBottom" config:type="long">39172</config:config-item>
|
||||
<config:config-item config:name="VisibleBottom" config:type="long">50490</config:config-item>
|
||||
<config:config-item config:name="ZoomType" config:type="short">0</config:config-item>
|
||||
<config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item>
|
||||
<config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item>
|
||||
@ -88,7 +88,7 @@
|
||||
<config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item>
|
||||
<config:config-item config:name="PrinterSetup" config:type="base64Binary"/>
|
||||
<config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item>
|
||||
<config:config-item config:name="Rsid" config:type="int">4104766</config:config-item>
|
||||
<config:config-item config:name="Rsid" config:type="int">4119373</config:config-item>
|
||||
<config:config-item config:name="EmbeddedDatabaseName" config:type="string"/>
|
||||
<config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item>
|
||||
<config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item>
|
||||
@ -159,7 +159,7 @@
|
||||
<office:styles>
|
||||
<style:default-style style:family="graphic">
|
||||
<style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.3cm" draw:shadow-offset-y="0.3cm" draw:start-line-spacing-horizontal="0.283cm" draw:start-line-spacing-vertical="0.283cm" draw:end-line-spacing-horizontal="0.283cm" draw:end-line-spacing-vertical="0.283cm" style:flow-with-text="false"/>
|
||||
<style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:writing-mode="lr-tb" style:font-independent-line-spacing="false">
|
||||
<style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false">
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="es" fo:country="CO" style:letter-kerning="true" style:font-name-asian="Droid Sans Fallback" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Droid Sans Devanagari1" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/>
|
||||
@ -882,7 +882,10 @@
|
||||
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
|
||||
<style:text-properties style:font-name="Droid Sans Japanese1" fo:font-size="8pt" fo:font-style="normal" fo:font-weight="normal" officeooo:paragraph-rsid="003b2e2b" style:font-size-asian="8pt" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-size-complex="8pt" style:font-style-complex="normal" style:font-weight-complex="normal"/>
|
||||
</style:style>
|
||||
<style:style style:name="P106" style:family="paragraph">
|
||||
<style:style style:name="P106" style:family="paragraph" style:parent-style-name="Frame_20_contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
</style:style>
|
||||
<style:style style:name="P107" style:family="paragraph">
|
||||
<style:paragraph-properties fo:text-align="center"/>
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
@ -1657,7 +1660,7 @@
|
||||
<text:p text:style-name="Standard"/>
|
||||
</style:header>
|
||||
<style:footer>
|
||||
<text:p text:style-name="P1"><text:span text:style-name="T1">Pagina</text:span> <text:page-number text:select-page="current">2</text:page-number></text:p>
|
||||
<text:p text:style-name="P1"><text:span text:style-name="T1">Pagina</text:span> <text:page-number text:select-page="current">1</text:page-number></text:p>
|
||||
</style:footer>
|
||||
</style:master-page>
|
||||
</office:master-styles>
|
||||
@ -1895,7 +1898,7 @@
|
||||
<table:covered-table-cell/>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p text:style-name="P82"><draw:frame draw:style-name="fr1" draw:name="image: (maintenance.graph_calibration, 'image/png')" text:anchor-type="paragraph" svg:x="2.593cm" svg:y="0.261cm" svg:width="12.06cm" svg:height="5.226cm" draw:z-index="3">
|
||||
<text:p text:style-name="P82"><draw:frame draw:style-name="fr1" draw:name="image: (maintenance.graph_calibration, 'image/png')" text:anchor-type="paragraph" svg:x="3.478cm" svg:y="0.353cm" svg:width="10.59cm" svg:height="7.939cm" draw:z-index="3">
|
||||
<draw:text-box>
|
||||
<text:p text:style-name="P51"/>
|
||||
<text:p text:style-name="Text">Texto <text:sequence text:ref-name="refText0" text:name="Text" text:formula="ooow:Text+1" style:num-format="1">1</text:sequence>: </text:p>
|
||||
@ -1908,7 +1911,7 @@
|
||||
<text:p text:style-name="P86"/>
|
||||
<text:p text:style-name="P86"/>
|
||||
<text:p text:style-name="P86"/>
|
||||
<text:p text:style-name="P58"><draw:line text:anchor-type="paragraph" draw:z-index="0" draw:name="Línea horizontal 3" draw:style-name="gr1" draw:text-style-name="P106" svg:x1="-0.027cm" svg:y1="0.157cm" svg:x2="5.265cm" svg:y2="0.157cm">
|
||||
<text:p text:style-name="P58"><draw:line text:anchor-type="paragraph" draw:z-index="0" draw:name="Línea horizontal 3" draw:style-name="gr1" draw:text-style-name="P107" svg:x1="-0.027cm" svg:y1="0.157cm" svg:x2="5.265cm" svg:y2="0.157cm">
|
||||
<text:p/>
|
||||
</draw:line><text:tab/><text:tab/></text:p>
|
||||
<text:p text:style-name="P42"><text:placeholder text:placeholder-type="text" text:description="maintenance.service_maintenance.technical.party.name"><maintenance.service_maintenance.technical.party.name></text:placeholder></text:p>
|
||||
|
Loading…
Reference in New Issue
Block a user