You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wide figures (e.g. produced using import matplotlib.pyplot as plt; plt.figure(dpi=300); plt.plot([1,2,3])) are truncated when the window is narrow enough. Resizing the window causes the horizontal scrollbar to appear / be updated. Horizontal scrolling allows the entire figure to be viewed then.
qtconsole version: 5.5.1
The text was updated successfully, but these errors were encountered:
I don't know enough about GUI frameworks to make sense of this. Apparently both the vertical scroll bar's visibility policy and whether we update the vertical scrollbar's range influence whether the horizontal scrollbar behaves as expected.
while setting control.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) seems to work. Doing the former with any other value or not explicitly setting affects prevents both scrollbars from being displayed.
Also, calling e.g. self._control.horizontalScrollBar().setRange(0, 10) in adjust_scrollbars() will cause this function to be called infinitely often.
Wide figures (e.g. produced using
import matplotlib.pyplot as plt; plt.figure(dpi=300); plt.plot([1,2,3])
) are truncated when the window is narrow enough. Resizing the window causes the horizontal scrollbar to appear / be updated. Horizontal scrolling allows the entire figure to be viewed then.qtconsole version:
5.5.1
The text was updated successfully, but these errors were encountered: