Skip to main content

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
2 answers
93 views

QGIS: Colour Ramp for the height of bars

The map shows the number of population on 1x1km squares (vector data). However, I would like the colour to change to yellow as the size of the bars increases. (So not the whole bar, but a colour ...
Toth's user avatar
  • 5
0 votes
0 answers
29 views

Importing .style File with Incomplete Color Ramps into ArcGIS Pro

I'm running into a bit of a snag with importing a .style file into ArcGIS Pro. Some of the color ramps in the file aren't showing up entirely. It looks like ArcGIS Pro is treating all my color ramps ...
Tianqi FU's user avatar
1 vote
0 answers
43 views

QGIS 3.22.16 using a unique color for each category

I am using QGIS 3.22.16. I am trying to symbolize multiple land owners using the categorize option. However, the random selection brings similar color for different landowner. I tried to use different ...
GIS Noh's user avatar
  • 321
1 vote
1 answer
35 views

ArcGIS JS API RasterShaderReliefRenderer does not color full range of DEM elevation values

I have a DEM of the state of florida as an ImageService, here. I want to render this DEM using nicer colors than black and white using the ArcGIS JS API. Following the example ImageryTileLayer - ...
Seth Lutske's user avatar
0 votes
0 answers
26 views

Using colour ramp [duplicate]

I sometimes have problems with my colour ramps. Usually they work normal, but sometimes they are only show the left and right colour but no middle part. Has anyone had the problem too?
Lisa Dornhege's user avatar
0 votes
0 answers
44 views

How to update the labels of ColorRampItem automatically after changing ColorRampType to Discrete using PyQGIS?

I want to change the appearance of a mesh layer in QGIS 3.22. If I change the ColorRampType to Discrete, I can see the change in the legend, but at the labels there are only simple numbers, like "...
Markuz's user avatar
  • 1
0 votes
0 answers
33 views

Colouring of a pie chart

How can I automatically insert different colors for different attributes in creating pie chart in QGIS. I have multiple attributes and coloring them differently takes alot of time. Is there way that I ...
Viliami's user avatar
0 votes
1 answer
516 views

Enabling render type for Mapzen Global Terrain in QGIS

I'm trying to change the color ramp on a Mapzen Global Terrain layer and only 'Singleband color data' is available in render type. 'Singleband pseudocolor' is not available. This is occurring in QGIS ...
Andy's user avatar
  • 3
1 vote
1 answer
212 views

How to reverse the color scheme for a preset color ramp using ArcPy inside of ArcGIS Pro (by changing the class breaks)

I have a Jupyter Notebook in my ArcGIS Pro project which changes the symbology of my map layer. In this script I manually set the class breaks using the classBreakValues variable which works as long ...
Bojan Milinic's user avatar
0 votes
1 answer
274 views

QGIS .tiff to shapefiles by extracting colours

So I have the following raster file: I would like to edit it so that I export all green, blue or purple areas as a single, new .tiff. Afterwards I would make a vectorization to be able to process the ...
Mabignix's user avatar
  • 140
2 votes
2 answers
506 views

QGIS Color Ramp is not being displayed properly

I have QGIS 3.22.16 installed, as well as QGIS 3.28.3. When I use QGIS 3.22.16, only the color ramps I created are displayed accordingly. The other ones are missing the intermediary colors. If i ...
Rafael Pinheiro Machado's user avatar
1 vote
1 answer
173 views

Manually modify the legend symbology in QGIS

In legend how can you make the polygon symbol which has multiple colors on the map appear with more colors, because in New Print Layout it appears with just 1 color which is not true (Symbology - ...
Zoro's user avatar
  • 31
0 votes
1 answer
229 views

Filling polygon with multiple unequally different colors and label (3, 4, 5 and more colors) - Code needed (Symbology - Geometry generator) [closed]

I was wondering if it is possible to code the symbology of a polygon with the size of the colors according to the numbers they represent (like a graph in excel) and display the labels on each slice, ...
Zoro's user avatar
  • 31
0 votes
0 answers
123 views

How to fill polygon with multiple equally different colors (3, 4, 5 and more colors) - Code needed (Symbology - Geometry generator)

I need to make a map with politics of the European Union and found that the numbers of members from some parties are equal, for example: Netherlands : EPP - 6, S&D - 6, Renew Europe - 6 I tried ...
Zoro's user avatar
  • 31
4 votes
1 answer
169 views

Properly updating the QGIS default style database from Python

Let's say I copied an existing color ramp from my QGIS profile's default style database, inverted it and saved it under a new name in the database: >>> default_style = QgsStyle.defaultStyle() ...
bugmenot123's user avatar
  • 10.9k
1 vote
1 answer
338 views

Setting mid-point of divergent colour ramp to zero using ArcGIS Pro

I am creating a number of rasters showing the standardised precipitation index (SPI) for a series of months for a specific region. To make the maps comparable, I need the midpoint of the colour scale ...
Simba06's user avatar
  • 841
0 votes
1 answer
271 views

Modify layer's renderer with pyQGIS (QgsGraduatedSymbolRenderer)

I want to modify the color ramp of my layer in pyQGIS like I would do it in the layer properties : I identified QgsGraduatedSymbolRenderer().updateColorRamp(ramp=color_ramp) as the function to update ...
dmjf08's user avatar
  • 1,293
1 vote
0 answers
61 views

Problem with color scaling for rasters [closed]

I just opened QGIS to be able to make plots and now I notice that I can no longer do color scaling as before. The problem is shown in the following screenshot. I uninstalled and installed QGIS several ...
Marco Fiorentini's user avatar
1 vote
1 answer
640 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....
HondaKillrsx's user avatar
2 votes
1 answer
410 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) ...
geofausto's user avatar
  • 765
3 votes
1 answer
311 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 ...
Nicolas LIENART's user avatar
3 votes
1 answer
845 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....
Walker's user avatar
  • 301
3 votes
0 answers
72 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 = ...
ar-siddiqui's user avatar
  • 1,768
1 vote
2 answers
557 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 ...
r1c3bowl22's user avatar
1 vote
1 answer
308 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 ...
C.-F. Vintar's user avatar
  • 1,616
3 votes
1 answer
899 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. // ...
r1c3bowl22's user avatar
3 votes
1 answer
4k 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 ...
r1c3bowl22's user avatar
2 votes
1 answer
343 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 ...
Natasha REG's user avatar
3 votes
2 answers
754 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 ...
Geo_it's user avatar
  • 523
4 votes
1 answer
482 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 (...
Michael's user avatar
  • 171
1 vote
2 answers
190 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 ...
Topow's user avatar
  • 361
1 vote
0 answers
246 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/...
Magno C's user avatar
  • 2,150
2 votes
1 answer
567 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 ...
Spectron's user avatar
  • 127
3 votes
1 answer
250 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 ...
Remi79's user avatar
  • 163
2 votes
0 answers
341 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 ...
Camille C's user avatar
2 votes
0 answers
143 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".
hervus's user avatar
  • 51
3 votes
2 answers
592 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 ...
hervus's user avatar
  • 51
3 votes
1 answer
885 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 ...
Andrewchi's user avatar
2 votes
1 answer
609 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 ...
LiamHems's user avatar
  • 203
1 vote
1 answer
473 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 ...
tammojan's user avatar
2 votes
1 answer
383 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 (...
CreekGeek's user avatar
  • 389
5 votes
1 answer
986 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....
jpinilla's user avatar
  • 3,230
1 vote
2 answers
922 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 ...
Rapu93's user avatar
  • 175
5 votes
4 answers
6k 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 ...
user1813359's user avatar
3 votes
1 answer
414 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 ...
H3g's user avatar
  • 71
2 votes
3 answers
1k 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 ...
Henrique L.'s user avatar
2 votes
0 answers
69 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 ...
Eumenes's user avatar
  • 41
1 vote
0 answers
66 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 ...
Aláine Lee's user avatar
3 votes
2 answers
772 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 ...
Brian Holmes's user avatar
2 votes
1 answer
628 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 ...
maxwhere's user avatar
  • 1,158