Skip to content

Commit

Permalink
Set dpi of figures
Browse files Browse the repository at this point in the history
  • Loading branch information
timmintam committed Aug 27, 2024
1 parent 5ef5880 commit 503f960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions povm_toolbox/quantum_info/product_povm.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def draw_bloch(
colorbar=colorbar,
)
fig.suptitle(title, fontsize=title_font_size, y=1.0)
fig.dpi = 100.0
matplotlib_close_if_inline(fig)

return fig
1 change: 1 addition & 0 deletions povm_toolbox/quantum_info/single_qubit_povm.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def draw_bloch(
figure = B.fig
axes = B.axes
figure.set_size_inches(figsize[0], figsize[1])
figure.dpi = 100.0
matplotlib_close_if_inline(figure)

if colorbar:
Expand Down

0 comments on commit 503f960

Please sign in to comment.