lets-plot 4.7.0rc2__cp312-cp312-win_amd64.whl → 4.7.1rc1__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lets-plot might be problematic. Click here for more details.

Files changed (61) hide show
  1. lets_plot/__init__.py +14 -14
  2. lets_plot/_global_settings.py +0 -4
  3. lets_plot/_kbridge.py +11 -3
  4. lets_plot/_version.py +1 -1
  5. lets_plot/bistro/corr.py +28 -27
  6. lets_plot/bistro/im.py +4 -4
  7. lets_plot/bistro/joint.py +7 -7
  8. lets_plot/bistro/qq.py +16 -16
  9. lets_plot/bistro/residual.py +10 -10
  10. lets_plot/bistro/waterfall.py +26 -27
  11. lets_plot/export/ggsave_.py +29 -17
  12. lets_plot/frontend_context/_configuration.py +2 -2
  13. lets_plot/frontend_context/_html_contexts.py +6 -6
  14. lets_plot/geo_data/core.py +26 -22
  15. lets_plot/geo_data/geocoder.py +67 -56
  16. lets_plot/mapping.py +3 -3
  17. lets_plot/package_data/lets-plot.min.js +1 -1
  18. lets_plot/plot/annotation.py +5 -5
  19. lets_plot/plot/coord.py +4 -4
  20. lets_plot/plot/core.py +77 -141
  21. lets_plot/plot/expand_limits_.py +2 -2
  22. lets_plot/plot/facet.py +21 -17
  23. lets_plot/plot/font_features.py +3 -3
  24. lets_plot/plot/geom.py +1129 -1103
  25. lets_plot/plot/geom_extras.py +1 -1
  26. lets_plot/plot/geom_function_.py +16 -13
  27. lets_plot/plot/geom_imshow_.py +8 -7
  28. lets_plot/plot/geom_livemap_.py +38 -13
  29. lets_plot/plot/ggbunch_.py +1 -1
  30. lets_plot/plot/gggrid_.py +3 -3
  31. lets_plot/plot/ggtb_.py +1 -1
  32. lets_plot/plot/guide.py +9 -7
  33. lets_plot/plot/label.py +9 -9
  34. lets_plot/plot/marginal_layer.py +4 -4
  35. lets_plot/plot/plot.py +17 -16
  36. lets_plot/plot/pos.py +15 -15
  37. lets_plot/plot/sampling.py +8 -8
  38. lets_plot/plot/scale.py +153 -150
  39. lets_plot/plot/scale_colormap_mpl.py +9 -6
  40. lets_plot/plot/scale_convenience.py +6 -6
  41. lets_plot/plot/scale_identity_.py +9 -9
  42. lets_plot/plot/scale_position.py +16 -16
  43. lets_plot/plot/series_meta.py +7 -1
  44. lets_plot/plot/stat.py +64 -60
  45. lets_plot/plot/subplots.py +31 -22
  46. lets_plot/plot/theme_.py +93 -92
  47. lets_plot/plot/theme_set.py +15 -14
  48. lets_plot/plot/tooltip.py +14 -14
  49. lets_plot/plot/util.py +33 -3
  50. lets_plot/settings_utils.py +12 -12
  51. {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/METADATA +63 -43
  52. lets_plot-4.7.1rc1.dist-info/RECORD +95 -0
  53. lets_plot_kotlin_bridge.cp312-win_amd64.pyd +0 -0
  54. lets_plot-4.7.0rc2.dist-info/RECORD +0 -95
  55. {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/WHEEL +0 -0
  56. {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/LICENSE +0 -0
  57. {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/licenses/LICENSE.FreeType +0 -0
  58. {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/licenses/LICENSE.ImageMagick +0 -0
  59. {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/licenses/LICENSE.expat +0 -0
  60. {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/licenses/LICENSE.fontconfig +0 -0
  61. {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/top_level.txt +0 -0
@@ -25,7 +25,7 @@ def waterfall_plot(data, x, y, *,
25
25
 
26
26
  Parameters
27
27
  ----------
28
- data : dict or Pandas or Polars `DataFrame`
28
+ data : dict or Pandas or Polars ``DataFrame``
29
29
  The data to be displayed.
30
30
  x : str
31
31
  Name of a variable.
@@ -47,13 +47,15 @@ def waterfall_plot(data, x, y, *,
47
47
  For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
48
48
  Use 'flow_type' to color lines by the direction of the flow.
49
49
  Flow type names: "Absolute", "Increase", "Decrease" and "Total".
50
- You could use these names to change the default colors with the `scale_color_manual()` function.
50
+ You could use these names to change the default colors with the
51
+ `scale_color_manual() <https://lets-plot.org/python/pages/api/lets_plot.scale_color_manual.html>`__ function.
51
52
  fill : str
52
53
  Fill color of the boxes.
53
54
  For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
54
55
  Use 'flow_type' to color boxes by the direction of the flow.
55
56
  Flow type names: "Absolute", "Increase", "Decrease" and "Total".
56
- You could use these names to change the default colors with the `scale_fill_manual()` function.
57
+ You could use these names to change the default colors with the
58
+ `scale_fill_manual() <https://lets-plot.org/python/pages/api/lets_plot.scale_fill_manual.html>`__ function.
57
59
  size : float, default=0.0
58
60
  Line width of the box boundary lines.
59
61
  alpha : float
@@ -69,15 +71,15 @@ def waterfall_plot(data, x, y, *,
69
71
  Values that are greater than 1 lead to overlapping of the boxes.
70
72
  show_legend : bool, default=False
71
73
  True - show the legend.
72
- relative_tooltips : `layer_tooltips` or str
74
+ relative_tooltips : ``layer_tooltips`` or str
73
75
  Tooltips for boxes with relative values.
74
- Result of the call to the `layer_tooltips()` function.
76
+ Result of the call to the `layer_tooltips() <https://lets-plot.org/python/pages/api/lets_plot.layer_tooltips.html>`__ function.
75
77
  Specify appearance, style and content.
76
78
  When 'none', tooltips are not shown.
77
79
  When 'detailed', a more detailed (compared to the default) version of the tooltips is shown.
78
- absolute_tooltips : `layer_tooltips` or str
80
+ absolute_tooltips : ``layer_tooltips`` or str
79
81
  Tooltips for boxes with absolute values.
80
- Result of the call to the `layer_tooltips()` function.
82
+ Result of the call to the `layer_tooltips() <https://lets-plot.org/python/pages/api/lets_plot.layer_tooltips.html>`__ function.
81
83
  Specify appearance, style and content.
82
84
  When 'none', tooltips are not shown.
83
85
  When 'detailed', a more detailed (compared to the default) version of the tooltips is shown.
@@ -86,46 +88,43 @@ def waterfall_plot(data, x, y, *,
86
88
  threshold : float
87
89
  Groups all categories under a certain threshold value into "Other" category.
88
90
  max_values : int
89
- Groups all categories with the smallest changes, except the first `max_values`, into "Other" category.
91
+ Groups all categories with the smallest changes, except the first ``max_values``, into "Other" category.
90
92
  base : float, default=0.0
91
93
  Values with measure 'absolute' or 'total' are relative to this value.
92
94
  calc_total : bool, default=True
93
- Setting the `calc_total` to True will put the final cumulative sum into a new separate box.
95
+ Setting the ``calc_total`` to True will put the final cumulative sum into a new separate box.
94
96
  Taken into account only if the 'measure' column isn't provided.
95
97
  total_title : str
96
98
  The header of the last box with the final cumulative sum, if 'measure' column isn't provided.
97
99
  Also used as a title in the legend for columns of type 'total'.
98
100
  hline : str or dict
99
101
  Horizontal line passing through 0.
100
- Set 'blank' or result of `element_blank()` to draw nothing.
101
- Set `element_line()` to specify parameters.
102
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
103
+ Set `element_line() <https://lets-plot.org/python/pages/api/lets_plot.element_line.html>`__ to specify parameters.
102
104
  hline_ontop : bool, default=True
103
105
  Option to place horizontal line over the other layers.
104
106
  connector : str or dict
105
107
  Line between neighbouring boxes connecting the end of the previous box and the beginning of the next box.
106
- Set 'blank' or result of `element_blank()` to draw nothing.
107
- Set `element_line()` to specify parameters.
108
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
109
+ Set `element_line() <https://lets-plot.org/python/pages/api/lets_plot.element_line.html>`__ to specify parameters.
108
110
  relative_labels : dict
109
- Result of the call to the `layer_labels()` function.
111
+ Result of the call to the `layer_labels() <https://lets-plot.org/python/pages/api/lets_plot.layer_labels.html>`__ function.
110
112
  Specify content and formatting of annotation labels on relative change bars.
111
- If specified, overrides `label_format` for relative bars.
112
- See `layer_labels() <https://lets-plot.org/python/pages/api/lets_plot.layer_labels.html>`__.
113
+ If specified, overrides ``label_format`` for relative bars.
113
114
  absolute_labels : dict
114
- Result of the call to the `layer_labels()` function.
115
+ Result of the call to the `layer_labels() <https://lets-plot.org/python/pages/api/lets_plot.layer_labels.html>`__ function.
115
116
  Specify content and formatting of annotation labels on absolute value bars.
116
- If specified, overrides `label_format` for absolute bars.
117
- See `layer_labels() <https://lets-plot.org/python/pages/api/lets_plot.layer_labels.html>`__.
117
+ If specified, overrides ``label_format`` for absolute bars.
118
118
  label : str or dict
119
119
  Style configuration for labels on bars. Applied to default labels or to
120
- relative/absolute labels when `relative_labels` or `absolute_labels` are specified.
121
- Set 'blank' or result of `element_blank()` to draw nothing.
122
- Set `element_text()` to specify style parameters.
123
- Use `element_text(color='inherit')` to make labels inherit the color of bar borders.
124
- See `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__.
120
+ relative/absolute labels when ``relative_labels`` or ``absolute_labels`` are specified.
121
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
122
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify style parameters.
123
+ Use ``element_text(color='inherit')`` to make labels inherit the color of bar borders.
125
124
  label_format : str
126
125
  Format string used to transform label values to text. Applied to default labels or to
127
- relative/absolute labels when `relative_labels` or `absolute_labels` are specified.
128
- Can be overridden by formatting specified in `relative_labels` or `absolute_labels`.
126
+ relative/absolute labels when ``relative_labels`` or ``absolute_labels`` are specified.
127
+ Can be overridden by formatting specified in ``relative_labels`` or ``absolute_labels``.
129
128
  Examples:
130
129
 
131
130
  - '.2f' -> '12.45'
@@ -138,7 +137,7 @@ def waterfall_plot(data, x, y, *,
138
137
 
139
138
  Returns
140
139
  -------
141
- `PlotSpec`
140
+ ``PlotSpec``
142
141
  Plot object specification.
143
142
 
144
143
  Notes
@@ -23,15 +23,15 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
23
23
  Supported formats: PNG, SVG, PDF, HTML.
24
24
 
25
25
  The exported file is created in directory ${user.dir}/lets-plot-images
26
- if not specified otherwise (see the `path` parameter).
26
+ if not specified otherwise (see the ``path`` parameter).
27
27
 
28
28
  Parameters
29
29
  ----------
30
- plot : `PlotSpec`
30
+ plot : ``PlotSpec``
31
31
  Plot specification to export.
32
32
  filename : str
33
33
  The name of file. It must end with a file extension corresponding
34
- to one of the supported formats: SVG, HTML (or HTM), PNG (requires CairoSVG library), PDF.
34
+ to one of the supported formats: SVG, HTML (or HTM), PNG, PDF (requires the pillow library).
35
35
  path : str
36
36
  Path to a directory to save image files in.
37
37
  By default, it is ${user.dir}/lets-plot-images.
@@ -44,16 +44,20 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
44
44
  Only applicable when exporting to PNG or PDF.
45
45
  w : float, default=None
46
46
  Width of the output image in units.
47
- Only applicable when exporting to PNG or PDF.
47
+ Only applicable when exporting to SVG, PNG or PDF.
48
48
  h : float, default=None
49
49
  Height of the output image in units.
50
- Only applicable when exporting to PNG or PDF.
51
- unit : {'in', 'cm', 'mm'}, default='in'
52
- Unit of the output image. One of: 'in', 'cm', 'mm'.
53
- Only applicable when exporting to PNG or PDF.
50
+ Only applicable when exporting to SVG, PNG or PDF.
51
+ unit : {'in', 'cm', 'mm', 'px'}, default='in'
52
+ Unit of the output image. One of: 'in', 'cm', 'mm' or 'px.
53
+ Only applicable when exporting to SVG, PNG or PDF.
54
54
  dpi : int, default=300
55
55
  Resolution in dots per inch.
56
56
  Only applicable when exporting to PNG or PDF.
57
+ The default value depends on the unit:
58
+
59
+ - for 'px' it is 96 (output image will have the same pixel size as ``w`` and ``h`` values)
60
+ - for physical units ('in', 'cm', 'mm') it is 300
57
61
 
58
62
  Returns
59
63
  -------
@@ -66,28 +70,36 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
66
70
 
67
71
  For PNG and PDF formats:
68
72
 
69
- - If `w`, `h`, `unit`, and `dpi` are all specified:
73
+ - If ``w``, ``h``, ``unit``, and ``dpi`` are all specified:
70
74
 
71
- - The plot's pixel size (default or set by `ggsize()`) is ignored.
72
- - The output size is calculated using the specified `w`, `h`, `unit`, and `dpi`.
75
+ - The plot's pixel size (default or set by `ggsize() <https://lets-plot.org/python/pages/api/lets_plot.ggsize.html>`__) is ignored.
76
+ - The output size is calculated using the specified ``w``, ``h``, ``unit``, and ``dpi``.
73
77
 
74
- - The plot is resized to fit the specified `w` x `h` area, which may affect the layout, tick labels, and other elements.
78
+ - The plot is resized to fit the specified ``w`` x ``h`` area, which may affect the layout, tick labels, and other elements.
75
79
 
76
- - If only `dpi` is specified:
80
+ - If only ``dpi`` is specified:
77
81
 
78
- - The plot's pixel size (default or set by `ggsize()`) is converted to inches using the standard display PPI of 96.
82
+ - The plot's pixel size (default or set by `ggsize() <https://lets-plot.org/python/pages/api/lets_plot.ggsize.html>`__) is converted to inches using the standard display PPI of 96.
79
83
  - The output size is then calculated based on the specified DPI.
80
84
 
81
85
  - The plot maintains its aspect ratio, preserving layout, tick labels, and other visual elements.
82
86
  - Useful for printing - the plot will appear nearly the same size as on screen.
83
87
 
84
- - If `w`, `h` are not specified:
88
+ - If ``w``, ``h`` are not specified:
85
89
 
86
- - The `scale` parameter is used to determine the output size.
90
+ - The ``scale`` parameter is used to determine the output size.
87
91
 
88
92
  - The plot maintains its aspect ratio, preserving layout, tick labels, and other visual elements.
89
93
  - Useful for generating high-resolution images suitable for publication.
90
94
 
95
+ For SVG format:
96
+
97
+ - If ``w``, ``h`` and ``unit`` are specified:
98
+
99
+ - The plot's pixel size (default or set by `ggsize() <https://lets-plot.org/python/pages/api/lets_plot.ggsize.html>`__) is ignored.
100
+ - The output size is calculated using the specified ``w``, ``h``, and ``unit``.
101
+
102
+
91
103
  Examples
92
104
  --------
93
105
  .. code-block::
@@ -130,7 +142,7 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
130
142
 
131
143
  ext = ext[1:].lower()
132
144
  if ext == 'svg':
133
- return _to_svg(plot, pathname)
145
+ return _to_svg(plot, pathname, w=w, h=h, unit=unit)
134
146
  elif ext in ['html', 'htm']:
135
147
  return _to_html(plot, pathname, iframe=iframe)
136
148
  elif ext in ['png', 'pdf', 'bmp']:
@@ -81,8 +81,8 @@ def _setup_wb_html_context(*,
81
81
  Command to execute to open the plot in a web browser.
82
82
  If not specified, the default browser will be used.
83
83
  new : bool, default=False
84
- If `True`, the URL is opened in a new window of the web browser.
85
- If `False`, the URL is opened in the already opened web browser window.
84
+ If True, the URL is opened in a new window of the web browser.
85
+ If False, the URL is opened in the already opened web browser window.
86
86
  """
87
87
  ctx = _create_wb_html_frontend_context(exec, new)
88
88
  _frontend_contexts[TEXT_HTML] = ctx
@@ -17,13 +17,13 @@ def _create_html_frontend_context(isolated_frame: bool = None, offline: bool = N
17
17
  Parameters
18
18
  ----------
19
19
  isolated_frame : bool, optional, default None - auto-detect
20
- If `True`, generate HTLM which can be used in `iframe` or in a standalone HTML document
21
- If `False`, pre-load Lets-Plot JS library. Notebook cell output will only consist of HTML for the plot rendering.
20
+ If True, generate HTLM which can be used in `iframe` or in a standalone HTML document
21
+ If False, pre-load Lets-Plot JS library. Notebook cell output will only consist of HTML for the plot rendering.
22
22
 
23
23
  offline : bool, optional, default None - evaluated to 'connected' mode in production environment.
24
- If `True`, full Lets-Plot JS bundle will be added to the notebook. Use this option if you would like
24
+ If True, full Lets-Plot JS bundle will be added to the notebook. Use this option if you would like
25
25
  to work with notebook without the Internet connection.
26
- If `False`, load Lets-Plot JS library from CDN.
26
+ If False, load Lets-Plot JS library from CDN.
27
27
  """
28
28
  if isolated_frame is None:
29
29
  isolated_frame = _use_isolated_frame()
@@ -44,8 +44,8 @@ def _create_wb_html_frontend_context(exec: str, new: bool) -> FrontendContext:
44
44
  The name of the web browser to use.
45
45
  If not specified, the default browser will be used.
46
46
  new : bool, default=False
47
- If `True`, the URL is opened in a new window of the web browser.
48
- If `False`, the URL is opened in the already opened web browser window.
47
+ If True, the URL is opened in a new window of the web browser.
48
+ If False, the URL is opened in the already opened web browser window.
49
49
  """
50
50
  return WebBrHtmlPageContext(exec, new)
51
51
 
@@ -30,7 +30,8 @@ GEOFUNC_TYPES = {
30
30
 
31
31
  def geocode(level=None, names=None, countries=None, states=None, counties=None, scope=None) -> NamesGeocoder:
32
32
  """
33
- Create a `NamesGeocoder`. Allow to refine ambiguous request with `where()` method,
33
+ Create a `NamesGeocoder <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html>`__.
34
+ Allow to refine ambiguous request with `where() <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html#lets_plot.geo_data.NamesGeocoder.where>`__ method,
34
35
  scope that limits area of geocoding or with parents.
35
36
 
36
37
  Parameters
@@ -42,20 +43,20 @@ def geocode(level=None, names=None, countries=None, states=None, counties=None,
42
43
  For 'state' level: 'US-48' returns continental part of United States (48 states)
43
44
  in a compact form.
44
45
  countries : list
45
- Parent countries. Should have same size as names. Can contain strings or `Geocoder` objects.
46
+ Parent countries. Should have same size as names. Can contain strings or ``Geocoder`` objects.
46
47
  states : list
47
- Parent states. Should have same size as names. Can contain strings or `Geocoder` objects.
48
+ Parent states. Should have same size as names. Can contain strings or ``Geocoder`` objects.
48
49
  counties : list
49
- Parent counties. Should have same size as names. Can contain strings or `Geocoder` objects.
50
- scope : str or `Geocoder`
50
+ Parent counties. Should have same size as names. Can contain strings or ``Geocoder`` objects.
51
+ scope : str or ``Geocoder``
51
52
  Limits area of geocoding. If parent country is set then error will be generated.
52
53
  If type is a string - geoobject should have geocoded scope in parents.
53
- If type is a `Geocoder` - geoobject should have geocoded scope in parents.
54
+ If type is a ``Geocoder`` - geoobject should have geocoded scope in parents.
54
55
  Scope should contain only one entry.
55
56
 
56
57
  Returns
57
58
  -------
58
- `NamesGeocoder`
59
+ ``NamesGeocoder``
59
60
  Geocoder object specification.
60
61
 
61
62
  Examples
@@ -101,8 +102,9 @@ def geocode(level=None, names=None, countries=None, states=None, counties=None,
101
102
 
102
103
  def geocode_cities(names=None) -> NamesGeocoder:
103
104
  """
104
- Create a `NamesGeocoder` object for cities. Allow to refine ambiguous request with
105
- `where()` method, with a scope that limits area of geocoding or with parents.
105
+ Create a `NamesGeocoder <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html>`__ object for cities.
106
+ Allow to refine ambiguous request with `where() <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html#lets_plot.geo_data.NamesGeocoder.where>`__ method,
107
+ with a scope that limits area of geocoding or with parents.
106
108
 
107
109
  Parameters
108
110
  ----------
@@ -111,7 +113,7 @@ def geocode_cities(names=None) -> NamesGeocoder:
111
113
 
112
114
  Returns
113
115
  -------
114
- `NamesGeocoder`
116
+ ``NamesGeocoder``
115
117
  Geocoder object specification.
116
118
 
117
119
  Examples
@@ -135,8 +137,9 @@ def geocode_cities(names=None) -> NamesGeocoder:
135
137
 
136
138
  def geocode_counties(names=None) -> NamesGeocoder:
137
139
  """
138
- Create a `NamesGeocoder` object for counties. Allow to refine ambiguous request with
139
- `where()` method, with a scope that limits area of geocoding or with parents.
140
+ Create a `NamesGeocoder <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html>`__ object for counties.
141
+ Allow to refine ambiguous request with `where() <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html#lets_plot.geo_data.NamesGeocoder.where>`__ method,
142
+ with a scope that limits area of geocoding or with parents.
140
143
 
141
144
  Parameters
142
145
  ----------
@@ -145,7 +148,7 @@ def geocode_counties(names=None) -> NamesGeocoder:
145
148
 
146
149
  Returns
147
150
  -------
148
- `NamesGeocoder`
151
+ ``NamesGeocoder``
149
152
  Geocoder object specification.
150
153
 
151
154
  Examples
@@ -168,8 +171,9 @@ def geocode_counties(names=None) -> NamesGeocoder:
168
171
 
169
172
  def geocode_states(names=None) -> NamesGeocoder:
170
173
  """
171
- Create a `NamesGeocoder` object for states. Allow to refine ambiguous request with
172
- `where()` method, with a scope that limits area of geocoding or with parents.
174
+ Create a `NamesGeocoder <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html>`__ object for states.
175
+ Allow to refine ambiguous request with `where() <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html#lets_plot.geo_data.NamesGeocoder.where>`__ method,
176
+ with a scope that limits area of geocoding or with parents.
173
177
 
174
178
  Parameters
175
179
  ----------
@@ -178,7 +182,7 @@ def geocode_states(names=None) -> NamesGeocoder:
178
182
 
179
183
  Returns
180
184
  -------
181
- `NamesGeocoder`
185
+ ``NamesGeocoder``
182
186
  Geocoder object specification.
183
187
 
184
188
  Examples
@@ -203,8 +207,8 @@ def geocode_states(names=None) -> NamesGeocoder:
203
207
 
204
208
  def geocode_countries(names=None) -> NamesGeocoder:
205
209
  """
206
- Create a `NamesGeocoder` object for countries. Allow to refine ambiguous request with
207
- `where()` method.
210
+ Create a `NamesGeocoder <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html>`__ object for countries.
211
+ Allow to refine ambiguous request with `where() <https://lets-plot.org/python/pages/api/lets_plot.geo_data.NamesGeocoder.html#lets_plot.geo_data.NamesGeocoder.where>`__ method.
208
212
 
209
213
  Parameters
210
214
  ----------
@@ -213,7 +217,7 @@ def geocode_countries(names=None) -> NamesGeocoder:
213
217
 
214
218
  Returns
215
219
  -------
216
- `NamesGeocoder`
220
+ ``NamesGeocoder``
217
221
  Geocoder object specification.
218
222
 
219
223
  Examples
@@ -236,7 +240,7 @@ def geocode_countries(names=None) -> NamesGeocoder:
236
240
 
237
241
  def reverse_geocode(lon, lat, level=None, scope=None) -> ReverseGeocoder:
238
242
  """
239
- Convert a location as described by geographic coordinates to a `ReverseGeocoder` object.
243
+ Convert a location as described by geographic coordinates to a ``ReverseGeocoder`` object.
240
244
 
241
245
  Parameters
242
246
  ----------
@@ -246,12 +250,12 @@ def reverse_geocode(lon, lat, level=None, scope=None) -> ReverseGeocoder:
246
250
  Latitude coordinate of the geoobject.
247
251
  level : {'country', 'state', 'county', 'city'}
248
252
  The level of administrative division.
249
- scope : str or `Geocoder`
253
+ scope : str or ``Geocoder``
250
254
  Specify this for resolving conflicts for disputed territories.
251
255
 
252
256
  Returns
253
257
  -------
254
- `ReverseGeocoder`
258
+ ``ReverseGeocoder``
255
259
  Geocoder object specification.
256
260
 
257
261
  Examples