1
vote
QGIS use Python script to show Hexabinning results instead of manually using Symbology
Try this:
layer = qgis.utils.iface.activeLayer()
color_ramp = QgsStyle().defaultStyle().colorRamp('Spectral')
renderer = QgsGraduatedSymbolRenderer.createRenderer(
vlayer=layer,
attrName=...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pyqt5 × 178pyqgis × 112
qgis-3 × 62
qgis × 49
qgis-plugins × 49
python × 37
pyqgis-3 × 22
qt-designer × 12
pyqt × 10
qt × 7
gui × 7
ubuntu × 5
python-3 × 5
pyqt4 × 5
qgis-processing × 4
folium × 4
combo-box × 4
qgis-2 × 3
standalone × 3
qgis-custom-widgets × 3
layers × 2
import × 2
windows × 2
snapping × 2
osgeo4w × 2