Skip to content
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

element_textbox(...,height = unit(0.28, "npc") ) would made my .tiff strange #86

Open
kangning-97 opened this issue May 10, 2022 · 0 comments

Comments

@kangning-97
Copy link


Because my textbox had sub/sup label, the heights of strip are different. Thus i set the height of textbox (height), while the outcome is strange. **There is a unit(0.28, "npc") space between strip_text and the figure **

                                     <My strip (a textbox with sub/sup label)>
                                                       <----a space--->
                                                          <My figure>
strip.text.x = element_textbox(
      size = 12,family = "serif",face = "bold",
      color = "white", fill = "#5D729D", box.color = "#4A618C",
      halign = 0.5,valign = 0.5, linetype = 1, r = unit(5, "pt"), width = unit(1, "npc"),height = unit(0.28, "npc"),
      padding = margin(2, 2, 2, 2), margin = margin(1, 1, 1,1)
    )

Thanks for your review.
Yours sincerely!

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

No branches or pull requests

1 participant