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

Add "identity" scales #402

Open
AndreiKingsley opened this issue Jul 25, 2024 · 4 comments
Open

Add "identity" scales #402

AndreiKingsley opened this issue Jul 25, 2024 · 4 comments
Labels
api Common API for plotting enhancement New feature or request lets-plot API and implementation for lets-plot

Comments

@AndreiKingsley
Copy link
Collaborator

"Identity" scale is a scale that takes aesthetics values directly and does not change them
For example:

color(listOf(Color.RED, Color.GREEN, Color.BLUE)) {
   scale = identity()
}
@AndreiKingsley AndreiKingsley added enhancement New feature or request api Common API for plotting lets-plot API and implementation for lets-plot labels Jul 25, 2024
@devcrocod
Copy link
Collaborator

I think this behavior is default

@AndreiKingsley
Copy link
Collaborator Author

AndreiKingsley commented Jul 26, 2024

Do you mean that this scale should be used by default when a required type is used and detected?

@devcrocod
Copy link
Collaborator

Yes
And what is the motivation to add identity at all?

@AndreiKingsley
Copy link
Collaborator Author

Example above - sometimes user uses aesthetics values directly in the input data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Common API for plotting enhancement New feature or request lets-plot API and implementation for lets-plot
Projects
None yet
Development

No branches or pull requests

2 participants