GMT powered automatic maps¶
plot.automap¶
-
class
Map(gmtversion='newest', **kwargs)[source]¶ Undocumented.
-
♦
lat¶ float, optional
-
♦
lon¶ float, optional
-
♦
radius¶ float, optional
-
♦
width¶ float, default:20.0
-
♦
height¶ float, default:14.0
-
♦
margins¶ listoffloatobjects, default:[]
-
♦
illuminate¶ bool, default:True
-
♦
skip_feature_factor¶ float, default:0.02
-
♦
show_grid¶ bool, default:False
-
♦
show_topo¶ bool, default:True
-
♦
show_scale¶ bool, default:False
-
♦
show_topo_scale¶ bool, default:False
-
♦
show_center_mark¶ bool, default:False
-
♦
show_rivers¶ bool, default:True
-
♦
show_plates¶ bool, default:False
-
♦
show_boundaries¶ bool, default:False
-
♦
illuminate_factor_land¶ float, default:0.5
-
♦
illuminate_factor_ocean¶ float, default:0.25
-
♦
color_wet¶ tupleof 3intobjects, default:(216, 242, 254)
-
♦
color_dry¶ tupleof 3intobjects, default:(172, 208, 165)
-
♦
color_boundaries¶ tupleof 3intobjects, default:(1, 1, 1)
-
♦
topo_resolution_min¶ float, default:40.0minimum resolution of topography [dpi]
-
♦
topo_resolution_max¶ float, default:200.0maximum resolution of topography [dpi]
-
♦
replace_topo_color_only¶ FloatTile, optionalreplace topo color while keeping topographic shading
-
♦
topo_cpt_wet¶ str, default:'light_sea'
-
♦
topo_cpt_dry¶ str, default:'light_land'
-
♦
axes_layout¶ str, optional
-
♦
custom_cities¶ listofCityobjects, default:[]
-
♦
gmt_config¶ dictofstrobjects, default:{}
-
♦
comment¶ str, optional
-
save(outpath, resolution=75.0, oversample=2.0, size=None, width=None, height=None, psconvert=False)[source]¶ Save the image.
Save the image to
outpath. The format is determined by the filename extension. Formats are handled as follows:'.eps'and'.ps'produce EPS and PS, respectively, directly with GMT. If the file name ends with'.pdf', GMT output is fed throughgmtpy-epstopdfto create a PDF file. For any other filename extension, output is first converted to PDF withgmtpy-epstopdf, then withpdftocairoto PNG with a resolution oversampled by the factoroversampleand finally the PNG is downsampled and converted to the target format withconvert. The resolution of rasterized target image can be controlled either byresolutionin DPI or by specifyingwidthorheightorsize, where the latter fits the image into a square with given side length. To save transparency usepsconvert=True.
-
♦