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

Allow changing color scale size #77

Merged
merged 3 commits into from
Nov 5, 2022

Conversation

Conengmo
Copy link
Member

@Conengmo Conengmo commented May 16, 2020

Closes #72. Allow changing the size of any color scale.

color_scale = StepColormap()
color_scale.width = 1000

I didn't make it a function parameter since I'm not sure how widely used this feature will be. But with this change at least the variable is no longer hard-coded but exposed and can be changed if wanted.

afbeelding

@Conengmo
Copy link
Member Author

Conengmo commented Nov 5, 2022

In Colormap.render() I didn't include self.height, because the height of 40 is hard-coded throughout that method.

@Conengmo Conengmo added the ready label Nov 5, 2022
@Conengmo Conengmo merged commit 51d247c into python-visualization:master Nov 5, 2022
@Conengmo Conengmo deleted the color-scale-size branch November 5, 2022 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customizing Size of LinearColormap
1 participant