Skip to content

Adding color scale #76

Answered by jourdain
skumar1712 asked this question in Q&A
Jun 13, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

For the scalar bar you can follow that example to set it on the server side.

Then for the range for the scalars for the slider, you can put them where ever you want in the UI. If you edit that part with some dynamic text you will have those bounds

    with ui_card(title="Contour", ui_name="contour") as content:
        vuetify.VSelect(
            # Contour By
            label="Contour by",
            v_model=("contour_by_array_idx", 0),
            items=("array_list", dataset_arrays),
            hide_details=True,
            dense=True,
            outlined=True,
            classes="pt-1",
        )
        content.add_child("{{ contour_min }}") # <--- NEW
        vuetify.VSlider(
…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@skumar1712
Comment options

Answer selected by skumar1712
Comment options

You must be logged in to vote
1 reply
@Datalong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants