36
votes
Accepted
Elevation color ramps for DEMs in QGIS
QGIS comes with a lot of colorramps but not all are enabled by default. It's covered in the User Guide:
You can create a custom color ramp choosing New color ramp... from the color ramp drop-down ...
16
votes
Apply a different color ramp to subset of categorized symbols in QGIS?
Select the categories you want to apply the first color ramp to. Right click > merge categories.
Repeat step 1 for each group.
Convert the layer from Categorized to Rule-based style. This will ...
13
votes
Accepted
Reversing color ramp in ArcMap?
To reverse the colour ramp applied to feature symbols:
Right click on the symbol column then from the context symbol select 'Flip Symbols'. Note that any specific changes made to a particular symbol ...
12
votes
Accepted
Color Ramp in QGIS
In the menu Settings - Style Manager you can see the tag "Color ramp".
By clicking on the green plus you can add manually some color ramps or choose the cpt-city addon the allows you to choose ...
10
votes
Accepted
Adjacent DEM color matching in QGIS?
In the main menu bar, go to Raster | Miscellaneous | Build Virtual Raster and select all the tiles you want to group (don't forget to uncheck the Place each input file into a separate band tickbox). ...
10
votes
Accepted
Apply a color ramp to vector layer using PyQGIS3
Updated answer:
Below is a recipe to apply a graduated renderer based on values in an attribute field, specifying the number of classes and color ramp.
# Set layer name and desired paremeters
...
9
votes
Accepted
Making bivariate colour ramp with QGIS
Excellent answer by @Martin but it seems you have 2 attributes you want to have a colour gradient (Plantation Cover and Forest Harvesting Intensity). If I'm mistaken then I will remove this post. You ...
8
votes
Color Ramp in QGIS
It was not obvious where to look for the predefined templattes, but I figured it out with the help of another question, the credits to this Q&A: Elevation color ramps for DEMs in QGIS
This is ...
8
votes
Accepted
Where can I get an archived copy of the ColorBrewer style file for ArcGIS 10?
Reach Resource Center has a archive copy of a Color Brewer ArcMap style file available for download.
8
votes
Accepted
Using a fixed palette range to plot an NDVI raster in R
You need to supply levelplot() with a bit more information, via its at= argument, so that it can know the set of intervals to which you want the colors in col.regions applied.
library(rasterVis)
## ...
8
votes
Accepted
How to assign colors to specific raster values using R
You can define your own color palette by concatenating two predefined color palettes and your desired gray color as: [red orange yellow palette] + [zero gray color] + [blues palette]. To get zero ...
8
votes
Accepted
Colours for positive and negative values in a raster layer in QGIS
You have a range of values from -0.369288057 to 0.604043365, thus a difference of 0.973331422. You have a color ramp red-white-black and the "middle" value (white) is set to the middle of ...
7
votes
Accepted
Using QGIS GUI predefined colorramps in Python console / PyQGIS?
In general you should look at this page of the APIs documentation. As a working example see as follows:
vl = iface.activeLayer()
## get default style
myStyle = QgsStyleV2().defaultStyle()
## get a ...
7
votes
Importing color ramp into QGIS 3.10
The solution proposed by @Xi Jin is available for raster layers only and is for color maps, not color ramps. Even though very similar, the concepts are different: a color map assigns pre-defined ...
6
votes
Defining a color ramp for temperature range & applying it to different rasters?
An approach would be creating a style for each raster, ranging from -40°C to +20°C (or whatever you want).
Firstly, right-click on the layer and, from Properties >> Style, try to set it ...
6
votes
Accepted
Resolve why R is not using the full colour ramp in the package tmap
You need auto.palette.mapping=FALSE in tm_polygon().
tm_shape(meuse.poly) +
tm_polygons("dist", title="dist", palette="RdYlGn",
auto.palette.mapping=FALSE, n=6)
See the ...
6
votes
Creating new QGIS color ramp from r,g,b text file?
There's two options:
Option 1: Write a little PyQGIS script which converts the csv to a QgsVectorGradientColorRampV2 (see https://qgis.org/api/2.18/classQgsVectorGradientColorRampV2.html ). ...
6
votes
Accepted
Creating new QGIS color ramp from r,g,b text file?
As you have described, formatted xml file (each color is represented as stop; R, G, B, A) would be required. To accelerate the task, we can (1) create a copy of existing color ramp by export and (2) ...
6
votes
Adjacent DEM color matching in QGIS?
The difference is the resulting style of each raster generated by default.
The simplest way to make them to match their style is to copy and paste the style. Right click on the raster with the ...
6
votes
Accepted
Color map or SLD for Global Wind Atlas?
If you don't mind manually picking colors from the legend color bar;
In the Layer Properties panel > Symbology tab, choose Singleband pseudocolor to render the color.
Select Discrete for the ...
5
votes
Accepted
Creating multivariate choropleth map with diverging color scheme(s)?
You are correct, ArcGIS is not set up to natively do this. It's workable to do it with two, and you might get away with three variables but I have a feeling you're going to want to do it in ...
5
votes
R custom color theme in levelplot
You should have a look at http://colorbrewer2.org/, and diverging color schemes therein. It can be imported into R using brewer.pal from the RColorBrewer package.
library(RColorBrewer)
cols <- ...
5
votes
Accepted
Gradient colour for lines
In the moment there is no way to colour lines with a gradient style.
First buffer your linestrings. Then you can set a gradient colour for the buffer polygons.
Here is a HowTo: How to visualize ...
5
votes
Accepted
Where is plug-in "Color Ramp Manager"?
You need to select "Show also experimental plugins" in the plugin manager settings, as the plugin is classified as experimental, as you can see below:
5
votes
Showing just color ramp in legend without values
The way I've done it in the past is to add a Raster to my map, symbolise it using the Color Ramp I want, and turn the layer off in the TOC. You can make the legend show for layers that are turned off....
5
votes
How can singleband pseudocolor style's values be computed using PyQgis
I don't know which is color interpolation method of QGIS but, as first approximation, it can be taken advantage of 'defaultStyle' in QgsStyleV2 class for creating a color list for a QgsColorRampShader ...
5
votes
Accepted
Creating graduated symbol classification based on values from multiple columns?
A click on the sum symbol next to the column choosing dropdown menu leads you to the expression dialog where you can easily combine all columns in almost any way you like, e.g. sum up all three ...
5
votes
Accepted
Heatmap of sold homes with constant cell size?
You are using the Heatmap style renderer, not the plugin. If you want your heatmap to remain the same size, you will need to use the plugin to create a raster file. The heatmap style seems to be ...
5
votes
Circular color map in QGIS
Interesting question, and one I've stumbled on myself but not found an answer to.
I haven't found any, not even in the extensive cpt-city catalog.. and ColorBrewer doesn't appear to have any either.
...
5
votes
Accepted
Preset Color Ramp in ArcGIS Desktop?
An underhand trick...from my friend...(I do agree with gisnside)
New > Multi-part Color Ramp
Add Algorithmic Color Ramp
Select this Algorithmic Color Ramp and Properties (or, just double-clicking) to ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
color-ramp × 171qgis × 77
symbology × 38
arcgis-desktop × 33
raster × 28
color × 17
pyqgis × 16
arcmap × 11
style × 11
legend × 10
r × 8
dem × 8
qgis-3 × 7
heat-map × 7
colormap × 7
qgis-2 × 6
visualisation × 6
gdal × 5
polygon × 5
arcgis-10.3 × 5
python × 4
arcpy × 4
google-earth-engine × 4
arcgis-10.2 × 4
layers × 4