Page 1 of 1
SF Legend in CCViewer
Posted: Thu Jan 26, 2023 11:01 am
by pmr
Is it possible to change the text in the SF legend, that is, to change the scalars to text?
Re: SF Legend in CCViewer
Posted: Sat Jan 28, 2023 8:20 am
by daniel
Ah no, currently it's only numbers, but that's a good idea!
We could add a specific syntax in the color scale definition dialog, next to each numerical step:
-1.0 "min"
0 "zero"
1.0 "max"
And CC would use the string instead of the numerical value (if any)
I'll try to work on that idea.
Re: SF Legend in CCViewer
Posted: Sat Jan 28, 2023 4:22 pm
by pmr
Thanks Daniel.
Re: SF Legend in CCViewer
Posted: Sun Jan 29, 2023 5:28 pm
by daniel
Ok, so this was fairly easy.
The latest 2.13.alpha version online (today) now allows you to add a text label (between double quotes) next to the custom label value. This text will be displayed instead of the numerical value.
I'll let you test.
Re: SF Legend in CCViewer
Posted: Sun Jan 29, 2023 6:00 pm
by pmr
Thanks. I'm gona try.
Re: SF Legend in CCViewer
Posted: Sun Jan 29, 2023 6:35 pm
by pmr
It works! Thanks a lot. Can we import the color scale to use in command line?
Re: SF Legend in CCViewer
Posted: Mon Jan 30, 2023 10:35 pm
by daniel
Hopefully yes? Just save it as xml and load it with the right command. Please report if this doesn't work.