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

Move call to par() to render second md.pattern() call correctly #323

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

prockenschaub
Copy link
Contributor

Addresses issue #318 , which reports that the second call to md.pattern() is cropped.

Cause

The issue seems to arrive from the resetting of the plot margins in line 84. An old post here seems to suggest that margins need to be set before the call to plot.new().

Solution

Moving the setting of the margins before plot.new() as suggested appears to fix this problem.

Other plots before and after one or more calls to md.pattern() (such as plot(mtcars) or plot(imp)) also seem to render as expected after the proposed change, suggesting that the change does not introduce unintended side effect.s

@stefvanbuuren stefvanbuuren merged commit e778e60 into amices:master Mar 31, 2021
@prockenschaub prockenschaub deleted the md-pattern-par branch January 10, 2022 08:21
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.

2 participants