Questions tagged [legend]
The description of the types of features included in a map, usually displayed in the map layout.
897
questions
0
votes
0
answers
25
views
Listing numbered properties in legend using numbered symbols in ArcMap [duplicate]
I am trying to create a legend for properties that are identified on the map with numbers. I'd like the legend symbol to be a yellow circle with the property number inside, with the name of the ...
1
vote
0
answers
32
views
QGIS legend different colors
I want to edit my legend in QGIS 3.28.6 manually (see picture).
Is it possible to output the individual legend elements in different colors?
For example OK Sand should be green and Grundwasser should ...
0
votes
1
answer
16
views
QGIS: Legend Patch Shapes tab is missing in Style Manager
I want to use legend patches, but my QGIS 3.4 Style Manager is missing a Legend Patch Shapes tab.
Expectations:
Reality:
3
votes
1
answer
38
views
Showing both size and color of points in legend
I am working on a project in QGIS (3.28.5-Firenze) and I need to create a map, but I am having some issues with creating a proper legend.
I am working with a point layer, where the points have ...
0
votes
0
answers
83
views
PyQGIS - Added image URL for a legend sometimes needing manual apply
I've made a QGIS plugin using Python. The issue I'm having is that the part of my code that adds a legend to my layer sometimes works correctly and sometimes I still have to manually open the layer ...
0
votes
0
answers
60
views
ol-ext: control legend with image item - how to decrease space between items?
I'm using the example http://viglino.github.io/ol-ext/examples/legend/map.control.legend.image.html with OpenLayers to show the legend of my layers.
However, I would like to decrease the space between ...
0
votes
1
answer
43
views
Keeping symbol from stretching to patch size
How is a symbol shape maintained without stretching to the patch size?
Attached images are legends in ArcMap and ArcGIS Pro to illustrate difference. In ArcGIS Pro, the symbol shape looks good in the ...
2
votes
1
answer
55
views
Show only features within current Atlas feature in legend
I want to create a atlas showing in the legend only the layer that is displayed on that page.
There are two options for the legend item:
only show items inside linked map
only show items inside ...
0
votes
0
answers
35
views
Show feature count as percentage in the legend
Similar to Formatting legend item and feature count text in ArcGIS Pro ,is there a way to show the feature count as percentage (like 45%) in the legend?
1
vote
0
answers
29
views
Loading WMS service to display WMS legend when exporting map layout
I am using QGIS 3.2.0 and want to use PyQGIS to load WMS services to the layout and output the layout and end up with a PNG image. The problem is with the legend, which is not showing on the map.
...
1
vote
0
answers
43
views
Legend is cropped after exporting Print Layout to .png using PyQGIS
Some legends looks like that, after rendering a few layouts in a row.
I tried all these methods in the code, but in cases when previous Print Layout has smaller Legend's size - it's just doesn't work ...
3
votes
1
answer
81
views
QGIS Atlas: Dynamic classification legend for raster values, based on extent of atlas feature
I am making a series of maps with the QGIS atlas (print layout composer). I want to show a raster layer on several extents. The extents are defined using a vector layer. The vector layer is used as ...
0
votes
0
answers
11
views
ArcMap Layout View two attributes nice legend [duplicate]
I'd like to create a map where one layer is displayed depending on two attributes, color and size. I already managed to display this, but I do not yet have a nice legend entry. Only a very big and ...
1
vote
1
answer
46
views
Remove Band items in Raster layer Legend item
Creating a legend for a project that has a raster layer, and I cannot work out how to remove the Red Green Blue band display in the Legend.
QGIS 3.28
4
votes
1
answer
82
views
Shared symbol for several items in QGIS legend
I have a geojson layer in QGIS with a list of buildings spread over a region that will be displayed on the legend, as on the image attached, by a yellow rounded dot. I am wondering if I can add an ...
4
votes
1
answer
54
views
QGIS: Manually control "showFeatureCount" display for layer labels in legends
Is there a way to manually control the feature count for vector layer legend entries in a print layout in QGIS?
Activate feature count for a vector layer in the layer tree context menu for the layer
...
2
votes
0
answers
20
views
Auto update legend without specific layer informations that still have to be displayed in the map
I am creating a map and want to export it via the atlas feature.
In this map, I want to display certain symbols that I don't want to be displayed in the legend item. At the same time, I want to check ...
2
votes
0
answers
31
views
Why does QGIS not show legend when layer has multiple styles
When using QGIS with layers that have one style it loads the legend of that style automatically, which is what I want. But when I have a layer with multiple styles when I load the default layer it ...
0
votes
1
answer
95
views
Adding an URL image as a legend through PyQGIS [closed]
I am trying to add an URL image as a legend to a layer in QGIS programmatically using Python.I can do it manually through the layer menu (see image below). However, I have not been able to find any ...
1
vote
1
answer
73
views
How to build a legend for polygon layer with fill color coming from data field?
I have a polygon layer published in GeoServer through PostgreSQL (PostGIS) and I am trying to build a legend to use with GetLegendGraphich. The layer is requested as WMS layer in client with Leaflet ...
1
vote
1
answer
64
views
Setting layout legend style in PyQGIS
I have tried to set the legend style but all methods I had tried were error, there is one example I tried to change the font style of legend:
legend = QgsLayoutItemLegend(layout)
legend.setTitle("...
0
votes
0
answers
12
views
Codes for facecolor that match map colors in OrRD
I've created a map in OrRD using .plot in GeoPandas. However, I need to label my legend. I've tried using the .legend command and this seems to create a new legend. The code that I'm using is as ...
1
vote
2
answers
86
views
Entering line break into legend header using ArcGIS Pro GUI
I have a script that programmatically creates maps using a single layout. To keep everything consistent in my script, I'm trying to add a new line specifically to the legend header. Strangely, I can ...
0
votes
1
answer
53
views
Updating legend for graduated symbol using PyQGIS
I'm trying to programmatically modify the upper and lower range values and the label on the graduated symbol renderer of a map layer, then producing a PDF from a layout based on that map.
The map item ...
0
votes
0
answers
36
views
Changing symbol size in QgsLayoutItemLegend without changing symbol size on the map
I have created a script that changes the symbol size for QgsLayoutItemLegend. But at the same time, the symbol size changed on the map. How to avoid changing the symbols on the map and change them ...
1
vote
1
answer
72
views
Adding group items to Layout legend using PyQGIS
I want to add to the Print Layout Legend groups, subgroups, and layers using PyQGIS like in the picture:
But I can only add layers:
root = QgsLayerTree()
layers_ = self.qgis_project.mapLayers()....
2
votes
0
answers
50
views
Adding auto-updating expressions to legend in QGIS
I am trying to add an expression to a legend item in my print layout that auto-updates when values in the field change.
Essentially, I have a layer with a field which calculates the length of each ...
0
votes
0
answers
16
views
will arcpy.mapping.ConvertWebMapToMapDocument removes the legend element associaated with active dataframe of layout template?
I am trying to create a custom print service. in the script I am using ConvertWebMapToMapDocument to convert the web map passed from web application to a map document. in the template document I have ...
2
votes
0
answers
50
views
Horizontal legends in QGIS: Rendering columns from right to left
I’m working on a mapping project in a right-to-left language and I’m using horizontal legends with multiple columns in my layout. I’ve already set the title of my legend elements to right, but it ...
1
vote
0
answers
37
views
How to show decimals for distance (i.e. 1.5m) in Legend Item Name on QGIS [closed]
I have created my map but my Legend Items Labels are not showing the indicated distance in meters with decimals typed in. the legend item cuts off and begins a new line. For instance, I have a legend ...
1
vote
1
answer
58
views
Remove symbology title in the legend in AGOL Maps
I cannot figure out how to remove the symbology title in the legend in ArcGIS Online. See the attached image. Can anyone please explain how to remove the 'cluster_type_Organization_Type'?
2
votes
1
answer
49
views
How can I create a 3-dimensional cube legend (R)?
Has anyone ever plotted a 3-D (cube) legend as shown below? Essentially trivariate mapping.
I would like to recreate the below using the same variables of population, built (% area that is built up) ...
7
votes
1
answer
188
views
QGIS: Aligning elements in the second column in the legend
I am not able to create a legend in such a way that the legend elements from the second column are below its title, i.e. the element "222" is at the same height as "111". How to ...
1
vote
1
answer
489
views
Plot two legends in same map with GeoPandas
I'm trying to plot two shape files: shape_geo and shape_dam, but the legend for the second map doesn't show up.
This is the code I'm trying:
fig, ax = plt.subplots()
shape_geo.plot(ax=ax, column='...
2
votes
1
answer
159
views
GEE Plotting Legends - automatic assignment of colors and values
I have added the legend in the map but I have hard-coded the values and the colors like this:
ldict = {'-1.0 - 0.0':'#FFFF00',
'0.0 - 0.3': '#c7d270',
'0.3 - 0.5': '#81B622',...
0
votes
1
answer
118
views
Representing different borders in tmap legend
my map looks similar to this one:
# import shapefile
shape_data <- system.file("shape/nc.shp", package="sf")
shape_data <- st_read(shape_data)
sample_data <- filter(...
0
votes
0
answers
49
views
Adding Legend in StoryMap Map Tour
Currently looking for work arounds to ESRI's StoryMap limitations on their Map Tour content.
Map Tour allows you to cycle through a list of points while displaying attachments, some attribute info, ...
0
votes
0
answers
49
views
Why is my code changing the labeling for my legend?
By default, the legend that is created from a layout includes a label with the field name. However, when I run my Python script to change the symbology of a layer, the label is changed to include the ...
3
votes
1
answer
89
views
'Text on Symbols' vector legend how to call 'Set Labels from Expression...' or similar from PyQGIS
I am trying to programmatically set vector legend Text on Symbols with PyQGIS. This can be manually performed from Layer Properties -> Legend -> Text on Symbols -> Set Labels from Expression.....
4
votes
0
answers
135
views
Custom layer legend properties don't show up on QGIS Server
In QGIS there is no UI option to remove Band name from raster layer legends and invert their order. That's why a made a PyQGIS script to do that from Python console. This works great and shows up in ...
0
votes
1
answer
65
views
QGIS 3 atlas : stabilize/keep the same legend position for all maps
I work with QGIS 3.22.
For an atlas I'm trying to make not only the legend content fit the content (it works)
but also that the bottom position of the legend is always the same. So I want to'stabilize'...
1
vote
1
answer
55
views
QGIS 3.16 print composer - possible to manually adjust placement of items in legend?
I am having an issue with legend formatting in QGIS 3.16 print composer. I have 3 columns in the legend, and a limited amount of vertical space in the layout in which to fit the legend. All of the ...
0
votes
0
answers
84
views
Managing style file in ArcPy using ArcGIS Pro
I am trying to update a geoprocessing service that was in ArcMap to ArcGIS Pro. The geoprocessing services use a style file for its legend and I want to update certain legends but I have no idea how. ...
0
votes
0
answers
29
views
QGIS 3 (Composer) : Save Legend texts (into PostGIS db)?
With QGIS 3.22, when I reopen a composer of a QGIS project, I am surprised that the names I gave to the layers in the legend are not preserved. How to manage those legend texts default saving with ...
1
vote
1
answer
237
views
GeoPandas | Legend not showing
Goal: Show legend
I've set legend=True and no difference was made.
for i in list(range(NUM_SLIDES)):
d = {'col1': ['Foo', 'Bar', 'Sue'], 'geometry': [foo[i], bar[i], sue[i]]}
gdf = gpd....
4
votes
1
answer
143
views
Creating shading legend in QGIS
I want to create a legend next to my map in QGIS. Instead of the classes as legend entries (first picture), I want to add shading as shown in the second one.
I found this workaround "Create a ...
2
votes
0
answers
51
views
GeoServer legend in ArcMap
I have created a WMS service showing a simple polygon layer with three categories which I use for styling.
In QGIS I can simply expand/click the layer in Layers panel and see the legend.
In ArcMap ...
2
votes
2
answers
273
views
Formatting tag, <ITA></ITA> for italics not working in ArcMap and ArcGIS Pro legend
I've been editing a species name in the legend regularly for the past few months of mapping by using:
<ITA>speciesname</ITA>, and then the rest of the label
For some reason, this method ...
1
vote
1
answer
80
views
Exporting names of "legend column" to spreadsheet (and not value) using QGIS
I want to export a layer to spreadsheet but need the name in the "legend" column (see pic).
Does anyone have a solution for this?
When I use the tool "export to spreadsheet", it's ...
3
votes
0
answers
136
views
Vertical alignment of the legend text in QGIS map printer
I'm using QGIS 3.22.11-Białowieża to create a map with a point layer. Point size depends on the values of a certain attribute and, when creating the legend in the print-composer, I would like to have ...