lets-plot 4.7.0rc2__cp310-cp310-win_amd64.whl → 4.7.1rc1__cp310-cp310-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.cp310-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
@@ -35,7 +35,7 @@ class SupPlotsSpec(FeatureSpec):
35
35
  """
36
36
  Subplots figure specification.
37
37
 
38
- See: `gggrid()`
38
+ See: `gggrid() <https://lets-plot.org/python/pages/api/lets_plot.gggrid.html>`__.
39
39
  """
40
40
 
41
41
  @classmethod
@@ -115,23 +115,30 @@ class SupPlotsSpec(FeatureSpec):
115
115
  from ..frontend_context._configuration import _display_plot
116
116
  _display_plot(self)
117
117
 
118
- def to_svg(self, path=None) -> str:
118
+ def to_svg(self, path=None, w=None, h=None, unit=None) -> str:
119
119
  """
120
120
  Export the plot in SVG format.
121
121
 
122
122
  Parameters
123
123
  ----------
124
- self : `SupPlotsSpec`
124
+ self : ``SupPlotsSpec``
125
125
  Subplots specification to export.
126
126
  path : str, file-like object, default=None
127
127
  It can be a file path, file-like object, or None.
128
128
  If a string is provided, the result will be exported to the file at that path.
129
129
  If a file-like object is provided, the result will be exported to that object.
130
130
  If None is provided, the result will be returned as a string.
131
+ w : float, default=None
132
+ Width of the output image in units.
133
+ h : float, default=None
134
+ Height of the output image in units.
135
+ unit : {'in', 'cm', 'mm', 'px'}, default='in'
136
+ Unit of the output image. One of: 'in', 'cm', 'mm' or 'px'.
137
+
131
138
  Returns
132
139
  -------
133
140
  str
134
- The result depends on the `path` parameter.
141
+ The result depends on the ``path`` parameter.
135
142
  It can be the absolute path of the file,
136
143
  SVG content as a string, or None if a file-like object is provided.
137
144
 
@@ -156,7 +163,7 @@ class SupPlotsSpec(FeatureSpec):
156
163
  p.to_svg(file_like)
157
164
  display.SVG(file_like.getvalue())
158
165
  """
159
- return _to_svg(self, path)
166
+ return _to_svg(self, path, w=w, h=h, unit=unit)
160
167
 
161
168
  def to_html(self, path=None, iframe: bool = None) -> str:
162
169
  """
@@ -164,7 +171,7 @@ class SupPlotsSpec(FeatureSpec):
164
171
 
165
172
  Parameters
166
173
  ----------
167
- self : `SupPlotsSpec`
174
+ self : ``SupPlotsSpec``
168
175
  Subplots specification to export.
169
176
  path : str, file-like object, default=None
170
177
  It can be a file path, file-like object, or None.
@@ -177,7 +184,7 @@ class SupPlotsSpec(FeatureSpec):
177
184
  Returns
178
185
  -------
179
186
  str
180
- The result depends on the `path` parameter.
187
+ The result depends on the ``path`` parameter.
181
188
  It can be the absolute path of the file,
182
189
  HTML content as a string, or None if a file-like object is provided.
183
190
 
@@ -208,7 +215,7 @@ class SupPlotsSpec(FeatureSpec):
208
215
 
209
216
  Parameters
210
217
  ----------
211
- self : `SupPlotsSpec`
218
+ self : ``SupPlotsSpec``
212
219
  Subplots specification to export.
213
220
  path : str, file-like object
214
221
  Сan be either a string specifying a file path or a file-like object.
@@ -221,24 +228,23 @@ class SupPlotsSpec(FeatureSpec):
221
228
  h : float, default=None
222
229
  Height of the output image in units.
223
230
  Only applicable when exporting to PNG or PDF.
224
- unit : {'in', 'cm', 'mm'}, default='in'
225
- Unit of the output image. One of: 'in', 'cm', 'mm'.
231
+ unit : {'in', 'cm', 'mm', 'px'}, default='in'
232
+ Unit of the output image. One of: 'in', 'cm', 'mm' or 'px'.
226
233
  Only applicable when exporting to PNG or PDF.
227
234
  dpi : int, default=300
228
235
  Resolution in dots per inch.
229
236
  Only applicable when exporting to PNG or PDF.
237
+ The default value depends on the unit:
238
+
239
+ - for 'px' it is 96 (output image will have the same pixel size as ``w`` and ``h`` values)
240
+ - for physical units ('in', 'cm', 'mm') it is 300
241
+
230
242
 
231
243
  Returns
232
244
  -------
233
245
  str
234
246
  Absolute pathname of created file or None if a file-like object is provided.
235
247
 
236
- Notes
237
- -----
238
- Export to PNG file uses the CairoSVG library.
239
- CairoSVG is free and distributed under the LGPL-3.0 license.
240
- For more details visit: https://cairosvg.org/documentation/
241
-
242
248
  Examples
243
249
  --------
244
250
  .. jupyter-execute::
@@ -268,7 +274,7 @@ class SupPlotsSpec(FeatureSpec):
268
274
 
269
275
  Parameters
270
276
  ----------
271
- self : `SupPlotsSpec`
277
+ self : ``SupPlotsSpec``
272
278
  Subplots specification to export.
273
279
  path : str, file-like object
274
280
  Сan be either a string specifying a file path or a file-like object.
@@ -282,12 +288,17 @@ class SupPlotsSpec(FeatureSpec):
282
288
  h : float, default=None
283
289
  Height of the output image in units.
284
290
  Only applicable when exporting to PNG or PDF.
285
- unit : {'in', 'cm', 'mm'}, default='in'
286
- Unit of the output image. One of: 'in', 'cm', 'mm'.
291
+ unit : {'in', 'cm', 'mm', 'px'}, default='in'
292
+ Unit of the output image. One of: 'in', 'cm', 'mm' or 'px'.
287
293
  Only applicable when exporting to PNG or PDF.
288
294
  dpi : int, default=300
289
295
  Resolution in dots per inch.
290
296
  Only applicable when exporting to PNG or PDF.
297
+ The default value depends on the unit:
298
+
299
+ - for 'px' it is 96 (output image will have the same pixel size as ``w`` and ``h`` values)
300
+ - for physical units ('in', 'cm', 'mm') it is 300
301
+
291
302
 
292
303
  Returns
293
304
  -------
@@ -296,9 +307,7 @@ class SupPlotsSpec(FeatureSpec):
296
307
 
297
308
  Notes
298
309
  -----
299
- Export to PDF file uses the CairoSVG library.
300
- CairoSVG is free and distributed under the LGPL-3.0 license.
301
- For more details visit: https://cairosvg.org/documentation/
310
+ Export to a PDF file uses the pillow library.
302
311
 
303
312
  Examples
304
313
  --------
lets_plot/plot/theme_.py CHANGED
@@ -94,8 +94,9 @@ def theme(*,
94
94
  geom=None
95
95
  ):
96
96
  """
97
- Use `theme()` to modify individual components of a theme,
97
+ Use ``theme()`` to modify individual components of a theme,
98
98
  allowing you to control all non-data components of the plot.
99
+ See also the `Plot Layout Diagrams <https://lets-plot.org/python/pages/charts.html#plot-layout-diagrams>`__ section.
99
100
 
100
101
  Parameters
101
102
  ----------
@@ -111,69 +112,69 @@ def theme(*,
111
112
 
112
113
  For 'g' type formatting, scientific notation is applied when the number's exponent
113
114
  is less than or equal to the lower_exp_bound (-7 by default) or greater than or equal
114
- to the upper_exp_bound (6 by default, but can be affected by `precision` in format specifier).
115
+ to the upper_exp_bound (6 by default, but can be affected by ``precision`` in format specifier).
115
116
 
116
117
  See `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
117
118
 
118
119
  Superscript is not supported when exporting to PNG/PDF.
119
120
  line : str or dict
120
121
  Style settings for all line elements.
121
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
122
- Set `element_line()` to specify line parameters.
122
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
123
+ Set `element_line() <https://lets-plot.org/python/pages/api/lets_plot.element_line.html>`__ to specify line parameters.
123
124
  rect : str or dict
124
125
  Style settings for all rectangular elements.
125
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
126
- Set `element_rect()` to specify rectangular element parameters.
126
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
127
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify rectangular element parameters.
127
128
  text : str or dict
128
129
  Style settings for all text elements.
129
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
130
- Set `element_text()` to specify text parameters.
130
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
131
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify text parameters.
131
132
  title : str or dict
132
133
  Style settings for all title elements: plot, axes, legends.
133
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
134
- Set `element_text()` to specify title text parameters, inherited from `text`.
134
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
135
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify title text parameters, inherited from ``text``.
135
136
  axis : str or dict
136
137
  Style settings for all axis elements: lines, ticks, texts, titles.
137
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
138
- Set `element_line()` to specify axes parameters.
138
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
139
+ Set `element_line() <https://lets-plot.org/python/pages/api/lets_plot.element_line.html>`__ to specify axes parameters.
139
140
  axis_ontop, axis_ontop_x, axis_ontop_y : bool, default=True
140
141
  Option to place axis (lines, tickmarks and labels) over the data layers.
141
142
  axis_title, axis_title_x, axis_title_y : str or dict
142
143
  Style settings for axis titles.
143
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
144
- Set `element_text()` to specify axis title parameters.
145
- `axis_title_*` inherits from `axis_title` which inherits from `text`.
144
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
145
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify axis title parameters.
146
+ ``axis_title_*`` inherits from ``axis_title`` which inherits from ``text``.
146
147
  axis_text, axis_text_x, axis_text_y : str or dict
147
148
  Style settings for tick labels along axes.
148
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
149
- Set `element_text()` to specify all axes tick label parameters.
150
- `axis_text_*` inherits from `axis_text` which inherits from `text`.
149
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
150
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify all axes tick label parameters.
151
+ ``axis_text_*`` inherits from ``axis_text`` which inherits from ``text``.
151
152
  axis_text_spacing, axis_text_spacing_x, axis_text_spacing_y : float
152
153
  Spacing between the axis label text and its tick mark.
153
154
  axis_ticks, axis_ticks_x, axis_ticks_y : str or dict
154
155
  Style settings for tick marks along axes.
155
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
156
- Set `element_line()` to specify all tick mark parameters.
157
- `axis_ticks_*` inherits from `axis_ticks` which inherits from `line`.
156
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
157
+ Set `element_line() <https://lets-plot.org/python/pages/api/lets_plot.element_line.html>`__ to specify all tick mark parameters.
158
+ ``axis_ticks_*`` inherits from ``axis_ticks`` which inherits from ``line``.
158
159
  axis_ticks_length, axis_ticks_length_x, axis_ticks_length_y : float
159
160
  Length of tick marks in px.
160
161
  axis_line, axis_line_x, axis_line_y : str or dict
161
162
  Style settings for lines along axes.
162
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
163
- Set `element_line()` to specify line parameters along all axes.
164
- `axis_line_*` inherits from `axis_line` which inherits from `line`.
163
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
164
+ Set `element_line() <https://lets-plot.org/python/pages/api/lets_plot.element_line.html>`__ to specify line parameters along all axes.
165
+ ``axis_line_*`` inherits from ``axis_line`` which inherits from ``line``.
165
166
  legend_background : str or dict
166
167
  Style settings for background of legend.
167
- Set 'blank' or result of `element_blank()` to draw nothing.
168
- Set `element_rect()` to specify legend background parameters, inherited from `rect`.
168
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
169
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify legend background parameters, inherited from ``rect``.
169
170
  legend_text : str or dict
170
171
  Style settings for legend item labels.
171
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
172
- Set `element_text()` to specify legend item label parameters, inherited from `text`.
172
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
173
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify legend item label parameters, inherited from ``text``.
173
174
  legend_title : str or dict
174
175
  Style settings for legend title.
175
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
176
- Set `element_text()` to specify legend title parameters, inherited from `title`.
176
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
177
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify legend title parameters, inherited from ``title``.
177
178
  legend_position : {'none', 'left', 'right', 'bottom', 'top'} or list
178
179
  The position of legends. To remove the plot legend, use the 'none' value.
179
180
  If parameter is a list, then it should be a two-element numeric vector,
@@ -199,25 +200,25 @@ def theme(*,
199
200
  legend_spacing : float
200
201
  Spacing between legends.
201
202
  legend_spacing_x : float
202
- Spacing between legends in the horizontal direction, inherited from `legend_spacing`.
203
+ Spacing between legends in the horizontal direction, inherited from ``legend_spacing``.
203
204
  legend_spacing_y : float
204
- Spacing between legends in the vertical direction, inherited from `legend_spacing`.
205
+ Spacing between legends in the vertical direction, inherited from ``legend_spacing``.
205
206
  legend_key : str or dict
206
207
  Style settings for legend key background.
207
- Set 'blank' or result of `element_blank()` to draw nothing.
208
- Set `element_rect()` to specify legend key background parameters, inherited from `rect`.
208
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
209
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify legend key background parameters, inherited from ``rect``.
209
210
  legend_key_size : float
210
211
  Size of legend keys.
211
212
  legend_key_width : float
212
- Key background width, inherited from `legend_key_size`.
213
+ Key background width, inherited from ``legend_key_size``.
213
214
  legend_key_height : float
214
- Key background height, inherited from `legend_key_size`.
215
+ Key background height, inherited from ``legend_key_size``.
215
216
  legend_key_spacing : float
216
217
  Spacing between legend keys.
217
218
  legend_key_spacing_x : float
218
- Spacing between legend keys in the horizontal direction, inherited from `legend_key_spacing`.
219
+ Spacing between legend keys in the horizontal direction, inherited from ``legend_key_spacing``.
219
220
  legend_key_spacing_y : float
220
- Spacing between legend keys in the vertical direction, inherited from `legend_key_spacing`.
221
+ Spacing between legend keys in the vertical direction, inherited from ``legend_key_spacing``.
221
222
  legend_box : {'horizontal', 'vertical'}
222
223
  Arrangement of multiple legends.
223
224
  legend_box_just : {'left', 'right', 'bottom', 'top', 'center'}
@@ -226,30 +227,30 @@ def theme(*,
226
227
  Spacing between plotting area and legend box.
227
228
  legend_ticks : str or dict
228
229
  Style settings for tick marks in colorbars.
229
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
230
- Set `element_line()` to specify all tick mark parameters.
231
- `legend_ticks_*` DOES NOT inherit from `line`.
230
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
231
+ Set `element_line() <https://lets-plot.org/python/pages/api/lets_plot.element_line.html>`__ to specify all tick mark parameters.
232
+ ``legend_ticks_*`` DOES NOT inherit from ``line``.
232
233
  By default, the colorbar tick marks are drawn with the same color as the colorbar background.
233
234
  legend_ticks_length : float
234
235
  Length of colorbar tick marks in px.
235
236
  panel_background : str or dict
236
237
  Style settings for background of plotting area.
237
- Set 'blank' or result of `element_blank()` to draw nothing.
238
- Set `element_rect()` to specify plotting area background parameters, inherited from `rect`.
238
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
239
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify plotting area background parameters, inherited from ``rect``.
239
240
  panel_border : str or dict
240
241
  Style settings for border around plotting area.
241
- Set 'blank' or result of `element_blank()` to draw nothing.
242
- Set `element_rect()` to specify border parameters, inherited from `rect`.
242
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
243
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify border parameters, inherited from ``rect``.
243
244
  panel_border_ontop : bool, default=True
244
245
  Option to place border around plotting area over the data layers.
245
246
  panel_grid, panel_grid_major, panel_grid_minor, panel_grid_major_x, panel_grid_major_y, panel_grid_minor_x, panel_grid_minor_y : str or dict
246
247
  Style settings for grid lines. Specify major grid lines or minor grid lines separately if needed.
247
- Set 'blank' or result of `element_blank()` to draw nothing.
248
- Set `element_line()` to specify grid line parameters.
249
- `panel_grid_*_*` inherits from `panel_grid_*` which inherits from `panel_grid`,
250
- which in turn inherits from `line`.
248
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
249
+ Set `element_line() <https://lets-plot.org/python/pages/api/lets_plot.element_line.html>`__ to specify grid line parameters.
250
+ ``panel_grid_*_*`` inherits from ``panel_grid_*`` which inherits from ``panel_grid``,
251
+ which in turn inherits from ``line``.
251
252
  panel_inset : number or list of numbers
252
- Inset for a panel. The inset behaves like a padding for `coord_polar(transform_bkgr=False)` otherwise it behaves like a margin around the panel.
253
+ Inset for a panel. The inset behaves like a padding for ``coord_polar(transform_bkgr=False)`` otherwise it behaves like a margin around the panel.
253
254
  The inset may be specified using a number or a list of numbers:
254
255
 
255
256
  - a number or list of one number - the same inset is applied to all four sides;
@@ -262,24 +263,24 @@ def theme(*,
262
263
  Option to place major grid lines and minor grid lines over the data layers.
263
264
  plot_background : str or dict
264
265
  Style settings for overall plot background.
265
- Set 'blank' or result of `element_blank()` to draw nothing.
266
- Set `element_rect()` to specify plot background parameters, inherited from `rect`.
266
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
267
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify plot background parameters, inherited from ``rect``.
267
268
  plot_title : str or dict
268
269
  Style settings for plot title.
269
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
270
- Set `element_text()` to specify plot title parameters, inherited from `title`.
270
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
271
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify plot title parameters, inherited from ``title``.
271
272
  plot_subtitle : str or dict
272
273
  Style settings for plot subtitle.
273
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
274
- Set `element_text()` to specify plot subtitle parameters, inherited from `plot_title` or `title`.
274
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
275
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify plot subtitle parameters, inherited from ``plot_title`` or ``title``.
275
276
  plot_caption : str or dict
276
277
  Style settings for plot caption.
277
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
278
- Set `element_text()` to specify plot caption parameters, inherited from `title`.
278
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
279
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify plot caption parameters, inherited from ``title``.
279
280
  plot_message : str or dict
280
281
  Style settings for plot message (e.g. sampling messages).
281
- Set 'blank' or result of `element_blank()` to show nothing.
282
- Set `element_text()` to show sampling messages (`element_text()` options don't affect a message text).
282
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to show nothing.
283
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to show sampling messages (`element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ options don't affect a message text).
283
284
  plot_margin : number or list of numbers
284
285
  Margin around entire plot.
285
286
  The margin may be specified using a number or a list of numbers:
@@ -310,59 +311,59 @@ def theme(*,
310
311
  A value of 'plot' means that caption is aligned to the entire plot (excluding margins).
311
312
  strip_background : str or dict
312
313
  Style settings for facet strip background.
313
- Set 'blank' or result of `element_blank()` to draw nothing.
314
- Set `element_rect()` to specify facet label background parameters, inherited from `rect`.
314
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
315
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify facet label background parameters, inherited from ``rect``.
315
316
  strip_background_x : str or dict
316
317
  Style settings for horizontal facet background.
317
- Set 'blank' or result of `element_blank()` to draw nothing.
318
- Set `element_rect()` to specify facet label background parameters, inherited from `strip_background`.
318
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
319
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify facet label background parameters, inherited from ``strip_background``.
319
320
  strip_background_y : str or dict
320
321
  Style settings for vertical facet background.
321
- Set 'blank' or result of `element_blank()` to draw nothing.
322
- Set `element_rect()` to specify facet label background parameters, inherited from `strip_background`.
322
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing.
323
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify facet label background parameters, inherited from ``strip_background``.
323
324
  strip_text : str or dict
324
325
  Style settings for facet labels.
325
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
326
- Set `element_text()` to specify facet label parameters, inherited from `text`.
326
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
327
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify facet label parameters, inherited from ``text``.
327
328
  strip_text_x : str or dict
328
329
  Style settings for horizontal facet labels.
329
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
330
- Set `element_text()` to specify facet label parameters, inherited from `strip_text`.
330
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
331
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify facet label parameters, inherited from ``strip_text``.
331
332
  strip_text_y : str or dict
332
333
  Style settings for vertical facet labels.
333
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
334
- Set `element_text()` to specify facet label parameters, inherited from `strip_text`.
334
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
335
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify facet label parameters, inherited from ``strip_text``.
335
336
  axis_tooltip, axis_tooltip_x, axis_tooltip_y : str or dict
336
337
  Style settings for axes tooltips.
337
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
338
- Set `element_rect()` to specify axes tooltip parameters.
339
- `axis_tooltip_*` inherits from `axis_tooltip` which inherits from `rect`.
338
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
339
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify axes tooltip parameters.
340
+ ``axis_tooltip_*`` inherits from ``axis_tooltip`` which inherits from ``rect``.
340
341
  axis_tooltip_text, axis_tooltip_text_x, axis_tooltip_text_y : str or dict
341
342
  Style settings for text in axes tooltips.
342
- Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
343
- Set `element_text()` to specify axes text tooltip parameters.
344
- `axis_tooltip_text_*` inherits from `axis_tooltip_text` which inherits from `tooltip_text`.
343
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
344
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify axes text tooltip parameters.
345
+ ``axis_tooltip_text_*`` inherits from ``axis_tooltip_text`` which inherits from ``tooltip_text``.
345
346
  tooltip : str or dict
346
347
  Style settings for general tooltip.
347
- Set 'blank' or result of `element_blank()` to hide the tooltip (also hides side tooltips).
348
- Set `element_rect()` to specify tooltip rectangular parameters, inherited from `rect`.
348
+ Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to hide the tooltip (also hides side tooltips).
349
+ Set `element_rect() <https://lets-plot.org/python/pages/api/lets_plot.element_rect.html>`__ to specify tooltip rectangular parameters, inherited from ``rect``.
349
350
  tooltip_text : dict
350
351
  Style settings for text in general tooltip.
351
- Set `element_text()` to specify tooltip text parameters.
352
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify tooltip text parameters.
352
353
  tooltip_title_text : dict
353
354
  Style settings for tooltip title text.
354
- Set `element_text()` to specify tooltip title parameters, inherited from `tooltip_text`. Bold by default.
355
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify tooltip title parameters, inherited from ``tooltip_text``. Bold by default.
355
356
  label_text : dict
356
357
  Style settings for annotation text.
357
358
  Annotations are currently supported for pie, bar chart and crossbar.
358
- Set `element_text()` to specify annotation text parameters: font family and face, text size, text color.
359
+ Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify annotation text parameters: font family and face, text size, text color.
359
360
  geom : dict
360
361
  Color settings for geometries.
361
- Set `element_geom()` to specify new values for the named colors.
362
+ Set `element_geom() <https://lets-plot.org/python/pages/api/lets_plot.element_geom.html>`__ to specify new values for the named colors.
362
363
 
363
364
  Returns
364
365
  -------
365
- `FeatureSpec`
366
+ ``FeatureSpec``
366
367
  Theme specification.
367
368
 
368
369
  Examples
@@ -437,7 +438,7 @@ def element_blank() -> dict:
437
438
 
438
439
  Returns
439
440
  -------
440
- `dict`
441
+ ``dict``
441
442
  Theme element specification.
442
443
 
443
444
  Examples
@@ -490,7 +491,7 @@ def element_rect(
490
491
 
491
492
  Returns
492
493
  -------
493
- `dict`
494
+ ``dict``
494
495
  Theme element specification.
495
496
 
496
497
  Examples
@@ -541,7 +542,7 @@ def element_line(
541
542
 
542
543
  Returns
543
544
  -------
544
- `dict`
545
+ ``dict``
545
546
  Theme element specification.
546
547
 
547
548
  Examples
@@ -617,7 +618,7 @@ def element_text(
617
618
 
618
619
  Returns
619
620
  -------
620
- `dict`
621
+ ``dict``
621
622
  Theme element specification.
622
623
 
623
624
  Examples
@@ -693,7 +694,7 @@ def element_markdown(
693
694
 
694
695
  Returns
695
696
  -------
696
- `dict`
697
+ ``dict``
697
698
  Theme element specification.
698
699
 
699
700
  Examples
@@ -721,7 +722,7 @@ def element_markdown(
721
722
 
722
723
  def margin(t=None, r=None, b=None, l=None):
723
724
  """
724
- Function `margin()` is deprecated.
725
+ Function ``margin()`` is deprecated.
725
726
  Please, use a number or list of numbers to specify margins (see description of the parameter used).
726
727
 
727
728
  """
@@ -751,7 +752,7 @@ def element_geom(
751
752
 
752
753
  Returns
753
754
  -------
754
- `dict`
755
+ ``dict``
755
756
  Theme element specification.
756
757
 
757
758
  Examples
@@ -27,7 +27,7 @@ def theme_grey():
27
27
 
28
28
  Returns
29
29
  -------
30
- `FeatureSpec`
30
+ ``FeatureSpec``
31
31
  Theme specification.
32
32
 
33
33
  Examples
@@ -54,7 +54,7 @@ def theme_light():
54
54
 
55
55
  Returns
56
56
  -------
57
- `FeatureSpec`
57
+ ``FeatureSpec``
58
58
  Theme specification.
59
59
 
60
60
  Examples
@@ -81,7 +81,7 @@ def theme_classic():
81
81
 
82
82
  Returns
83
83
  -------
84
- `FeatureSpec`
84
+ ``FeatureSpec``
85
85
  Theme specification.
86
86
 
87
87
  Examples
@@ -108,7 +108,7 @@ def theme_minimal():
108
108
 
109
109
  Returns
110
110
  -------
111
- `FeatureSpec`
111
+ ``FeatureSpec``
112
112
  Theme specification.
113
113
 
114
114
  Examples
@@ -131,11 +131,12 @@ def theme_minimal():
131
131
 
132
132
  def theme_minimal2():
133
133
  """
134
- Default theme similar to `theme_minimal()` but with x axis line and only major grid lines.
134
+ Default theme similar to `theme_minimal() <https://lets-plot.org/python/pages/api/lets_plot.theme_minimal.html>`__
135
+ but with x axis line and only major grid lines.
135
136
 
136
137
  Returns
137
138
  -------
138
- `FeatureSpec`
139
+ ``FeatureSpec``
139
140
  Theme specification.
140
141
 
141
142
  Examples
@@ -162,7 +163,7 @@ def theme_none():
162
163
 
163
164
  Returns
164
165
  -------
165
- `FeatureSpec`
166
+ ``FeatureSpec``
166
167
  Theme specification.
167
168
 
168
169
  Examples
@@ -189,7 +190,7 @@ def theme_bw():
189
190
 
190
191
  Returns
191
192
  -------
192
- `FeatureSpec`
193
+ ``FeatureSpec``
193
194
  Theme specification.
194
195
 
195
196
  Examples
@@ -216,7 +217,7 @@ def theme_void():
216
217
 
217
218
  Returns
218
219
  -------
219
- `FeatureSpec`
220
+ ``FeatureSpec``
220
221
  Theme specification.
221
222
 
222
223
  Examples
@@ -244,7 +245,7 @@ def flavor_darcula():
244
245
 
245
246
  Returns
246
247
  -------
247
- `FeatureSpec`
248
+ ``FeatureSpec``
248
249
  Theme specification.
249
250
 
250
251
  Examples
@@ -275,7 +276,7 @@ def flavor_solarized_light():
275
276
 
276
277
  Returns
277
278
  -------
278
- `FeatureSpec`
279
+ ``FeatureSpec``
279
280
  Theme specification.
280
281
 
281
282
  Examples
@@ -306,7 +307,7 @@ def flavor_solarized_dark():
306
307
 
307
308
  Returns
308
309
  -------
309
- `FeatureSpec`
310
+ ``FeatureSpec``
310
311
  Theme specification.
311
312
 
312
313
  Examples
@@ -337,7 +338,7 @@ def flavor_high_contrast_light():
337
338
 
338
339
  Returns
339
340
  -------
340
- `FeatureSpec`
341
+ ``FeatureSpec``
341
342
  Theme specification.
342
343
 
343
344
  Examples
@@ -368,7 +369,7 @@ def flavor_high_contrast_dark():
368
369
 
369
370
  Returns
370
371
  -------
371
- `FeatureSpec`
372
+ ``FeatureSpec``
372
373
  Theme specification.
373
374
 
374
375
  Examples