Skip to content

Commit

Permalink
Fixes evidentlyai#1030 Weird labelling for y-axis in some error plots…
Browse files Browse the repository at this point in the history
… for negative values
  • Loading branch information
GwenVCX committed Jul 3, 2024
1 parent 286a44c commit 1f8fd30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evidently/suite/base_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def save_html(self, filename: Union[str, IO], mode: Union[str, SaveMode] = SaveM
)
render = self._render(determine_template("inline"), template_params)
if isinstance(filename, str):
with open(filename, "w", encoding="utf-8") as out_file:
with open(filename, "w", encoding="utf-8-sig") as out_file:
out_file.write(render)
else:
filename.write(render)
Expand All @@ -274,7 +274,7 @@ def save_html(self, filename: Union[str, IO], mode: Union[str, SaveMode] = SaveM
font_file=font_file,
include_js_files=[lib_file, data_file],
)
with open(filename, "w", encoding="utf-8") as out_file:
with open(filename, "w", encoding="utf-8-sig") as out_file:
out_file.write(self._render(determine_template("inline"), template_params))

@abc.abstractmethod
Expand Down

0 comments on commit 1f8fd30

Please sign in to comment.