-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add a switch to reverse colours and invert palette #17911
Comments
Author Name: Etienne Tourigny (@etiennesky) It is possible to invert the gradient in rasters (before classifying), but not in vectors. It should be easy to add a "invert" checkbox next to the color ramp selector in the Categorized and Graduated modes. Updating the various gradient dialogs to support inverted colors would be somewhat more involved. IMHO inverting palette is not feasible with cpt-city gradients. |
Author Name: Etienne Tourigny (@etiennesky) Added invert checkbox for vector layer classification (Categorized and Graduated) in 0a8c1cc . I am not sure that "inverting palette" is so useful (and honestly difficult or impossible for cpt-city gradients), but it could be added to the standard gradient dialog. Leaving this open for now.
|
Author Name: Etienne Tourigny (@etiennesky) Actually, implementing "invert palette" shouldn't be too hard. The question is, where should this option appear? In the gradient dialog boxes, or in the raster/vector classification UIs (as is done for "invert colors")? Another question is: is this really necessary? Here is the relevant code in the 1-band raster colour table plugin (bcccoltbl), in file Palette.py, that does the inversions.
|
Author Name: Etienne Tourigny (@etiennesky) Added a few people to this ticket, would appreciate feddback on questions raised in last comment. |
Author Name: Paolo Cavallini (@pcav) Not sure it is necessary. I'd put it besides the "invert colour" checkbox. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paolo Cavallini (@pcav) Implemented
|
Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 9303
Redmine category:symbology
See http://www.bc-consult.com/free/bcccoltbl1.html#i001
The text was updated successfully, but these errors were encountered: