diff options
author | asteroide <thomas.duval@orange.com> | 2017-06-10 10:58:57 +0200 |
---|---|---|
committer | asteroide <thomas.duval@orange.com> | 2017-06-10 10:58:57 +0200 |
commit | 8699784e43f3b35201e892c7517d8a1c4f1fd1f8 (patch) | |
tree | 43673bad9fe973330ba24ce0a08715cc91ed2854 /moonv4/moon_interface/tests/apitests | |
parent | 75f7c79569597a1ca452701acb757fd26ec79114 (diff) |
Fix a bug in legends
Change-Id: If3132d5f09443814551fe46282b4d1c862a0d6bc
Diffstat (limited to 'moonv4/moon_interface/tests/apitests')
-rw-r--r-- | moonv4/moon_interface/tests/apitests/set_authz.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/moonv4/moon_interface/tests/apitests/set_authz.py b/moonv4/moon_interface/tests/apitests/set_authz.py index 2e9d5b95..c2d0adcf 100644 --- a/moonv4/moon_interface/tests/apitests/set_authz.py +++ b/moonv4/moon_interface/tests/apitests/set_authz.py @@ -273,6 +273,9 @@ def write_distgraph(time_data, legend=None, input=None, image_file=None, html_fi result_data.append(time_delta) # Create distplot with custom bin_size + if len(legends) < len(result_data): + for _cpt in range(len(result_data)-len(legends)): + legends.append("NC") fig = ff.create_distplot(result_data, legends, bin_size=.2) # Plot! @@ -281,7 +284,8 @@ def write_distgraph(time_data, legend=None, input=None, image_file=None, html_fi image="svg", image_filename=image_file, image_height=1000, - image_width=1200 + image_width=1200, + filename=html_file ) if time_delta_average2: logger.info("Average: {} and {}".format(time_delta_average1, time_delta_average2)) |