-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong text sizes from strheight and strwidth #739
Comments
Hi! I assume that’s because the default null device is 7ʺ×7ʺ: Line 380 in 1eddb30
this could be fixed by initializing that device with the right size, I think. |
Can you check if #740 solves your problem? |
Can I fix it in my Jupyter notebook's cell by setting some options or calling some methods? |
Sorry, please ignore my questions above, I overlooked the pull request. I've installed this branch and the kernel dies with this message on console:
I hope you can make out what went wrong here. Also in the commit I see a typo, null_device <- function( Thanks for your efforts! |
Hi,
It seems that
graphics::strheight
andgraphics::strwidth
return correct values only for the default plot sizeoptions(repr.plot.width = 7, repr.plot.height = 7
.Here is the code cell which should plot a text label inside a box:
Below are the output and the drawing:
For PDF and PNG devices the same code draws the box properly for any plot size.
Perhaps, I didn't set some scaling option for IRkernel that should had prevented this scale discrepancy?
Thanks for your help!
The text was updated successfully, but these errors were encountered: