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

suggestion to address get_legend issue #205 #206

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jkylearmstrong
Copy link

suggestion to address get_legend issue #205

  • added is_zeroGrob function
  • modified get_plot_component to filter all nonZero Grobs.
  • added return_all option to get_legend function.

A side effect is that now fails test "get legend" however, noted in comments the test is

"more of a duct tape solution than a reflection of the intended behaviour".

I think for almost all components it would be reasonable to return first nonZero Grubs by default, the option to return all also enables the user to grab all labels that match.

suggestion to address `get_legend` issue wilkelab#205

- added `is_zeroGrob` function
- modified `get_plot_component` to filter all nonZero Grobs.
- added return_all option to `get_legend` function.

A side effect is that now fails test "get legend" however, noted in comments the test is "more of a duct tape solution than a reflection of the intended behaviour".

I think for almost all components it would be reasonable to return first nonZero Grubs by default, the option to return all also enables the user to grab all labels that match.
updated test so now null is always expected
@clauswilke
Copy link
Contributor

See my comment in #205.

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