ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

Enable user to choose its default colour palette #7

Closed gillins closed 6 years ago

gillins commented 6 years ago

Original report by Pierre Roudier (Bitbucket: roudierp-landcare, ).


I just pushed the viridis family of colour palettes (see eg: https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html),

That made me think that it would be good to have a mechanism to pick the default colour palette used by default for single-layer rasters.

gillins commented 6 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


Hi Pierre,

Would this live in the Preferences?

I also notice there is no way of opening a file in pseudocolour from the command line which is a bit of an oversight...

Sam.

gillins commented 6 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


Hi Pierre,

Check out the default stretch rules (File->Default Stretch). I think you can already create a rule that uses your preferred colour palette for a single layer raster. See screenshot below. Does this do what you need?

Screenshot-Default Stretch.png

gillins commented 6 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


I think Default Stretch takes care of this quite well. I've also allowed the colour table to be selected from the command line in #d43ce42 so you can create an alias etc for using a particular colour table.