Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column
width60%


Panel

mcoast (macro/python)  pcoast (fortran)


Magics will project coastlines and latitude/longitude grid lines onto requested areas, as defined by the user.

The coastline data used by Magics is the dataset maintained by  by Natural Earth. This data allow the user to display political boundaries, rivers and capitals.
The plotting of coastlines, boundaries, rivers, cities and and grid lines is achieved by calling the action routine pcoast.
Parameters exist in Magics to enable users to control the plotting of coastlines. These parameters should be set before pcoast is called. Users can control the line style, colour, shading, resolution etc of coastlines as well as the number, colour and quality of grid lines. Users also have control over the plotting of grid line labels.
Magics default values for coastline, grids and labels ensure that users always achieve a reasonable plot. However, if these default values are not suitable, users can set any or all of the parameters to their own chosen valuevalues.

 




Column
width30%


 

 

Panel
titleQuick links

Jupyter notebooks:

Gallery:




Info
titleNew in 2.35.0




Frame around Robinson or Mollweide projection

A set of parameters have been added to enable users to add a frame around the Robinson or Mollweide projections. To set projections see Coastlines


Code Block
languagepy

You can now use you own shape files ( restricted to some formats ) to display administrative information as background .

Imagine you have a set of shape files : prov10.dbf  prov10.prj  prov10.shp  prov10.shx

You can visualise them using the following setting
mcoast(map_
user
grid_
layer
frame = "on",

  map_grid_
user
frame_
layer
line_
name
style = "
mypath/prov10
solid",

  map_
user
grid_
layer
frame_
style = "dash",
thickness = 2,
  map_
user
grid_
layer
frame_colour = "
navy
charcoal"

)

Image Removed


 Image Added Image Added



HTML
<div id="magics">	
</div>

<script src="/wiki/download/attachments/13207038/magdoc.js"></script>
<link rel="stylesheet" type="text/css" href="/wiki/download/attachments/13207038/magics.css" />
<link rel="stylesheet" type="text/css" href="/wiki/download/attachments/13207038/jquery.miniColors.css" />
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="/wiki/download/attachments/13207038/jquery.miniColors.js"></script>



<script>
	load("/wiki/download/attachments/13893682/coast.json");
</script>
 

...