Display - Maple Help

DataSets[Builtin][WorldMap]

 Display
 create and display a plot for a WorldMap object

 Calling Sequence Display(m) Display(m,options,plotopts)

Parameters

 m - a WorldMap object options - (optional) keyword options of the form option=value, where option can be colorantarctica, colors, grid, projection, watercolor, or mapdata plotopts - (optional) standard keyword plot options, as explained on the plot,options help page

Options

 • colors : specifies the set of colors that are used for the plot. colors is either a list of colors in formats recognized by ColorTools, a string which must be the name of a palette, or a ColorTools[Palette] object. The default is to use the Patchwork palette.
 • colorantarctica : truefalse; specifies if Antarctica is colored according to the provided color scheme, rather than the default white color.
 • grid : truefalse; controls the display of a grid of so-called graticule lines: curves of constant latitude and curves of constant longitude. By default, grid is set to be false. If it is true, this command shows latitude and longitude curves both at intervals of 15 degrees.
 • projection : specifies the name of the supported map projection to use. The default projection is MillerCylindrical. See ListOfProjections for a complete list of supported map projections.
 • watercolor : color object, plot color, or a color string recognized by ColorTools; specifies the color of oceans and other bodies of water.
 • mapdata : one of the strings or names coarse, medium, fine, or deduce. Maple has three different grades of fineness of map data, selected by specifying coarse, medium, or fine for this option. The default value is deduce, which enables the following rule.  For projections that are typically used to display the whole world, Maple will use the coarse data. (In particular, if the Globe projection is selected, the mapdata option is ignored; Maple always uses coarse data.) For other projections, Maple will compute the area of the map to be displayed as a fraction of the whole world map. If this fraction is greater than 1/16, choose the coarse map data; otherwise, if it is greater than 1/256, choose the medium map data; otherwise, choose the fine grained map data.
 The coarse and medium map data consist of polygons for independent countries. The fine grained map data consists of polygons for subdivisions of countries.

Description

 • The Display command creates and displays a map plot for m.

Examples

 > $m≔\mathrm{DataSets}:-\mathrm{Builtin}:-\mathrm{WorldMap}\left(\right)$
 ${m}{≔}\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (1)

Specify the colors used for the plot through the colors keyword option

 > $\mathrm{Display}\left(m,'\mathrm{colors}'="spring",'\mathrm{watercolor}'="white",'\mathrm{colorantarctica}'\right)$
 > $\mathrm{Display}\left(m,'\mathrm{colors}'=\left["red",\mathrm{ColorTools}:-\mathrm{Color}\left("green"\right),'\mathrm{COLOR}'\left('\mathrm{RGB}',0,0,1\right),"#78000E"\right],'\mathrm{watercolor}'="white",'\mathrm{colorantarctica}'\right)$

Display the world using various map projections

 > $\mathrm{Display}\left(m,\mathrm{projection}=\mathrm{Werner}\right)$
 > $\mathrm{Display}\left(m,\mathrm{projection}=\mathrm{Robinson}\right)$
 > $\mathrm{Display}\left(m,\mathrm{projection}=\mathrm{AzimuthalEquidistant}\left(0,90\right),\mathrm{grid}=\mathrm{true}\right)$

Add some highlighted points to m. Displaying m will then show a smaller part of the map that contains these points.

 > $\mathrm{AddPoint}\left(m,\left[-80.52,43.47,"Waterloo"\right]\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 1 point}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (2)
 > $\mathrm{AddPoint}\left(m,\left[4.40,50.71,"Waterloo"\right]\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 2 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (3)
 > $\mathrm{Display}\left(m\right)$

This map shows about 1/12 of the entire world map, but we might want to see more detail. That can be achieved with the mapdata option.

 > $\mathrm{Display}\left(m,'\mathrm{mapdata}'="medium"\right)$
 > 

Compatibility

 • The DataSets[Builtin][WorldMap][Display] command was introduced in Maple 2017.