Previous topic

plot

Next topic

quiver

This Page

plotm

mipylib.plotlib.miplot.plotm(*args, **kwargs)

Plot lines and/or markers to the map.

Parameters:
  • x – (array_like) Input x data.
  • y – (array_like) Input y data.
  • style – (string) Line style for plot.
  • linewidth – (float) Line width.
  • color – (Color) Line color.
Returns:

(VectoryLayer) Line VectoryLayer.

Examples

f = addfile('D:/Temp/hdf/2010128055614_21420_CS_2B-GEOPROF_GRANULE_P_R04_E03.hdf')
lon = f['Longitude'][:]
lat = f['Latitude'][:]
axesm()
lworld = shaperead('D:/Temp/map/country1.shp')
geoshow(lworld, edgecolor='k')
plotm(lon, lat, '-b', linewidth=4)
scatterm(lon[0], lat[0], size=6, facecolor='r')
xlim(-180, 180)
ylim(-90, 90)
title('Trajectory of Flight Path (starting point in red)')
../../../../_images/plotm.png