Questions tagged [legend]

The description of the types of features included in a map, usually displayed in the map layout.

Filter by
Sorted by
Tagged with
3
votes
2answers
1k views

How to generate legend in leaflet webmap?

Although I have checked the "Create Legend" option in the qgis2leaf plugin, it did not generate any legend in the output webmap. What am I missing here ?
3
votes
3answers
3k views

Coloring SpatialLines by attribute in R?

I have a SpatialLinesDataFrame dataset of rivers in R. The dataset consists of lines (river segments) with a "Turbidity" attribute. I want to create a map and legend, where: Turbidity between 0 and ...
3
votes
1answer
973 views

Fine-tuning horizontal legends in QGIS

I made a map with a horizontal legend to show 10 categories in QGIS 2.18.6 (see below), and here comes some questions. Hopefully I can have some suggestions here: First, I indeed create the legend ...
3
votes
2answers
877 views

Removing item text from a layer in a legend in the print composer

I am a new user of QGIS and I am having a problem configuring a legend on the Print Composer. I am trying to remove the item text from a layer and then alter the text below hoping that this would ...
3
votes
3answers
543 views

Making multiple legend boxes all same size using ArcGIS for Desktop?

How do I make all the rectangle or (legend box) all the same ? Look at the circles I marked in the pictures. It should be very simple thing to do. Anyone out there have a good workaround ?
3
votes
4answers
4k views

Is there a way to remove this thick gray border from my raster symbology in the legend?

I have this problem with different raster layers, in this instance it's land use data. In my layout, and in a rendered PDF of my map, the legend entry for the raster layer has an ugly, thick gray ...
3
votes
2answers
7k views

Labelling pie chart legend entries by alias in ArcGIS 10.1

When generating pie charts in ArcGIS, it appears that the legend entries generated for the different slices are named based on field name, rather than the field alias. I've done some research, and ...
3
votes
1answer
201 views

Using Legend properties in ArcGIS Desktop?

I am trying to input acress right next to values in the Legend; however, I was not able to . See here Even though I know how to do the Legend Properties. See here Can you point me where can I point ...
3
votes
1answer
633 views

QGIS change legend symbol size independent of map

I'm using QGIS 2.18. The screenshot below shows the print composer. At the moment, the only way I can reduce the size of symbols in the print composer is to reduce the size of the symbol on the map. ...
3
votes
1answer
741 views

Interpreting raster values generated by QGIS Heatmap plugin?

I have generated a nice heatmap (point density) based on a point layer using the QGIS Heatmap plugin, set up as follows: I calculated both outputs as shown in the screenshot below: 'Scaled by Kernel ...
3
votes
1answer
855 views

How to sort layers within groups with Python?

After running a longer script (Qgis Console), all I want to do is sort the layers within my groups; since some of them are buffers and the 'biggest' buffer is now on top. I've tried stuff based on: ...
3
votes
2answers
3k views

Using attribute data for legend labeling in QGIS?

For features in a map it is possible to stuck data from the attribute table together and get a data driven label. I try to do this for my legend labels. I want to combine values from my attribute ...
3
votes
2answers
1k views

Remove item from legend using ArcPy?

I can't remove item from the legend (lyr called "atikot") using arcpy with this code: import arcpy from arcpy import env removeLyr = arcpy.mapping.ListLayers(mxd, "atikot")[0] mxd = arcpy.mapping....
3
votes
1answer
4k views

Where is the legend for graduated styling?

I created a map using graduated styling on a layer and there is a field for legend format and a column that says legend, but I can't find the legend anywhere. Does anyone know how to access it? (The ...
3
votes
1answer
699 views

QGIS Natural Breaks with raster file

I know it is possible to use natural Breaks legends with vector files in QGIS. Is this possible also with raster files? Actually I want to reclassify raster files by using Natural Breaks.
3
votes
2answers
773 views

Adding more than one legend in QGIS Print Composer?

I'm using QGIS 2.8.4 and I can't seem to figure out adding more than one legend to my Print Composer. Say I want a larger map and then an inset map -- showing perhaps a different classification/color ...
3
votes
1answer
3k views

Legend colour with specific value

I have model plotted in R base<- raster("example.tif") plot(base) image I'd like to change value (0,5,10,15,20,25) breakpoints<-c("0,5,10,15,20,25") plot(base,break=breakpoints) Error in ....
3
votes
3answers
5k views

How to improve legend spacing for ESRI ArcGIS map

I am using ArcGIS 10.1 and am trying to achieve a fairly uniform amount of white space between the first four legend items and am having difficulties pulling this off. All four items are separate ...
3
votes
1answer
2k views

Why do some Customised Symbols look good in map but disappear from Legend on Export?

I am using ArcGIS Desktop 10.0 I created some customised symbols for my map which ArcGIS Desktop did not have. To do this I used BMP files and imported the symbols. They look good on the map but do ...
3
votes
3answers
3k views

ArcGIS legend columns

I am making a legend in ArcGIS 10, and have a few layers with a large number of classes. When I try to display the legend with two columns for that layer, the second layer always lines up with the ...
3
votes
1answer
2k views

Semi-circle representation in legend - ArcGIS!

I have a little problem that needs solving. How to represent the legend in ArcMap as in the picture above? Or as semi-circle instead of complete circles?
3
votes
2answers
2k views

Changing Names in TOC Doesn't Update Legend Properly

This is related to an ArcMap add-in I coded up this past week. I'm trying to rename a layer in ArcMap and have the legend refresh properly. The renaming part is working fine, however I cannot get the ...
3
votes
1answer
50 views

Virtual Layer Symbology in Legend

I am new to QGIS and I'm using QGIS 3.8 on a Windows machine. I'm creating a commuter flow map using a virtual layer similar to the one Anita Graser has created here. When I try to add in a legend all ...
3
votes
1answer
40 views

Finding X/Y position of Layout Element using PyQGIS

Using QGIS 3.10, I am attempting to move a legend in one layout to the same position as a legend in another layout. I just can't figure out how to get the X/Y position of the first legend. project = ...
3
votes
1answer
295 views

Is it possible to change the legend so the symbol is on the right side?

Is it possible to change the legend arrangement so the symbol will be in right side and the label description will be in the left side? The QGIS default is label description in the right side and the ...
3
votes
1answer
5k views

Adding and removing legends with layer selection in Leaflet

I'm new to Leaflet/Javascript and have been struggling to get legends a map to show only when a specific layer is selected from the layer control. I have three layers, one of which I would like to ...
3
votes
2answers
1k views

Replicating QGIS color ramp style in R?

I want to use rgdal to plot a shapefile graduating the colour of features according to the values of one field (density). I couldn't find online detailed indications on how to do it and the package ...
3
votes
2answers
1k views

Geoserver create Legend for WMS Service

I am working with Geoserver for some weeks now and were able to deploy some services already. For my thematic map (e.g. temperature) I created a custom style displaying all tiles in specific colors (...
3
votes
1answer
196 views

Proper assignment of QML legend to raster failed in QGIS 3.0.1

I downloaded raster data sets together with the legend qml files from the SoilGrids page (ftp://ftp.soilgrids.org/). Assignment of the qml legend (TAXOUSDA_1km/TAXN_WRB_1km) didn't work in QGIS 3, as ...
3
votes
1answer
335 views

GeoServer: Legend title with single feature layer

Been working with GeoServer for some time now. While working with the publishing tab of the layer, I noticed a problem. Every time that I set the default style with a single featured CSS style, the ...
3
votes
2answers
722 views

Assign predefined legend style to raster layer via qml in QGIS [closed]

I work with rasterized extracts of CORINE data (V 18.5 gdb) in QGis. My layers however are not depicted in the colours that are standard for CORINE, but in different shades of red. From EEA i ...
3
votes
1answer
604 views

QGIS Legend - distribution of items across columns

I'm a new QGIS user, still finding my way around. I've created a map and am now preparing for export in print composer. I've added a legend with ten items, and I want the items to break across five ...
3
votes
1answer
660 views

Creating legend in separate page using ArcMap?

Is it possible in ArcMap 10.2.2. to create a layout that shows the legend of the map on a separate page? A.k.a have two pages in layout view? So first page: full view of the map, second page: legend....
3
votes
1answer
123 views

Enable and disable styling rules

I have a vector layer in qgis. I have added a bunch of rule for this layer. This is the QDockWidget for layer in QGIS main window So each of interstate, divided, secondary is different rule added ...
3
votes
1answer
2k views

Filter MapComposer legend to only show layers visible on the map

I have written a function in Python / PyQGIS (no standalone application, so copy/paste it to the Python console editor to run it) that takes a VectorLayer as argument, creates a MapRenderer object for ...
3
votes
1answer
2k views

Flip over min/max values in a stretched symbology for raster data

In ArcMap 10.1, we can render a raster in a colour ramp (stretched) symbology to draw a raster layer based on each pixel value. However, the legend for the layer by default starts from the max value (...
3
votes
1answer
411 views

Is there any way to have the legend text above the symbol and beside it, not just above?

Is there any way to have the legend text above the symbol and beside it, not just above? What i do at present is to cut the end of the text off and insert a label then group them, however i want to ...
3
votes
1answer
2k views

Working with legend patches/symbology in ArcGIS Desktop?

I am working with a legend in a map from ArcGIS 10.1. The map is used as a template and will be used many times to create different maps. The legend is used to show a soil type and its descriptor: So,...
3
votes
1answer
2k views

How to create complex legends in Mapserver?

I want to create a color legend on mapserver. It is working but now I have to group several classes together like a heading with a group of color in it and so on. I have 10 such groups of classes. I ...
3
votes
2answers
86 views

Rotating legend item labels in QGIS Layout Manger?

I want to create horizontal legend in QGIS (v 3.8.0). Is it possible to rotate legend item labels in Layout Manager?
3
votes
1answer
72 views

Displaying a legend for a centroid, simple marker with size overwrite?

I am new to QGIS and can't figure out how to display a legend for the dot size of a centroid, simple marker. The size of the dot is dependent on a value from a CSV linked to a layer map of Europe. I ...
3
votes
1answer
64 views

QGIS print composer - Legend columns not aligning when title is deleted

I want a simple legend without a title and with 2 items side by side. I can't find an option to turn the legend off so have just deleted text from the Legend title box. I select Columns (2) - Equal ...
3
votes
1answer
222 views

QGIS 3 - Wrong legend for datadefined size points layer

I am trying to generate a proportional symbol symbology using data defined symbol size in a QGIS 3 python plugin. Here is the working code : # Symbol creation symbolLayer = ...
3
votes
1answer
697 views

How to define boundary numbers without decimal points - Geopandas

Problem The numbers in a legend has the decimal points (eg. 0.00-4.80 at the top of the legend box), when I want them to be integers without decimal points. All I care is that the boundary values are ...
3
votes
1answer
208 views

Legend disappears when printing to PDF using QGIS?

I have a figure made in the print composer, but when I "Export as pdf, both the legend and our company logo disappear. Any idea why? I have not had this problem before. Using QGIS 2.18.10
3
votes
1answer
767 views

How to convert legend to graphics in QGIS?

I am trying to convert the legend element in the print composer into graphics, like the option in the ArcGIS: Is there some way to do it with QGIS?
3
votes
1answer
414 views

Qgis Python - Legends in Horizontal

I have successfully added legends in Map using Qgis QgsComposerLegend () python programming .(using Qgis python console) but legends are added vertically.I wanted to place legend horizontally. If you ...
3
votes
1answer
439 views

How do I get the default NLCD symbology back after clipping/projecting?

NLCD landcover rasters downloaded from MRLC have default legends and symbology as shown here: http://www.mrlc.gov/nlcd11_leg.php However, when I extract the raster through a mask, or reproject the ...
3
votes
1answer
622 views

How do I read and modify heat map value classification on QGIS?

I am trying to create a heat map on human encroachment using the heatmap plugin of QGIS 2.2. I have no problems creating a good looking raster file using a 2 km radius but I can't find my way around ...
3
votes
1answer
1k views

How to change symbol size in QGIS map composer legend?

I need to set an identical size to several symbols inside a QGIS map composer legend. The 'Symbol' menu in the Legend properties allows to set a height and width but this has no effect on the size of ...