Skip to content

Suppress guide for NULL breaks in non-position scales (Fixed #579). #581

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

Merged
merged 1 commit into from
Jun 27, 2012

Conversation

kohske
Copy link
Collaborator

@kohske kohske commented Jun 16, 2012

No description provided.

@wch
Copy link
Member

wch commented Jun 16, 2012

Thanks - does this pass all tests and visual tests?

Also it should be 'suppressed', not 'surpressed'.

@kohske
Copy link
Collaborator Author

kohske commented Jun 16, 2012

@wch passes all unit test. Which version of vtest should I use, and which commit shoud the vtest do against?

All vtest are passed. I mean vdiff in vtest.

@wch
Copy link
Member

wch commented Jun 16, 2012

You should use the latest version of vtest from github. I think you should test it against ggplot2-0.9.1 (but I'm not 100% sure).

You can also try running vdiffstat('recent') or vdiff_webpage('recent'), which should compare it against a somewhat newer commit (although that commit has the same resultset as 0.9.1).

@kohske
Copy link
Collaborator Author

kohske commented Jun 16, 2012

@wch looks ok for visual comparison between the latest commit and tag 0.9.1.

@wch
Copy link
Member

wch commented Jun 16, 2012

@kohske Thanks for running tests.

I have a question about the warnings: Does it really need a warning when users do breaks=NULL? For positional scales (x and y), breaks=NULL just means that nothing shows up on the guide (the axis ticks), and there's no warning.

In other words, why is it valid to use breaks=NULL for x and y, but invalid for colour, fill, etc?

@kohske
Copy link
Collaborator Author

kohske commented Jun 16, 2012

@wch I think that non-positional guide without breaks is meaningless while positional guide without breaks is used in somewhere What do you think?

At least, legend guide cannot be drawn if there is no breaks.

@wch
Copy link
Member

wch commented Jun 19, 2012

I think it makes sense for a non-positional guide to be suppressed when breaks=NULL, but I don't think a warning is necessary. I guess we can see what Hadley thinks.

@kohske
Copy link
Collaborator Author

kohske commented Jun 20, 2012

Ok, I will wait @hadley 's response.

@hadley
Copy link
Member

hadley commented Jun 27, 2012

I vote for no warning.

@wch wch merged commit d4fc00c into tidyverse:master Jun 27, 2012
@wch
Copy link
Member

wch commented Jun 27, 2012

I took out the warnings and merged into master (2e7015c).

@lock
Copy link

lock bot commented Jan 19, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants