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

LabelAxis() opens new device #10

Closed
thomas-muench opened this issue Jul 8, 2021 · 0 comments · Fixed by #12
Closed

LabelAxis() opens new device #10

thomas-muench opened this issue Jul 8, 2021 · 0 comments · Fixed by #12
Assignees
Labels
invalid This doesn't seem right

Comments

@thomas-muench
Copy link
Contributor

The LabelAxis() functions per default opens a new graphics device when no active device is present. This is due to default function parameter setting font = graphics::par()$font.lab as this involves a call to par(). Since LabelAxis() function can be conveniently used to define axis strings prior to opening any graphics device, this behaviour is a bit unpleasant. Avoid by setting the default font to 1.

@thomas-muench thomas-muench self-assigned this Jul 8, 2021
@thomas-muench thomas-muench added the invalid This doesn't seem right label Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant