Skip to content

Commit

Permalink
Merge pull request #3209 from t20100/fix-init-size
Browse files Browse the repository at this point in the history
silx.gui.plot.PlotWidget: Fixed initial size of OpenGL backend
  • Loading branch information
vallsv authored Oct 1, 2020
2 parents 1475eb1 + 9c041e7 commit da07d05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions silx/gui/plot/backends/BackendOpenGL.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ def __init__(self, plot, parent=None, f=qt.Qt.WindowFlags()):
foregroundColor=(0., 0., 0., 1.),
gridColor=(.7, .7, .7, 1.),
marginRatios=(.15, .1, .1, .15))
self._plotFrame.size = ( # Init size with size int
int(self.getDevicePixelRatio() * 640),
int(self.getDevicePixelRatio() * 480))

# Make postRedisplay asynchronous using Qt signal
self._sigPostRedisplay.connect(
Expand Down

0 comments on commit da07d05

Please sign in to comment.