Commit c48c85ac authored by Julia Abramenko's avatar Julia Abramenko

added argparser argument for file format in which the resulting plots shall be saved

parent 94a99a08
Pipeline #50757 passed with stage
in 21 minutes and 14 seconds
...@@ -188,7 +188,7 @@ class TimeSeriesAggregator: ...@@ -188,7 +188,7 @@ class TimeSeriesAggregator:
if self.marker_pos_x is not None: if self.marker_pos_x is not None:
ax.axvline(self.marker_pos_x, color='red', linestyle=':', label=self.label_text) ax.axvline(self.marker_pos_x, color='red', linestyle=':', label=self.label_text)
# save file under the predetermined directory # save file under the predetermined directory
output_file = os.path.join(self.output_path + "\\throughput-ts.pdf") output_file = os.path.join(self.output_path + "\\throughput-ts")
# draw the standard deviation as area around the mean # draw the standard deviation as area around the mean
mean_t = self.agg_throughput["Mean"] mean_t = self.agg_throughput["Mean"]
std_t = self.agg_throughput["Standard Deviation"] std_t = self.agg_throughput["Standard Deviation"]
...@@ -201,7 +201,7 @@ class TimeSeriesAggregator: ...@@ -201,7 +201,7 @@ class TimeSeriesAggregator:
# indicating saving process # indicating saving process
print("Saving throughput plot to disk: " + output_file) print("Saving throughput plot to disk: " + output_file)
# store the created picture # store the created picture
plt.savefig(output_file, format=self.format) plt.savefig(output_file + ".{}".format(self.format), format=self.format)
plt.close() plt.close()
def plot_latency(self): def plot_latency(self):
...@@ -239,7 +239,7 @@ class TimeSeriesAggregator: ...@@ -239,7 +239,7 @@ class TimeSeriesAggregator:
if self.marker_pos_x is not None: if self.marker_pos_x is not None:
ax.axvline(self.marker_pos_x, color='red', linestyle=':', label=str(self.label_text)) ax.axvline(self.marker_pos_x, color='red', linestyle=':', label=str(self.label_text))
# save file under the predetermined directory # save file under the predetermined directory
output_file = os.path.join(self.output_path + "\\latency-ts.pdf") output_file = os.path.join(self.output_path + "\\latency-ts")
# draw the standard deviation as area around the mean # draw the standard deviation as area around the mean
mean_l = self.agg_latency["Mean"] mean_l = self.agg_latency["Mean"]
std_l = self.agg_latency["Standard Deviation"] std_l = self.agg_latency["Standard Deviation"]
...@@ -266,7 +266,7 @@ class TimeSeriesAggregator: ...@@ -266,7 +266,7 @@ class TimeSeriesAggregator:
# indicating saving process # indicating saving process
print("Saving latency plot to disk: " + output_file) print("Saving latency plot to disk: " + output_file)
# store the created picture # store the created picture
plt.savefig(output_file, format=self.format) plt.savefig(output_file + ".{}".format(self.format), format=self.format)
# @staticmethod # @staticmethod
def remove_outliers(self, df_in, col_name): def remove_outliers(self, df_in, col_name):
......
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