Commit dfd7f72d authored by Joanne Hugé's avatar Joanne Hugé

Add graph generation for chronological measures

parent 00039840
Pipeline #9685 failed with stages
...@@ -94,7 +94,7 @@ class MeasureSetHandler: ...@@ -94,7 +94,7 @@ class MeasureSetHandler:
# measures of the same type # measures of the same type
props_type = measures[0].props_type props_type = measures[0].props_type
nb_props = len(measures[0].props) nb_props = len(measures[0].props)
# For each property draw a graph # For each property draw a graph
for i in range(nb_props): for i in range(nb_props):
prop_name = measures[0].props_names[i] prop_name = measures[0].props_names[i]
...@@ -123,7 +123,8 @@ class MeasureSetHandler: ...@@ -123,7 +123,8 @@ class MeasureSetHandler:
fig.set_size_inches(11.0, 5.5) fig.set_size_inches(11.0, 5.5)
# Save the graph # Save the graph
plt.savefig("{}/{}{}.png".format(MeasureSetHandler.graphs_dir, mtype, props_name)) plt.savefig("{}/{}{}.png".format(MeasureSetHandler.graphs_dir, mtype, prop_name))
plt.clf()
def generate_report(self, include_graphs=True): def generate_report(self, include_graphs=True):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment