Questions tagged [color-ramp]

A range of colors used to show ranking or order among classes on a map.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Color filling for Turf.js Interpolate analyze in Mapbox

I used Turf.js' interpolate (IDW) analyze and when I added it to the layer it showed a black rectangular. after that I did some searching and found the paint property has a fill that can fill the ...
1 vote
1 answer
89 views

IndexError: list index out of range after first loop object

When I run the below loop, only the first list entry gets applied the Elevation #10 ColorRamp and transparency. After it loops back to the second entry I get the following error: cr = p....
1 vote
1 answer
51 views

Using QGIS default Random Color Ramp in Categorized symbology using PyQGIS

Based on this code below, is it possible to use Random Color option in Symbology? layer = iface.activeLayer() field_name = 'zona_manejo' field_index = layer.fields().indexFromName(field_name) ...
  • 631
3 votes
1 answer
104 views

Two way color gradient but not symmetrical in terms of color saturation

I am looking for a way to configure a two way graduated fill symbology, that is based on positive and negative values which corresponds to a level of error for one feature attribute (how far is it to ...
2 votes
1 answer
91 views

Changing color ramp in R

I am trying to plot water quality by 3 districts of a nation. I have plot the map according to Biological Oxygen Demand value from the table as shown below:- The code I used is as shown:- install....
  • 165
0 votes
0 answers
8 views

Graduated Color Ramp by Rate per Zip Code?

I am very new to qgis (I started teaching myself about a week ago) so I will try and be as concise as possible. I am using version 3.22 and I am mapping violation of probation rates (vop rates). I ...
  • 1
3 votes
0 answers
44 views

Assigning new pseudo color renderer to raster using pyQGIS [duplicate]

I would like to assign a new pseudo color style to my raster layer using PyQGIS. I created the following script: #accessing the raster layer rl = iface.activeLayer() ## get default style myStyle = ...
  • 1,537
1 vote
2 answers
144 views

Rounding numbers in a raster legend in Google Earth Engine

I have a legend in Google Earth Engine which pulls minimum and maximum values for my raster (imported as a cloud asset). I would like to round those numbers in order to remove the decimals. It seems ...
1 vote
1 answer
126 views

How to "preclassify" a color ramp for an unknown range in QGIS?

I have to create a template project in QGIS to be taken into the field by others. The aim is, that the user only enters data but does not have to change styles or anything themselves. I have a layer ...
  • 1,528
2 votes
1 answer
180 views

Automate max and mix values of a raster in my color palette on Google Earth Engine

Is there a way to automate my code so that Google Earth Engine can pull minimum and maximum values from a raster and update my color palette accordingly? I'm using the following code currently. // ...
0 votes
1 answer
1k views

Customizing a continuous legend in Google Earth Engine

I've created legends in ggplot, which look like this With the code I've used in Google Earth Engine, this is what my legend looks like Is there an easy way for me to edit my Google Earth Engine code ...
2 votes
1 answer
100 views

What do gradient stops' relative positions on colour ramp (%) signify when using QGIS heat map tool?

I'm using QGIS 3.18 heatmap tool to visualise the space use patterns of chimpanzees for my master's dissertation. I import each chimpanzees coordinates as a csv file and then change the layer's ...
0 votes
0 answers
26 views

QGIS Categorical Symbology: Expression IF to narrow categories, how to keep the overall color value?

Is there a way to maintain an overall color scheme within the symbology, even if categories are not selected? Expression used for category symbology: IF(("Descriptio"='LAYER1'),"...
3 votes
2 answers
364 views

Improving readability of black and white map

I need to produce a map using grayscale (QGIS), as this figure will be printed in black and white. The map is made up of two layers: one cointains the polygon geometry (land cover) - there are five ...
  • 299
4 votes
1 answer
139 views

Absolute positions for Color Ramp gradient stops in heat map?

I'm using QGIS 3 and trying to create a heat map using GPS data acquired during various trips. I want the resulting heatmap to clearly show each location acquired at least once with some radius (...
  • 171
1 vote
2 answers
88 views

Exporting color ramp as gradient to Illustrator/Indesign?

How do I export a gradient from QGIS to Illustrator and/ or indesign? I know I can export a gradient on a layout, but is there also a way to export the gradient in a file format that illustrator can ...
  • 361
1 vote
0 answers
101 views

Bad result when extract slope from HGT using GDAL

I'm trying to generate a slope tif from a HGT DEM file from SRTM. I'm following this posts: https://blog.mastermaps.com/2012/06/creating-hillshades-with-gdaldem.html https://blog.mastermaps.com/2012/...
  • 1,850
2 votes
1 answer
101 views

Making legend with singleband pseudocolor in QGIS

I have a continuous raster with values from around 0 to around 1. I used these parameters on the symbology tab: When I head to the print layout and add a legend to my map, it displays like this (the ...
  • 119
3 votes
1 answer
94 views

Homogeneously assigning values to raster color ramp using PyQGIS

I am working on QGIS 3.20 on a raster layer symbology using PyQGIS singlebandpseudocolor and min/max values from the target raster layer. My own color ramp (from blue to red) does not spread ...
  • 91
1 vote
0 answers
132 views

Convert a one-band GTIFF to PNG with adjusted color ramp using GDAL

I have a one-band fCover GTiff with values ranging between 0 to 0.4 and I would like to convert it to a png using a color ramp adapted to this tiff. I already have a png from this tif but the color ...
2 votes
0 answers
77 views

Creating contours based on values of ramp using QGIS

When creating contour on a raster using QGIS, is it possible to create them based on values specified in a colour ramp ? I only see the option "Interval between contour lines".
  • 59
3 votes
2 answers
142 views

Creating singleband pseudocolor ramp displaying colors based on values using QGIS

With QGIS desktop, I'm trying to create a ramp to a DEM using a singleband pseudocolor style. I have created a ramp with 15 different colours and values as well. I can't find the option to apply those ...
  • 59
2 votes
1 answer
333 views

Dynamically changing fillColor variables in leaflet

When I want to style a polygon using a property the traditional way is to assign a function that returns a style object. Within that object you assign the fillColor property to a getColor function ...
1 vote
1 answer
214 views

Assigning QgsCategorizedSymbolRenderer Spectral Ramp to MultiPolygon

I currently have a Python script that adds a MultiPolygon shapefile to my map within QGIS. Within QGIS, I can apply a categorized symbology render, with the color ramp 'Spectral' going from blue to ...
  • 183
1 vote
1 answer
223 views

Specify start/stop within color ramp in QGIS

I'm trying to color values along buffered two-point lines with a color ramp in QGIS. The color ramp should represent the height of the lines, that varies linearly from start to end point. Now I cannot ...
2 votes
1 answer
151 views

Specify absolute center for bi-directional color ramp in QGIS?

How do I center the color ramp on '0' for a series of raster with positive and negative values? The values are non-normally distributed. There doesn't seem to be a an 'absolute' option, only relative (...
  • 369
5 votes
1 answer
431 views

Colours for positive and negative values in a raster layer in QGIS

I've got a raster layer in QGIS 3.10. It's statistics are the following (hopefully understandable although in Spanish): Valor mínimo: -0.36928805708885193 Valor máximo: 0.6040433645248413 Intervalo: 0....
  • 2,452
1 vote
2 answers
409 views

Symbolizing raster layer with Python QGIS

I have a simple Python code that makes some calculations on rasters and give me some output rasters; I have also a style saved to color rasters based on pixel values. Is there an option to load the ...
  • 165
5 votes
3 answers
2k views

Importing color ramp into QGIS 3.10

I would like to use a set of color ramps that are available at CPT-CITY but cannot find any way to import the downloaded files. Note that I have found the Catalog: cpt-city option under the Create New ...
3 votes
0 answers
184 views

QGIS Singleband pseudocolor Continuous symbology

If you want to configure the symbology of a raster in QGIS using render type 'Singleband pseudocolor', you can choose out of 3 modes to generate values in the table (continuous, equal interval and ...
  • 71
2 votes
3 answers
366 views

Filling polygon with 2 different colours representing 2 different sets of data using QGIS

I have a map of England where counties are polygons. I would like to fill them with 2 colours; each half corresponding to a specific set of data. Is there a way to do that? I have included an example ...
2 votes
0 answers
48 views

How to deal with extreme values messing up Graduated colours? (ArcMap)

Is there an easy way to deal with extreme values messing up the Graduated colours of a map and skew the intervals in such a way that the colour ramp still makes visible sense? I have a map displaying ...
  • 41
1 vote
0 answers
48 views

Generate color ramp scale for imported base map in QGIS

I have imported a bathymetric layer, showing depth variation around an archipelago, which I'm using as a basemap. I would like to create a scale bar for it, showing max and min recorded depths. Is it ...
3 votes
2 answers
340 views

Color map or SLD for Global Wind Atlas?

I am trying to use the Global Wind Atlas for a map about alternative energy: https://globalwindatlas.info I have downloaded the 14.5GB geotiff of global wind power density. QGIS reads it perfectly and ...
2 votes
1 answer
362 views

PyQGIS: How to apply a color ramp on the symbol's outline when using QgsCategorizedSymbolRenderer?

I have polygon layer containing overlapping features (service areas for several years) and I want their symbology to use a color ramp in QgsCategorizedSymbolRenderer applied for each year use a ...
  • 944
1 vote
1 answer
2k views

Adding continuous color ramp as legend using ArcMap [duplicate]

I am interested in adding a continuous color ramp legend with numerical labels like the following example to place on the layout view of arcmap: I am quite new to arcMap so I'm not sure how I can do ...
  • 63
2 votes
1 answer
223 views

Creating color ramp based on quantitative range

I have a set of polygons with correlation values. I would like to color each polygon based how strong their correlation value is where 0=lightest and 1=darkest. This means if I have a set of three ...
  • 63
1 vote
1 answer
289 views

How to combine color ramps for two different layers?

I have two layers that contains 5 polygons each with their own values. I would like to make a global color ramp that encompasses both layers. But I am not sure how I can do this. I have tried setting ...
  • 63
0 votes
1 answer
111 views

Convert SHD files to CLR or more modern color ramp format

I have a legacy SHD file (from Arc/Info) that contain color ramp information that I would like to use to symbolize a raster layer in ArcGIS Pro. I have access to an Arc/Info installation and am able ...
  • 33
3 votes
1 answer
400 views

GDAL ColorRamp for Float Based Values

I have a performed band calculation to calculate the NDVI grayscale. It has float based values on a single band, between 0.0 and 1.0 respectively. I am attempting to colorize the single band via ...
0 votes
1 answer
183 views

ArcGIS Javascript 4 API - Class breaks visualization in GeoJSONLayer

I'm trying to create a data-driven visualization using a GeoJSONLayer with ArcGIS Javascript 4.14 using "esri/renderers/smartMapping/creators/color" on a field named "Number" (specifically a Class ...
  • 345
1 vote
1 answer
710 views

How can I make a heatmap of polygons using a graduated color scheme in QGIS?

I want to make a heat map of species biodiversity like the people did in the picture below. I can sort of get it to work by setting my layer with multiple polygon subclasses in the Layer styling panel ...
  • 171
3 votes
0 answers
271 views

What is tilde (~) for in R? [closed]

I know this is an almost too simple question. But maybe there is a fast answer. Looking through some code to build a leaflet map in R I found that part of code: mypal = colorNumeric( palette = "...
9 votes
5 answers
2k views

Apply a color ramp to vector layer using PyQGIS3

I'm trying to apply a color ramp to a QgsGraduatedSymbolRenderer in PyQGIS 3 (QGIS 3.8) using the following code: Getting the QgsGradientColorRamp: myStyle = QgsStyle().defaultStyle() ...
  • 2,238
1 vote
2 answers
155 views

Apply external choropleths in QGIS 3

I have a large number of cloropeths stored in SLD and QML formats. QGis is unable to apply any of those, there is no option in the GUI for SLD, whereas it fails to apply QML files correctly. Is there ...
3 votes
2 answers
559 views

QGIS Time manager Changing Color Polygon

I'm using QGIS 3.6.3. Noosa. I have 10 polygons, each has a starting time and an end time. Getting Time Manager to run was no problem at all. However, there are two things I would like to add in my ...
  • 563
2 votes
0 answers
379 views

Discrete color ramp in QGIS

This seems basic but I am new to QGIS and I can't find how to do it. I have three shape files each with the same attribute. Each shape file is imported into its own layer. Each shape file has ...
  • 21
1 vote
1 answer
287 views

Proper way to share raster layer

In ArcGIS I have used to share a shapefile (for example beach areas) by sending a package that contains different files (.shp, .shx, .prj, .cpg, .dbf, .sbn, .xml) which contains all necessary ...
  • 91
3 votes
6 answers
2k views

Rule based coloured background for labeling in QGIS

I am a newbie working on QGIS 3.6 / Windows 10. I need to label a polygon layer which is categorised by colour. (pls refer to attached pic as a graphical reference) The labels need to have a ...
4 votes
1 answer
852 views

Making colored hillshade in QGIS?

Today I found that ArcGis can make colored hillshade like on piture below. Here is link to their blog. I want to do that in QGIS. I know about layer coloring feature, and it's close for perfect, but ...
user avatar