Skip to content

Commit

Permalink
slight shift of canvas for centering better
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerum committed Oct 5, 2022
1 parent 05c4a64 commit 428973a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylustrator/components/plot_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ def fitToView(self, change_dpi: bool = False):
self.canvas_container.setMinimumSize(w, h)
self.canvas_container.setMaximumSize(w, h)

self.canvas_container.move(int((self.canvas_canvas.width() - w) / 2 + 5),
int((self.canvas_canvas.height() - h) / 2 + 5))
self.canvas_container.move(int((self.canvas_canvas.width() - w) / 2 + 10),
int((self.canvas_canvas.height() - h) / 2 + 10))

self.updateRuler()
self.fig.canvas.draw()
Expand Down

0 comments on commit 428973a

Please sign in to comment.