mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims: tendency reports: clear axis after plot
This commit is contained in:
parent
f8f8d61f2c
commit
c26b50cd2d
|
@ -1313,6 +1313,7 @@ class ControlChartReport(Report):
|
|||
|
||||
ax.legend(loc='center left', bbox_to_anchor=(1.0, 0.5))
|
||||
ax.get_figure().savefig(output, bbox_inches='tight', dpi=300)
|
||||
ax.clear()
|
||||
image = output.getvalue()
|
||||
output.close()
|
||||
return image
|
||||
|
@ -1551,6 +1552,7 @@ class TrendChart(ModelSQL, ModelView):
|
|||
ax.set_ylabel(self.uom_y2.symbol)
|
||||
|
||||
ax.get_figure().savefig(output, bbox_inches='tight', dpi=300)
|
||||
ax.clear()
|
||||
image = output.getvalue()
|
||||
output.close()
|
||||
return image
|
||||
|
|
Loading…
Reference in a new issue