Questions tagged [color-ramp]
A range of colors used to show ranking or order among classes on a map.
185
questions
0
votes
1
answer
19
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 ...
2
votes
0
answers
55
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 ...
0
votes
0
answers
22
views
Create a color ramp from gpl file
I have created a ramp using a gpl file
Palette
Name: QGIS Palette
Columns: 4
0 00 85 #000055
0 1 88 #000158
0 3 92 #00035C
0 5 96 #000560
0 7 1000 #000764
0 9 103 #000967
0 11 107 #000B6B
0 13 111 #...
1
vote
1
answer
64
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 - ...
0
votes
1
answer
109
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, ...
0
votes
0
answers
60
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 ...
4
votes
1
answer
53
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()
...
1
vote
1
answer
37
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 ...
0
votes
0
answers
12
views
Creating quantitative buckets in Tableau Public using Calculated Field but displaying "unbucketed" information in Tooltip
I am fairly new to Tableau, and I want to use colors to differentiate different measures on a map of geometric "cells" representing California freeways. I am using Tableau Public. I was able ...
0
votes
1
answer
57
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 ...
1
vote
0
answers
32
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 ...
0
votes
0
answers
119
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
323
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
126
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)
...
3
votes
1
answer
139
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
312
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....
0
votes
0
answers
12
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 ...
3
votes
0
answers
67
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
vote
2
answers
268
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
189
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 ...
3
votes
1
answer
492
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.
// ...
2
votes
1
answer
2k
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
163
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 ...
3
votes
2
answers
501
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 ...
4
votes
1
answer
202
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 (...
1
vote
2
answers
115
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 ...
1
vote
0
answers
154
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/...
2
votes
1
answer
203
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 ...
3
votes
1
answer
126
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 ...
2
votes
0
answers
186
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
97
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".
3
votes
2
answers
219
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 ...
2
votes
1
answer
494
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
341
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 ...
1
vote
1
answer
283
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
240
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 (...
5
votes
1
answer
610
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....
1
vote
2
answers
565
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 ...
5
votes
3
answers
3k
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
236
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 ...
2
votes
3
answers
585
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
54
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 ...
1
vote
0
answers
58
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
435
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
457
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 ...
1
vote
1
answer
3k
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 ...
2
votes
1
answer
290
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 ...
1
vote
1
answer
396
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 ...
0
votes
1
answer
144
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 ...
3
votes
1
answer
549
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 ...