Skip to content

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