Skip to content

Commit

Permalink
Merge pull request #62 from wpfff/fix/cnp
Browse files Browse the repository at this point in the history
copy to clipboard with updated settings
  • Loading branch information
wpfff committed May 22, 2019
2 parents 85e8290 + 4791558 commit 79b33f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plottr/plot/mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ def toClipboard(self):
:return:
"""
buf = io.BytesIO()
self.fig.savefig(buf)
self.fig.savefig(buf, dpi=300, facecolor='w', format='png',
transparent=True)
QtGui.QApplication.clipboard().setImage(
QtGui.QImage.fromData(buf.getvalue()))
buf.close()
Expand Down

0 comments on commit 79b33f7

Please sign in to comment.