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 ...
user avatar
  • 81.9k
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 ...
user avatar
  • 23k
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 ...
user avatar
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 ...
user avatar
  • 2,644
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). ...
user avatar
  • 2,788
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 ...
user avatar
  • 13.6k
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 ...
user avatar
  • 72.2k
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 ...
user avatar
  • 3,089
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.
user avatar
  • 29.2k
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) ## ...
user avatar
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 ...
user avatar
  • 2,976
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 ...
user avatar
  • 40.1k
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 ...
user avatar
  • 1,851
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 ...
user avatar
  • 40.1k
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 ...
user avatar
  • 15.5k
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 ...
user avatar
  • 3,824
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 ). ...
user avatar
  • 26.2k
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) ...
user avatar
  • 29k
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 ...
user avatar
  • 3,089
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 ...
user avatar
  • 29k
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 ...
user avatar
  • 15.5k
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 <- ...
user avatar
  • 5,033
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 ...
user avatar
  • 4,184
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:
user avatar
  • 36.2k
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....
user avatar
  • 29.2k
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 ...
user avatar
  • 25.9k
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 ...
user avatar
  • 2,271
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 ...
user avatar
  • 72.2k
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. ...
user avatar
  • 19.8k
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 ...
user avatar
  • 29k

Only top scored, non community-wiki answers of a minimum length are eligible