diff --git a/docs-source/source/usage/outcomevisualisation.rst b/docs-source/source/usage/outcomevisualisation.rst index a5f3eb73..dbf319cc 100644 --- a/docs-source/source/usage/outcomevisualisation.rst +++ b/docs-source/source/usage/outcomevisualisation.rst @@ -32,10 +32,10 @@ generate the visualisation. # The visualiser takes the profile, instance, and outcome as arguments visualiser = GreedyWelfareVisualiser(profile, instance, outcome) - # output_filename is option and defaults to greedy_explanation.html - visualiser.render("./{path_to_output_file}/", output_filename="{output_filename}") + # name is optional and defaults to the empty string + visualiser.render("./{path_to_output_file}/", name="{name}") -The visualisation will be saved in the specified path as a standalone HTML file called round_analysis.html. +The visualisation will be saved in the specified path as a standalone HTML file called "{name}_round_analysis.html". Note that the visualisation is only available for additive utility functions. diff --git a/pabutools/visualisation/templates/greedy_round_analysis_template.html b/pabutools/visualisation/templates/greedy_round_analysis_template.html index 9c99f688..8feeb118 100644 --- a/pabutools/visualisation/templates/greedy_round_analysis_template.html +++ b/pabutools/visualisation/templates/greedy_round_analysis_template.html @@ -152,15 +152,12 @@