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
too much space between each plot and its title #40
Comments
Sure @tdhock, I'll work around this issue and report back as soon as possible. |
hi what do you need help with here? can you replicate the issue / see the problem in rendered data viz on your system? |
Yes, my system also has the same issue. |
yes maybe that it is. try experimenting with changing those translate values interactively in the browser to see if that fixes the problem. then if it does, figure out where those values are being generated in the R/js code. |
This line is causing issues! https://github.com/tdhock/animint2/blob/c2398111e8b0e73e73fac28a8d56d8cf3a912a4c/inst/htmljs/animint.js#L515 |
thanks for your persistence/dilgence. var margin = {
left: 0,
right: text_height_pixels * p_info.panel_margin_lines,
top: text_height_pixels * p_info.panel_margin_lines,
bottom: 0
}; which comes from the following R code inside parsePlot: ## Now ggplot specifies panel.margin in 'pt' instead of 'lines'
plot.info$panel_margin_lines <- pt.to.lines(theme.pars$panel.margin) |
Thank you so much! |
It was the function
|
did you add a test that fails before your fix? if not can you do that please? (always a good idea to write a test that fails when you find a bug, before you fix the bug) |
Oh! I'm sorry! I forgot! |
@tdhock, One thing I have to ask, this test will be a renderer one or what? |
you are right the renderer test is not super easy / straightforward. |
Alright! Let me go ahead with the compiler test! |
@lazycipher I noticed a new bug/regression. can you please add a test and work on a fix in #34 ?
In old animint2 which worked with R-3.6 we have very little space between each plot and its title:
but in new animint2 we have
the problem seems to be with the offset of the plot which is 111 here in the background y attribute
this is the first plot in test-renderer2-interactive-legends.R but this is happening with ALL animints I have seen with the new code.
The text was updated successfully, but these errors were encountered: