Skip to content

Commit

Permalink
improved saved graph quality
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyfolkesson committed Aug 21, 2024
1 parent 125eacd commit 10f0d73
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
18 changes: 11 additions & 7 deletions SOS_cleanup_data.ipynb

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def write_fig(self, *args, **kwargs) :
fig = func(self, *args, **kwargs)
if 'fig_name' in kwargs and kwargs['fig_name'] is not None:
file_path = os.path.join(self.image_dir, kwargs['fig_name'] + self.ext)
fig.write_image(file_path)
fig.write_image(file_path, scale=5)
return fig
return write_fig

Expand Down Expand Up @@ -256,7 +256,13 @@ def circle_packing_graph(self,
height=1000,
# paper_bgcolor="rgba(0,0,0,0)",
plot_bgcolor="rgba(0,0,0,0)",
title=fig_title,
# title=fig_title,
legend=dict(
yanchor="top",
y=0.93,
xanchor="right",
x=0.96,
)
)
return fig

Expand Down

0 comments on commit 10f0d73

Please sign in to comment.