Other dimension will be scaled up according to the targetĮxtent’s aspect ratio. Will be used as the minimum grid length dimension, while the Located will be interpolated onto a regular grid in Regrid_shape ( int or 2-tuple of ints) – If given, specifies that the points where the barbs are Transform ( or Matplotlib transform) – The coordinate system in which the vectors are defined. V – An array of vector data in the v-direction. U – An array of vector data in the u-direction. Y – An array containing the y-positions of data points. X – An array containing the x-positions of data points. The images are stored before theīarbs ( x, y, u, v, * args, ** kwargs ) # Or to cross the date line.Ĭache ( optional) – Logical flag as to whether or not to cache the loaded The image is prepared globally, even though only a smallĪrea is used. Using a high resolution background image zoomed intoĪ small area will take a very long time to render as Have the following for each name of the image: Resolution ( optional) – The resolution of the image to read, according to ‘ne_shaded’ : Natural Earth Shaded Relief Name ( optional) – The name of the image to read according to the contents That directory is checked withįunc: self.read_user_background_images and needs to contain a JSONįile which defines for the image metadata. Images held in a directory specified by the CARTOPY_USER_BACKGROUNDSĮnvironment variable. background_img ( name = 'ne_shaded', resolution = 'low', extent = None, cache = False ) #Īdd a background image to the map, from a selection of pre-prepared autoscale_view ( tight = None, scalex = True, scaley = True ) #Īutoscale the view limits using the data limits, taking into annotate ( text, xy, xytext = None, xycoords = 'data', textcoords = None, * args, ** kwargs ) #Īdd the “transform” keyword to annotate(). Wmts_kwargs ( dict or None, optional) – Passed through to the Layer_name – The name of the layer to use. Wmts – The URL of the WMTS, or an instance. add_wmts ( wmts, layer_name, wmts_kwargs = None, ** kwargs ) #Īdd the specified WMTS layer to the axes. Wms_kwargs ( dict or None, optional) – Passed through to theĬonstructor’s getmap_extra_kwargs for definingĪll other keywords are passed through to the construction of the Layers ( string or iterable of string) – The name of the layer(s) to use. Wms (string or instance) – The web map service URL or owslib WMS instance to use. This function requires owslib and PIL to work. add_wms ( wms, layers, wms_kwargs = None, ** kwargs ) # Note that image retrievals are done at draw time, Implements the RasterSource interface, including Raster_source – cartopy.io.RasterSource like instance add_raster ( raster_source, ** slippy_image_kwargs ) #Īdd the given raster source to the GeoAxes. Examples of image factoriesĪre cartopy.io.img_nest.NestedImageCollection andĬartopy.io.img_tiles.GoogleTiles. The advantage of this approach is that the limits of the mapĭo not need to be known when adding the image factory, but canīe deferred until everything which can effect the limits has beenįactory – Currently an image “factory” is just an object withĪn image_for_domain method. With associated metadata for a given bounding box at draw time. add_image ( factory, * args, ** kwargs ) #Īny image “factory” added will be asked to retrieve an image This allows standard Matplotlib control over aspects such as Matplotlib keyword arguments can be used when drawing the feature.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |