Skip to content

use smaller font size for ROIExamples.ipynb#2112

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:roi_smaller_font
Nov 19, 2021
Merged

use smaller font size for ROIExamples.ipynb#2112
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:roi_smaller_font

Conversation

@pijyoi
Copy link
Copy Markdown
Contributor

@pijyoi pijyoi commented Nov 19, 2021

This is a quick-and-dirty fix for #2107.

From https://doc.qt.io/qt-5/qapplication.html#setFont:
On application start-up, the default font depends on the window system. It can vary depending on both the window system version and the locale.

The default font when running offscreen on PyQt5 is for some reason largish, causing the issue listed in #2107. By changing the font size to something smaller, we don't get the truncation.

There are possibly other ways to achieve the same thing, like using style sheets.

@j9ac9k j9ac9k linked an issue Nov 19, 2021 that may be closed by this pull request
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Nov 19, 2021

Given this is an example, I think a quick and dirty fix here is appropriate. Thanks @pijyoi merging!

@j9ac9k j9ac9k merged commit 60b840d into pyqtgraph:master Nov 19, 2021
@pijyoi pijyoi deleted the roi_smaller_font branch November 19, 2021 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jupyter ROIExamples plot truncated when run on binder

2 participants