Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [legend]

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

3
votes
1answer
212 views

programmatically populating the QGIS Legend [closed]

So I have a function in a utility class that creates my Legend for the composer. It looks something like this: def addLegend(self, c, r, L, tree_root): L.model().setLayerSetAndGroups(tree_root) ...
3
votes
0answers
381 views

LegendGraphic gray color from external SLD file

I'm trying to add legendgraphic from a WMS layer with an external SLD file wich is generated dynamicly. The legend is added but the colors from SLD file are all gray. The WMS layer is colored by SLD ...
3
votes
1answer
755 views

Altering legend labels in Matplotlib

I have a choropleth map which displays crime percentage change. It is plotted from a geodataframe and the choropleth intervals are determined in the background by Python. Unfortunately, the first ...
3
votes
0answers
124 views

How to set more than one font sizes for a legend item in a QGIS?

I am looking for a possibility to set a second font size for one legend item in QGIS (2.8.1) Printcomposer. For every item (name of a plant) I need a smaler expression in brackets (name in latin). Is ...
3
votes
0answers
149 views

Remove Legend from CartoDB Layer

I am trying to remove the legend associated with the current CartoDB generated map and replace it with a legend from a map generated when the user selects a radio button. My code is as follows: ...
3
votes
0answers
193 views

Lining up polygon legend patches in ArcGIS for Desktop? [closed]

I have tried the properties and everything, I can't understand why my polygons are not lining up correctly in the legend. I created this legend the usual way by adding my three layers to the legend ...
3
votes
0answers
6k views

Adding count of features in categories to legend using ArcGIS for Desktop? [duplicate]

I am using ArcGIS 10.1 for Desktop and I would like to know How to add the Count (which is visible on the Symbology tab of the Layer Properties dialog) to the legend?
3
votes
0answers
157 views

Moving legend items up and down in QGIS

How can I change sort order in layer properties styles tab? The only way I've found is to change their labels and order by it.
3
votes
0answers
419 views

Make Graph (Data Management), Changing item names in legend [closed]

I'm having python produce a multi-series graph. How do you change the series name in the legend, the default being Vertical Bar, Vertical Bar1, Vertical Bar2.... arcpy.MakeGraph_management(...
2
votes
2answers
2k views

How to only display active layers in legend?

In QGIS, in the Print Composer's Legend function, how do I make it so that the Legend automatically displays only the active layers (i.e. the layers that are checked and therefore displayed on the map)...
2
votes
2answers
833 views

Adding group in Legend in QGIS Map composer?

There is a Map composer with created map. I want to "Add group" to Legend - it appears in the Legend Properties, but not in Legend on the map. I am using QGIS 2.18.8. This problem was also in 2.16 ...
2
votes
3answers
13k views

Unable to edit legend in ArcGIS layout view

Somehow I can’t open the legend properties after converting it to graphic in layout view – from what I’ve read in the ArcGIS guide and online, I should be able to edit everything on the legend through ...
2
votes
2answers
850 views

A raster map without a legend?

I simply download a map from here http://neo.sci.gsfc.nasa.gov/view.php?datasetId=MCD12C1_T1. this map is a tiff file. mapd <- raster("C:\\MCD12C1_T1_2011-01-01_rgb_1440x720.TIFF") plot(mapd) ...
2
votes
2answers
345 views

Display extent indicators in the legend?

Can you link the data frame extent indicator box with your legend so that the legend displays a symbol and description representing the box?
2
votes
2answers
202 views

MapInfo legend editing for right to left text

I work with some right to left text (Arabic, Hebrew) and I would like the legend to be from right to left instead of the current left to right. Is there any way of doing this in MapInfo?
2
votes
2answers
1k views

Legend symbol angle in ArcMap 10.3

I work on a map with rotate data frame. When I create the legend, the symbol line in the layers on the legend are angle to different directions than the layers in the map: I try to find a way (...
2
votes
1answer
253 views

How to create legends with triangular end boxes in arcGIS?

I want my legend which is now in the form of the left bar in the following image, to be shown in the form of the bar in the right side. I couldn't find anything related for arcGIS. Does anyone ...
2
votes
2answers
375 views

Combining two layer symbologies into single legend item using QGIS?

In QGIS 2.18.13 on Windows 10, I have symbolized a polygon with two layers on top of either other; the bottom layer is a solid fill color, and the top layer is a BDiagonal (hash). The two layers ...
2
votes
3answers
1k views

Adding a legend to points in the tmap package

I am trying to create a map with several points (about 20), where each point will be represented by a number, and where a legend will have these numbers and names of my points. Is it possible to do ...
2
votes
1answer
714 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 ...
2
votes
2answers
443 views

Using legend with dijit/form/DropDownButton in ArcGIS API for JavaScript?

I am very new to the ArcGIS API for Javascript and am by no means a programmer. Nonetheless, I have been fairly successful at finding existing code and modifying it to my needs. That is, until now. I ...
2
votes
2answers
1k views

CartoDB choropleth + bubble visualization with two independent value ranges in legend

I have been trying to display two values simultaneously i.e. one absolute value displayed by bubble size (as with layer wizard: bubble) and one relative value displayed by color (as with layer wizard: ...
2
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 ...
2
votes
1answer
86 views

Symbology for multiple attributes within the same feature class in ArcMap

How to represent two variables in one graduate symbol "figure", colors and graduate size circles.
2
votes
1answer
218 views

Categorizing multiple entries in QGIS?

I am trying to categorize a polygon layer with several buildings, by the number of floors. I want to aggregate by classes like this way: 1 floor = 1 to 2 floors; 2 floors = 1 to 2 floors; 3 floors = ...
2
votes
1answer
2k views

Adding a Layer Control Legend based on geoJson properties

I have a Leaflet map app in which I am having difficulty getting the L.Control to function properly. The app pulls points based on data from a geoJson file. The geoJson data has a property "Type" (...
2
votes
1answer
560 views

Arcmap legend: select only part of the elements

I have to export a map. In my map, I unified several features under the same colour because because for my job they are exactly the same. My problem is that, when I create a legend, I get something ...
2
votes
1answer
645 views

Can QGIS place diagrams in map legend?

I have this map and I want to put these red circles in the legend of the map according to this form: Is there a way to do that in QGIS?
2
votes
2answers
195 views

What exactly to write inside legend_exp column so that color Legend is seen in Qgis2Leaf?

I am new to qgis2leaf. I am getting the through qgis2leaf plugin. But as one can see i am not getting a color legend. I need to get the colors of bldg_use so that the map becomes readable. I ...
2
votes
2answers
2k views

Add a legend in an ArcGIS Javascript API

I am quite new to Javascript. I have made a html script that includes services I published to ArcGIS for server. It all does exactly what I want and I made it by copying working scripts together and ...
2
votes
3answers
3k views

How to change properties of an item in a legend in ArcMap 10.2 using python

For many of my projects I use a single mxd to create multiple maps using a python script to switch on/off various raster layers before exporting to pdf. Before beginning the exporting process I ...
2
votes
1answer
2k views

Legend labels for Vector layer symbols - how to name them (GeoEXT)

I'm coding with GeoExt and I have some problems trying to display the names of diferent features in a vector layer. This is my code: mapPanel = new GeoExt.MapPanel({ map: map }); legendPanel = ...
2
votes
1answer
2k views

QGIS WMS Layer - Returned legend image is flawed

I succeed in connecting to the following WMS in QGIS (2.14.15 LTR): https://secure.erlangen.de/arcgiser/services/Luftbild2016/MapServer/WMSServer?SERVICE=WMS&REQUEST=GetCapabilities ... with the ...
2
votes
1answer
321 views

Change symbology in the legend- QGIS 2.14

I work with a point layer. When i create a buffer for the point layer, i get this result: My problem is that instead of circle buffer in the legend, i get a rectangle. I red this in order, maybe, to ...
2
votes
1answer
2k views

show/hide button for leaflet legend

Is it possible to add a simple show/hide button on the leaflet map which will allow the user to see the legend on choice? Here is my code for the legend: var legend0 = L.control({}); ...
2
votes
1answer
431 views

Color ramp with legend based on attribute calculation in QGIS

Using the attribute table below, I want calculate a new field using the formula (field3+field4+field5+field6)/field7. Field 7 will be always larger than the addition of fields 3 through 6, so the new ...
2
votes
1answer
198 views

Austrian-hungarian map: Franzisco-Josephinische (3) Landesaufnahme - Legend

Currently I work with the Franzisco-Josephinische (3) Landesaufnahme (Austria-Hungary) map in area around Lake Neusiedel. There are some map sheets around Vienna with the scale of 1:12.500 In the ...
2
votes
2answers
675 views

Dynamic Legends in ArcGIS Pro?

I just tried to use Dynamic Legends in ArcGIS Pro 1.2 and have not been able to find them in either the application or its documentation. I expected to find them as something like an Only show ...
2
votes
1answer
306 views

Change anchor point using ArcPy

Is it possible to changed the legend element anchor point using arcpy? This is the default anchor point: and i want this anchor point loaction: I know how to changed the legend element position x,y....
2
votes
1answer
120 views

Dashes instead of “to” in mapinfo thematic legend

The thematic legends for ranges are automatically set to the word "to", for example "10 to 20" "20 to 30" etc. I need to write it with a dash instead: "10-20", "20-30". Can I change the default ...
2
votes
1answer
3k views

Customize Legend Geoserver

I am showing a legend coming from a geoserver. The SLD defining the layer is scale depending. Calling the GetLegendGraph like this results in a legend that shows both scales. I read about the ...
2
votes
3answers
2k views

Export/Save graphic created in ArcMap

I created a legend for a Map with ArcMap 10.2.2. I converted it to graphic and want to export or save it as an image. How can I do? Can't figure it out.
2
votes
1answer
1k views

What's the QGIS Legend Format Syntax to have thousands separated by commas?

I have numbers in the millions and would like to know what string to enter in the Legend Format box to have thousands separated by commas ex: 2,000,000
2
votes
3answers
5k views

Adding Leaflet legend?

I am trying to add a legend to my leaflet map and no matter what I try I cannot get it to display properly. I have imported a point level geojson into my map and I have styled the points in a similar ...
2
votes
1answer
931 views

How to customize the ArcGIS print legend text using javascript

Is there a way to customize ArcGIS print service so that it will not print the layer id and the string that is given in ClassBreakRenderer in the legend. var layer = new FeatuerLayer(url, { id: "...
2
votes
1answer
5k views

Spplot labels in R how to change

Can anyone tell me how to change the labels in a legend created by spplot in R? It is a typical vertical ribbon legend automatically generated by spplot. Based on color, it is labelled 1-7 but I ...
2
votes
1answer
2k views

How to EASILY add a map legend to a map in Geoserver?

I'm new to Geoserver and Neatline and somewhat to HTML coding! But, I am clueless as how to 'EASILY & Cheaply " include a simple legend on a map using a WMS statement. I have been able to use ...
2
votes
1answer
6k views

Adding and toggling legend with layer in OpenLayers?

I'm currently trying to add a legend to my map and to show/hide it, when the corresponding layer (an image layer) is shown/hidden. My approach was to add a custom button with a .png of my legend. That ...
2
votes
1answer
603 views

How to move the QGIS Layerpanel/Dockwidget programmatically

i'm working on a QGIS-plugin and want to move the default LayerPanel/Dockwidget to somewhere else programmatically. More specific: i want to move it into a tab of my tabwidget. Is this possible? How ...
2
votes
2answers
50 views

Writing italic form scientific name in map legend?

I am trying to use Italic scientific name in my legend, I am using QGIS 3.4. I can not figure out how to do only two-word italic without having the rest of the description being italic. Is it ...