Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from cartopy import feature as cf
from .element import Feature
borders = Feature(cf.BORDERS, group='Borders')
coastline = Feature(cf.COASTLINE, group='Coastline')
land = Feature(cf.LAND, group='Land')
lakes = Feature(cf.LAKES, group='Lakes')
ocean = Feature(cf.OCEAN, group='Ocean')
rivers = Feature(cf.RIVERS, group='Rivers')
states = FEATURE(cf.STATES, group='States')
grid = Feature(cf.NaturalEarthFeature(category='physical',
name='graticules_30',
scale='110m'), group='Grid')
from cartopy import feature as cf
from .element import Feature
borders = Feature(cf.BORDERS, group='Borders')
coastline = Feature(cf.COASTLINE, group='Coastline')
land = Feature(cf.LAND, group='Land')
lakes = Feature(cf.LAKES, group='Lakes')
ocean = Feature(cf.OCEAN, group='Ocean')
rivers = Feature(cf.RIVERS, group='Rivers')
states = FEATURE(cf.STATES, group='States')
grid = Feature(cf.NaturalEarthFeature(category='physical',
name='graticules_30',
scale='110m'), group='Grid')
from cartopy import feature as cf
from .element import Feature
borders = Feature(cf.BORDERS, group='Borders')
coastline = Feature(cf.COASTLINE, group='Coastline')
land = Feature(cf.LAND, group='Land')
lakes = Feature(cf.LAKES, group='Lakes')
ocean = Feature(cf.OCEAN, group='Ocean')
rivers = Feature(cf.RIVERS, group='Rivers')
states = FEATURE(cf.STATES, group='States')
grid = Feature(cf.NaturalEarthFeature(category='physical',
name='graticules_30',
scale='110m'), group='Grid')
from cartopy import feature as cf
from .element import Feature
borders = Feature(cf.BORDERS, group='Borders')
coastline = Feature(cf.COASTLINE, group='Coastline')
land = Feature(cf.LAND, group='Land')
lakes = Feature(cf.LAKES, group='Lakes')
ocean = Feature(cf.OCEAN, group='Ocean')
rivers = Feature(cf.RIVERS, group='Rivers')
states = FEATURE(cf.STATES, group='States')
grid = Feature(cf.NaturalEarthFeature(category='physical',
name='graticules_30',
scale='110m'), group='Grid')
from cartopy import feature as cf
from .element import Feature
borders = Feature(cf.BORDERS, group='Borders')
coastline = Feature(cf.COASTLINE, group='Coastline')
land = Feature(cf.LAND, group='Land')
lakes = Feature(cf.LAKES, group='Lakes')
ocean = Feature(cf.OCEAN, group='Ocean')
rivers = Feature(cf.RIVERS, group='Rivers')
states = FEATURE(cf.STATES, group='States')
grid = Feature(cf.NaturalEarthFeature(category='physical',
name='graticules_30',
scale='110m'), group='Grid')
(x, y, text, fontsize,
horizontalalignment, verticalalignment, rotation) = data
opts['fontsize'] = fontsize
if crs:
x, y = axis.projection.transform_point(x, y, src_crs=crs)
return [axis.text(x, y, text,
horizontalalignment=horizontalalignment,
verticalalignment=verticalalignment,
rotation=rotation, **opts)]
# Register plots with HoloViews
Store.register({LineContours: LineContourPlot,
FilledContours: FilledContourPlot,
Image: GeoImagePlot,
Feature: FeaturePlot,
WMTS: WMTSPlot,
Tiles: WMTSPlot,
Points: GeoPointPlot,
Labels: GeoLabelsPlot,
VectorField: GeoVectorFieldPlot,
Text: GeoTextPlot,
Layout: LayoutPlot,
NdLayout: LayoutPlot,
Overlay: GeoOverlayPlot,
Polygons: GeoPolygonPlot,
Path: GeoPathPlot,
Contours: GeoContourPlot,
RGB: GeoRGBPlot,
Shape: GeoShapePlot,
Graph: GeoGraphPlot,
TriMesh: GeoTriMeshPlot,
from cartopy import feature as cf
from .element import Feature
borders = Feature(cf.BORDERS, group='Borders')
coastline = Feature(cf.COASTLINE, group='Coastline')
land = Feature(cf.LAND, group='Land')
lakes = Feature(cf.LAKES, group='Lakes')
ocean = Feature(cf.OCEAN, group='Ocean')
rivers = Feature(cf.RIVERS, group='Rivers')
states = FEATURE(cf.STATES, group='States')
grid = Feature(cf.NaturalEarthFeature(category='physical',
name='graticules_30',
scale='110m'), group='Grid')
Compositor.register(compositor)
Store.register({WMTS: TilePlot,
Points: GeoPointPlot,
Labels: GeoLabelsPlot,
VectorField: GeoVectorFieldPlot,
Polygons: GeoPolygonPlot,
Contours: GeoContourPlot,
Path: GeoPathPlot,
Shape: GeoShapePlot,
Image: GeoRasterPlot,
RGB: GeoRGBPlot,
LineContours: LineContourPlot,
FilledContours: FilledContourPlot,
Feature: FeaturePlot,
HexTiles: HexTilesPlot,
Text: GeoTextPlot,
Overlay: GeoOverlayPlot,
NdOverlay: GeoOverlayPlot,
Graph: GeoGraphPlot,
TriMesh: GeoTriMeshPlot,
Nodes: GeoPointPlot,
EdgePaths: GeoPathPlot,
QuadMesh: GeoQuadMeshPlot}, 'bokeh')
options = Store.options(backend='bokeh')
options.Feature = Options('style', line_color='black')
options.Feature.Coastline = Options('style', line_width=0.5)
options.Feature.Borders = Options('style', line_width=0.5)
options.Feature.Rivers = Options('style', line_color='blue')
from cartopy import feature as cf
from .element import Feature
borders = Feature(cf.BORDERS, group='Borders')
coastline = Feature(cf.COASTLINE, group='Coastline')
land = Feature(cf.LAND, group='Land')
lakes = Feature(cf.LAKES, group='Lakes')
ocean = Feature(cf.OCEAN, group='Ocean')
rivers = Feature(cf.RIVERS, group='Rivers')
states = FEATURE(cf.STATES, group='States')
grid = Feature(cf.NaturalEarthFeature(category='physical',
name='graticules_30',
scale='110m'), group='Grid')