xoa.options.show_options#
- xoa.options.show_options(specs=False)[source]#
Print current xoa configuration
- Parameters:
specs (bool) – Print option specifications instead
Example
In [1]: show_options() [layers] # background layers of maps, one subsection per layer [[natgeo]] kind = wmts url = https://services.arcgisonline.com/arcgis/rest/services/NatGeo_World_Map/MapServer/WMTS/1.0.0/WMTSCapabilities.xml layer = NatGeo_World_Map attribution = "Esri, National Geographic" [meta] # meta module cache = False # use the :mod:`~xoa.meta` in memory cache [plot] # plot parameters cmapdiv = cmo.balance # default diverging colormap cmappos = cmo.amp # default positive colormap cmapneg = cmo.tempo_r # default negative colormap cmapcyc = cmo.phase # default cyclic colormap field_method = pcolormesh # default method to plot fields section_method = pcolormesh # default method to plot sections colorbar_shrink = 0.7 # shrink factor of colorbars mesh_min_spacing = 12.0 # minimal spacing in pixels between mesh centers in auto stride mode vectors_min_spacing = 16.0 # minimal spacing in pixels between vectors in auto stride mode key_pos = 0.0, 1.03 # position of the reference arrow in axes coordinates key_percentile = 80.0 # percentile of the speed used to choose the reference arrow value stick_color = steelblue # color of sticks stick_length = 0.12 # length of the strong sticks in fraction of the axes width map_figsize = 8.0, 8.0 # figure size in inches map_gridlines = True # add labelled gridlines map_gridlines_labels_on = bottom, left # sides of the gridline labels map_gridlines_linewidth = 0.3 # line width of the gridlines map_gridlines_linestyle = -- # line style of the gridlines map_gridlines_color = gray # color of the gridlines map_gridlines_labelsize = 7.0 # font size of the gridline labels map_land = False # add the land map_land_scale = 110m # Natural Earth scale of the land map_land_color = None # face color of the land, cartopy default if not set map_coastlines = False # add the coastlines map_bbox = True # keep the frame of the axes visible map_fancy = False # add a fancy black and white frame map_layer = False # add the background layer layer = natgeo # name of the default background layer, see the layers section layer_alpha = 1.0 # opacity of the layer layer_zorder = 0.0 # drawing order layer_attribution = True # draw the attribution of the layer layer_attribution_size = 5.0 # font size of the attribution layer_attribution_color = 0.4 # color of the attribution scalebar_units = km # units of the length scalebar_loc = lower left # corner of the axes scalebar_pad = 0.04 # distance to the corner in axes coordinates scalebar_segments = 2 # number of alternating segments scalebar_height = 0.012 # height in axes coordinates scalebar_color = k # color of the dark segments, labels and frame scalebar_zorder = 10.0 # drawing order compass_loc = upper right # corner of the axes compass_size = 40.0 # height in points compass_style = simple # style of the compass compass_color = k # color of the dark parts compass_zorder = 10.0 # drawing order fancy_width = 5.0 # width in points fancy_colors = k, w # alternating colors fancy_linewidth = 0.6 # line width of the edges fancy_edgecolor = k # color of the edges fancy_zorder = 5.0 # drawing order flow_particles = 2000 # number of particles flow_alpha = 0.2, 1.0 # opacity, or its ramp along the tracks flow_linewidth = 0.3 # line width of the tracks flow_color = k # color of the tracks minimap_loc = upper right # location in the parent axes minimap_size = 0.2 # size relative to the parent axes minimap_extent = 1.0 # extent margin minimap_min_extent = 2.0 # minimal extent in degrees minimap_gridlines = True # add gridlines minimap_coords_markersize = 10.0 # marker size of the point coordinates minimap_coords_linewidth = 1.5 # line width of the coordinates minimap_coords_color = tab:red # color of the coordinates minimap_coords_facecolor = 0.2 # opacity of the coordinates area shadow_width = 3.0 # shadow blur width in points shadow_xoffset = 2.0 # shadow horizontal offset in points shadow_yoffset = -2.0 # shadow vertical offset in points shadow_alpha = 0.3 # shadow opacity shadow_color = k # shadow color glow_width = 3.0 # glow width in points glow_alpha = 1.0 # glow opacity glow_color = w # glow color lightshading_width = 7.0 # light shading width in points lightshading_fraction = 1.0 # light shading fraction panel_style = {a}) # label format panel_loc = upper left # label location panel_pad = 0.03 # distance to the axes corner In [2]: show_options(specs=True) [meta] # meta module cache=boolean(default=False) # use the :mod:`~xoa.meta` in memory cache [plot] # plot parameters cmapdiv = string(default="cmo.balance") # default diverging colormap cmappos = string(default="cmo.amp") # default positive colormap cmapneg = string(default="cmo.tempo_r") # default negative colormap cmapcyc = string(default="cmo.phase") # default cyclic colormap field_method = string(default="pcolormesh") # default method to plot fields section_method = string(default="pcolormesh") # default method to plot sections colorbar_shrink = float(default=0.7) # shrink factor of colorbars mesh_min_spacing = float(default=12) # minimal spacing in pixels between mesh centers in auto stride mode vectors_min_spacing = float(default=16) # minimal spacing in pixels between vectors in auto stride mode key_pos = float_list(min=2, max=2, default=list(0.0, 1.03)) # position of the reference arrow in axes coordinates key_percentile = float(default=80) # percentile of the speed used to choose the reference arrow value stick_color = string(default="steelblue") # color of sticks stick_length = float(default=0.12) # length of the strong sticks in fraction of the axes width map_figsize = float_list(min=2, max=2, default=list(8, 8)) # figure size in inches map_gridlines = boolean(default=True) # add labelled gridlines map_gridlines_labels_on = string_list(default=list("bottom", "left")) # sides of the gridline labels map_gridlines_linewidth = float(default=0.3) # line width of the gridlines map_gridlines_linestyle = string(default="--") # line style of the gridlines map_gridlines_color = string(default="gray") # color of the gridlines map_gridlines_labelsize = float(default=7) # font size of the gridline labels map_land = boolean(default=False) # add the land map_land_scale = string(default="110m") # Natural Earth scale of the land map_land_color = string(default=None) # face color of the land, cartopy default if not set map_coastlines = boolean(default=False) # add the coastlines map_bbox = boolean(default=True) # keep the frame of the axes visible map_fancy = boolean(default=False) # add a fancy black and white frame map_layer = boolean(default=False) # add the background layer layer = string(default="natgeo") # name of the default background layer, see the layers section layer_alpha = float(default=1.0) # opacity of the layer layer_zorder = float(default=0) # drawing order layer_attribution = boolean(default=True) # draw the attribution of the layer layer_attribution_size = float(default=5) # font size of the attribution layer_attribution_color = string(default="0.4") # color of the attribution scalebar_units = option("m", "km", "nmi", default="km") # units of the length scalebar_loc = string(default="lower left") # corner of the axes scalebar_pad = float(default=0.04) # distance to the corner in axes coordinates scalebar_segments = integer(min=1, default=2) # number of alternating segments scalebar_height = float(default=0.012) # height in axes coordinates scalebar_color = string(default="k") # color of the dark segments, labels and frame scalebar_zorder = float(default=10) # drawing order compass_loc = string(default="upper right") # corner of the axes compass_size = float(default=40) # height in points compass_style = option("simple", "fancy", default="simple") # style of the compass compass_color = string(default="k") # color of the dark parts compass_zorder = float(default=10) # drawing order fancy_width = float(default=5.0) # width in points fancy_colors = string_list(min=2, default=list("k", "w")) # alternating colors fancy_linewidth = float(default=0.6) # line width of the edges fancy_edgecolor = string(default="k") # color of the edges fancy_zorder = float(default=5) # drawing order flow_particles = integer(min=1, default=2000) # number of particles flow_alpha = float_list(min=1, max=2, default=list(0.2, 1)) # opacity, or its ramp along the tracks flow_linewidth = float(default=0.3) # line width of the tracks flow_color = string(default="k") # color of the tracks minimap_loc = string(default="upper right") # location in the parent axes minimap_size = float(default=0.2) # size relative to the parent axes minimap_extent = float(default=1.0) # extent margin minimap_min_extent = float(default=2.0) # minimal extent in degrees minimap_gridlines = boolean(default=True) # add gridlines minimap_coords_markersize = float(default=10) # marker size of the point coordinates minimap_coords_linewidth = float(default=1.5) # line width of the coordinates minimap_coords_color = string(default="tab:red") # color of the coordinates minimap_coords_facecolor = float(default=0.2) # opacity of the coordinates area shadow_width = float(default=3) # shadow blur width in points shadow_xoffset = float(default=2) # shadow horizontal offset in points shadow_yoffset = float(default=-2) # shadow vertical offset in points shadow_alpha = float(default=0.3) # shadow opacity shadow_color = string(default="k") # shadow color glow_width = float(default=3) # glow width in points glow_alpha = float(default=1.0) # glow opacity glow_color = string(default="w") # glow color lightshading_width = float(default=7) # light shading width in points lightshading_fraction = float(default=1.0) # light shading fraction panel_style = string(default="{a})") # label format panel_loc = string(default="upper left") # label location panel_pad = float(default=0.03) # distance to the axes corner [layers] # background layers of maps, one subsection per layer [[__many__]] kind = option("wms", "wmts", default="wmts") # type of web map service url = string() # url of the service, or of its capabilities document for wmts layer = string() # name of the layer in the service attribution = string(default=None) # credit drawn on the map, quoted if it has commas