<axes>
The <axes>
element is a child of <geograph>
and
is used to specify the plot range for the geograph.
Description
The x-axes are the longitude and y-axes is latitude.
Note: In servers with only MMA 9.0 installed, this plot range only works for the
equirectangular
projection, which is specified with
<geograph projection="equirectangular">
, the plot range will be
ignored for other projections in MMA 9.0. Syntax
<dynamic> <widget class_="graphics"> [1010data_QUERY] <graphspec> <geolayer ...> <axes xmin="[MIN_LONGITUDE]" xmax="[MAX_LONGITUDE]" ymin="[MIN_LATITUDE]" ymax="[MAX_LATITUDE]"/> </geograph> </graphspec> </widget> </dynamic>
Attributes
xmin
- Specifies the minimum longitude value to render in the geograph.
xmax
- Specifies the maximum longitude value to render in the geograph.
ymin
- Specifies the minimum latitude value to render in the geograph.
ymax
- Specifies the maximum latitude value to render in the geograph.
Example
The following example uses the <axes>
element to specify the minimum
and maximum latitude and longitude values with which to render the geograph. It uses data
from the table pub.doc.samples.geograph.states. The x
attribute to <geolayer>
specifies that the column in that table
containing the states names is names
, and the y
attribute
specifies that the column in that table containing the data to be plotted is
percapitaincome
.
<dynamic> <widget class_="graphics"> <base table="pub.doc.samples.geograph.states"/> <graphspec> <geograph type="geolayers" projection="equirectangular" title="Per Capita Income"> <title size="50" fontfamily="helvetica" color="indigo" fontweight="bold"/> <geolayer type="states" states="all" x="names" y="percapitaincome"/> <axes xmin="-90" xmax="-70" ymin="34" ymax="55"/> <legend hide="0"/> </geograph> </graphspec> </widget> </dynamic>