lets-plot 4.6.0a2__cp310-cp310-win_amd64.whl → 4.6.1__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.

lets_plot/plot/theme_.py CHANGED
@@ -10,6 +10,7 @@ __all__ = [
10
10
  "element_line",
11
11
  'element_rect',
12
12
  'element_text',
13
+ 'element_markdown',
13
14
  'margin',
14
15
  'element_geom',
15
16
  ]
@@ -48,12 +49,11 @@ def theme(*,
48
49
  legend_key_size=None, legend_key_width=None, legend_key_height=None,
49
50
  legend_key_spacing=None, legend_key_spacing_x=None, legend_key_spacing_y=None,
50
51
  legend_box=None, legend_box_just=None, legend_box_spacing=None,
51
- # ToDo: other legend options...
52
+ legend_ticks=None, legend_ticks_length=None,
52
53
 
53
54
  panel_background=None,
54
55
  panel_border=None,
55
56
  panel_border_ontop=None,
56
- # ToDo: other panel options...
57
57
 
58
58
  panel_grid=None,
59
59
  panel_grid_ontop=None,
@@ -221,6 +221,14 @@ def theme(*,
221
221
  Justification of each legend within the overall bounding box, when there are multiple legends.
222
222
  legend_box_spacing : float
223
223
  Spacing between plotting area and legend box.
224
+ legend_ticks : str or dict
225
+ Tick marks in colorbars.
226
+ Set 'blank' or result of `element_blank()` to draw nothing and assign no space.
227
+ Set `element_line()` to specify all tick mark parameters.
228
+ `legend_ticks_*` DOES NOT inherit from `line`.
229
+ By default, the colorbar tick marks are drawn with the same color as the colorbar background.
230
+ legend_ticks_length : float
231
+ Length of colorbar tick marks in px.
224
232
  panel_background : str or dict
225
233
  Background of plotting area.
226
234
  Set 'blank' or result of `element_blank()` to draw nothing.
@@ -593,12 +601,11 @@ def element_text(
593
601
  Can be used with values out of range, but behaviour is not specified.
594
602
  margin : number or list of numbers
595
603
  Margins around the text.
596
-
597
604
  The margin may be specified using a number or a list of numbers:
605
+
598
606
  - a number or list of one number - the same margin it applied to all four sides;
599
607
  - a list of two numbers - the first margin applies to the top and bottom, the second - to the left and right;
600
- - a list of three numbers - the first margin applies to the top, the second - to the right and left,
601
- the third - to the bottom;
608
+ - a list of three numbers - the first margin applies to the top, the second - to the right and left, the third - to the bottom;
602
609
  - a list of four numbers - the margins are applied to the top, right, bottom and left in that order.
603
610
 
604
611
  It is acceptable to use None for any side; in this case, the default side value for this element will be used.
@@ -628,6 +635,87 @@ def element_text(
628
635
  return locals()
629
636
 
630
637
 
638
+ def element_markdown(
639
+ color=None,
640
+ family=None,
641
+ face=None,
642
+ size=None,
643
+ angle=None,
644
+ # ToDo: lineheight
645
+ hjust=None,
646
+ vjust=None,
647
+ margin=None,
648
+ blank=False,
649
+ ) -> dict:
650
+ """
651
+ Specify how non-data components of the plot are drawn.
652
+ This theme element draws texts with Markdown support.
653
+
654
+ Parameters
655
+ ----------
656
+ color : str
657
+ Text color.
658
+ family : str
659
+ Font family.
660
+ face : {'plain', 'italic', 'bold', 'bold_italic'}, default='plain'
661
+ Font face.
662
+ size : int
663
+ Text size in px.
664
+ angle : float
665
+ Angle to rotate the text (in degrees).
666
+ hjust : float
667
+ Horizontal justification (in [0, 1]).
668
+ 0 - left-justified;
669
+ 1 - right-justified;
670
+ 0.5 - center-justified.
671
+ Can be used with values out of range, but behaviour is not specified.
672
+ vjust : float
673
+ Vertical justification (in [0, 1]).
674
+ 0 - bottom-justified;
675
+ 1 - top-justified;
676
+ 0.5 - middle-justified.
677
+ Can be used with values out of range, but behaviour is not specified.
678
+ margin : number or list of numbers
679
+ Margins around the text.
680
+ The margin may be specified using a number or a list of numbers:
681
+
682
+ - a number or list of one number - the same margin it applied to all four sides;
683
+ - a list of two numbers - the first margin applies to the top and bottom, the second - to the left and right;
684
+ - a list of three numbers - the first margin applies to the top, the second - to the right and left, the third - to the bottom;
685
+ - a list of four numbers - the margins are applied to the top, right, bottom and left in that order.
686
+
687
+ It is acceptable to use None for any side; in this case, the default side value for this element will be used.
688
+ blank : bool, default=False
689
+ If True - draws nothing, and assigns no space.
690
+
691
+ Returns
692
+ -------
693
+ `dict`
694
+ Theme element specification.
695
+
696
+ Examples
697
+ --------
698
+ .. jupyter-execute::
699
+ :linenos:
700
+ :emphasize-lines: 12
701
+
702
+ from lets_plot import *
703
+ LetsPlot.setup_html()
704
+ ggplot() + \\
705
+ geom_blank() + \\
706
+ labs(
707
+ title='*Hello*, **world**',
708
+ subtitle='_Simple plot_',
709
+ caption='*Powered by **lets-plot***',
710
+ x='Title **X**',
711
+ y='Title **Y**'
712
+ ) + \\
713
+ theme(title=element_markdown())
714
+
715
+ """
716
+ return {'markdown': True, **locals()}
717
+
718
+
631
719
  def margin(t=None, r=None, b=None, l=None):
632
720
  """
633
721
  Function `margin()` is deprecated.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lets-plot
3
- Version: 4.6.0a2
3
+ Version: 4.6.1
4
4
  Summary: An open source library for statistical plotting
5
5
  Home-page: https://lets-plot.org
6
6
  Author: JetBrains
@@ -102,45 +102,34 @@ Also read:
102
102
  - [Scientific mode in PyCharm](https://www.jetbrains.com/help/pycharm/matplotlib-support.html)
103
103
  - [Scientific mode in IntelliJ IDEA](https://www.jetbrains.com/help/idea/matplotlib-support.html)
104
104
 
105
- ## What is new in 4.5.0
105
+ ## What is new in 4.6.0
106
106
 
107
- - #### Panning and Zooming
108
- <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-24g/images/ggtb.png" alt="f-24g/images/ggtb.png" width="300" height="134">
107
+ - #### Markdown Support in *Title*, *Subtitle*, *Caption*, and Axis Labels
108
+ <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25a/images/markdown.png" alt="f-25a/images/markdown.png" width="400" height="237">
109
109
 
110
- See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-24g/interact_pan_zoom.ipynb).
110
+ See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-25a/markdown.ipynb).
111
111
 
112
- - #### Clickable Links
113
- <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-24g/images/lp_verse.png" alt="f-24g/images/lp_verse.png" width="400" height="270">
112
+ - #### Support for Multiline Axis Labels, Text Justification in Axis Labels
113
+ <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25a/images/multiline_axis_labels.png" alt="f-25a/images/multiline_axis_labels.png" width="400" height="275">
114
114
 
115
- See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-24g/interactive_links.ipynb).
115
+ See examples: [multiline axis labels](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-25a/multiline_axis_labels.ipynb),
116
+ [axis label justification](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-25a/axis_label_justification.ipynb),
116
117
 
117
- - #### LaTeX Support: Subscript, Superscript, Greek Letters and Special Characters
118
- <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-24g/images/latex.png" alt="f-24g/images/latex.png" width="300" height="227">
118
+ - #### `geom_hex()` Geometry
119
+ <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25a/images/geom_hex.png" alt="f-25a/images/geom_hex.png" width="370" height="296">
119
120
 
120
- See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-24g/latex_support.ipynb).
121
+ See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-25a/geom_hex.ipynb).
121
122
 
122
- > [!CAUTION]
123
- > Subscripts and superscripts are not supported in PDF and PNG exports.
124
-
125
- - #### Compact Scientific Notation Formatting
126
- <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-24g/images/compact_exp.png" alt="f-24g/images/compact_exp.png" width="400" height="174">
123
+ - #### `ggbunch()` Function: Combining Plots with Custom Layout
124
+ It replaces the deprecated `GGBunch` class. <br/>
125
+ <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25a/images/ggbunch_indonesia.png" alt="f-25a/images/ggbunch_indonesia.png" width="400" height="164">
127
126
 
128
- See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-24g/superscript_exponent.ipynb).
129
-
130
- > [!CAUTION]
131
- > `pow` and `pow_full` options are not supported in PDF and PNG exports.
132
-
133
- - #### QQ-Plot: Marginal Distributions
134
- <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-24g/images/gg_marins.png" alt="f-24g/images/gg_marins.png" width="400" height="249">
135
-
136
- See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-24g/qq_plot_marginal.ipynb).
127
+ See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-25a/ggbunch_indonesia.ipynb).
137
128
 
138
- - #### More Theme Settings
139
- <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-24g/images/theme_legend_scheme.png" alt="f-24g/images/theme_legend_scheme.png" width="400" height="320">
129
+ - #### Parameters `start` and `direction` in `geom_pie()` Geometry
130
+ <img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25a/images/geom_pie_params.png" alt="f-25a/images/geom_pie_params.png" width="400" height="119">
140
131
 
141
- See examples: [legend margins](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-24g/theme_legend_margins.ipynb),
142
- [legend key](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-24g/theme_legend_key.ipynb),
143
- [facet strip](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-24g/theme_facet_strip_xy.ipynb).
132
+ See [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-25a/geom_pie_params.ipynb).
144
133
 
145
134
 
146
135
  - #### And More
@@ -1,9 +1,9 @@
1
- lets_plot_kotlin_bridge.cp310-win_amd64.pyd,sha256=L9pdHLyelJhXKBBPO-s6bMVwBFFfsPey3DKkt3o7zGI,6841856
1
+ lets_plot_kotlin_bridge.cp310-win_amd64.pyd,sha256=v-GIy_z_GZI_VSL3SXHYeTmzHqvxPFJLMR8CtcaDeYo,6920192
2
2
  lets_plot/__init__.py,sha256=aOXcSZVe50fLxe5PN_EjUUrylcqzc-kbSBunOpl_wmc,11507
3
3
  lets_plot/_global_settings.py,sha256=dozwVWl2_Sg_-sWC08IYqVBhg4PCDAxHBERvD_XoWJU,7631
4
- lets_plot/_kbridge.py,sha256=nrjnBwwyrnvRY3FrWvzSIzWTKSVhWp2w7hJP1g55MgE,3626
4
+ lets_plot/_kbridge.py,sha256=7_ORb157DgEs1ZI8uSHF6Hxelr9QKk4MhH_jPZ-ek6M,4809
5
5
  lets_plot/_type_utils.py,sha256=6hyHbuAmxadW-h0AhTlHgKjQe-3g8cEhnskZ9zBnx5w,3029
6
- lets_plot/_version.py,sha256=P5nh0Ia9oA8O9yvwzOsWC6fk4tVtxB-NqsxPT_nhaSE,245
6
+ lets_plot/_version.py,sha256=OhIfQ6X9R--fBbBJzQy1Iyw07TzKjPGXBISQvdyP3iw,239
7
7
  lets_plot/mapping.py,sha256=vWWGrVgzgo1u3R8djyshSoOEuaqlqSQpEVeQNqeKWk0,3691
8
8
  lets_plot/settings_utils.py,sha256=vKrsXMuJHR88ZZhPtQFAC-xrWKCpCPiRetfx1GpBGKU,8678
9
9
  lets_plot/tilesets.py,sha256=opnIz6UI3Gu34JRICD_Tj_hrRmhBC-Rj1NuKLiWeJkk,9549
@@ -47,7 +47,7 @@ lets_plot/geo_data/gis/response.py,sha256=MsAk10JQe0XC-h4Cv0w7uzYxAtlx3YaSrqYXA6
47
47
  lets_plot/geo_data_internals/__init__.py,sha256=ZwcoMdyQ_k9589f2D3nXXjedJpyiDR8WyqaghTh_EVQ,238
48
48
  lets_plot/geo_data_internals/constants.py,sha256=2dViytUZPiojilhWV3UWzBAXgdHl5OoIJsNMsI0V7yU,441
49
49
  lets_plot/geo_data_internals/utils.py,sha256=8vfDa99yq1YpVNr-RDtpCJfbrON04rIG6cugpQXnJlU,1000
50
- lets_plot/package_data/lets-plot.min.js,sha256=9VPmIan7EsY3zA5t2FWjnfsF80hU26H7u0iIoEW_dsg,2295723
50
+ lets_plot/package_data/lets-plot.min.js,sha256=ey-mLWlEZG640PSWKWcTYj6xks7eiQBayGve3uwq-eo,2321322
51
51
  lets_plot/plot/__init__.py,sha256=JqOiE3XfvLripHZJO0_EUzRF10cljeJyU8z-jfFLMXE,1835
52
52
  lets_plot/plot/_global_theme.py,sha256=eatwhJiiqnY6mrNW0Y1NMco2e7xxldhItgj1IOkhRuI,311
53
53
  lets_plot/plot/annotation.py,sha256=9jFJ2BTfLXKD-I0uBJrf8tC6cnv31ANTge8cDRJNHfc,7893
@@ -56,7 +56,7 @@ lets_plot/plot/core.py,sha256=anuE9CWYfKJRlTs0P74rTxk7058EXHok-_Zqg2gxNSU,32485
56
56
  lets_plot/plot/expand_limits_.py,sha256=4_NqSyQMz20GZbsbHKhjCUP_7nS45N2107jPbq4GVmE,2385
57
57
  lets_plot/plot/facet.py,sha256=cEWqPgl-4-sYv7Sq5EA_lQPrtKcnFmBMTYxIqo98re4,7236
58
58
  lets_plot/plot/font_features.py,sha256=OInyzUmRbujBEeB2gxuD2O249-5htOQZi2Y_fujxpVY,2309
59
- lets_plot/plot/geom.py,sha256=V_A3duRfu-ixoM2AHvCPBOUFZa19VtqUNAmlIigE3mo,357141
59
+ lets_plot/plot/geom.py,sha256=o-umg339lFWaCVwGQl1Z_PNqnpQz5icdjYnSpaPn_zk,362822
60
60
  lets_plot/plot/geom_extras.py,sha256=yJ9T5hAQWnhV-KwW-a55qbDOOrLF1D28VZsHpC4aC34,1747
61
61
  lets_plot/plot/geom_function_.py,sha256=FsytaKiyVEvg7KGhnlq4-4Gb3YPzK1XyJ3Zos1NgH4g,8087
62
62
  lets_plot/plot/geom_imshow_.py,sha256=pQX2hJn3R24hMB68F-PPb0UcDtbylg2VEFD3055jFyE,15160
@@ -68,10 +68,10 @@ lets_plot/plot/guide.py,sha256=huDbWFR4k5hmN00oF-sz-8RIv6pYyBCStCz--98qLvs,6923
68
68
  lets_plot/plot/label.py,sha256=1_c1RWMdolYNmef8TjuPk8YtVmLU0QKY3ZG_UoOAV74,4736
69
69
  lets_plot/plot/marginal_layer.py,sha256=auDAO5IiRpJVcqzqr31SnXJz7sQGIVbndx__qfr7JyY,6538
70
70
  lets_plot/plot/plot.py,sha256=_e5MazLHxq5yKRcrjLk93PQK7VX-TIi-G0wSqo0X_os,8526
71
- lets_plot/plot/pos.py,sha256=NxnuE--5hwQCWOEqnoQu8TFppZYXJG5m2cgWkPjmXIg,10703
71
+ lets_plot/plot/pos.py,sha256=WLh7FoD3DKE36dNU0QOgUIxqUyPuWEG2q-KcI5MMxAk,11089
72
72
  lets_plot/plot/sampling.py,sha256=0DB-3hop8JUI0ZNfjML0wxi7W2EIApXGMEKQgGTGnoA,8827
73
73
  lets_plot/plot/sandbox_.py,sha256=5wp2bkIBsihw9aIoKr8FUQZmtZbInHPCULbG5uPsMYE,571
74
- lets_plot/plot/scale.py,sha256=7swDeGMVWGS450u7HB3ueFjY1nEekuz9Y1nn8vBivIQ,140516
74
+ lets_plot/plot/scale.py,sha256=52GiZJUfcm0GAyNUHeGEWbzuR8EzYELclFNfZe2sCbI,140526
75
75
  lets_plot/plot/scale_colormap_mpl.py,sha256=Kn-_-RMOGIBT5-Wf7iSXQ31G9J0QTy6oFGE36Vw6PcI,10564
76
76
  lets_plot/plot/scale_convenience.py,sha256=UOXX07wP5aARYwsOZ-6rK_RR0szhdhnThPvia6LOqrE,4271
77
77
  lets_plot/plot/scale_identity_.py,sha256=6Uz5focUCHIqB9TPhJs7VsPrlZA7JmDOoP2iZYgCuOU,24454
@@ -80,12 +80,12 @@ lets_plot/plot/series_meta.py,sha256=dKfCgTR7RPP3MJjrd1Civ1G0w9I39MH4T6gqJrry0Fc
80
80
  lets_plot/plot/stat.py,sha256=wfFhM1WGNiBH2PLroq8Y6RbRMz6jZrRYaJBcWWbbkCo,23514
81
81
  lets_plot/plot/subplots.py,sha256=-bypJFokNrOJGe5E6yY-Fwt0FZ9w4yrclPchgDu2bF0,11655
82
82
  lets_plot/plot/subplots_util.py,sha256=PBwR7pGtYJAz4lJ0TNRH645aAvHAnJxgW91vpI0ob9A,937
83
- lets_plot/plot/theme_.py,sha256=u1s0Hsbzz0EgbWnE8MCZeQqYOEAR-er0DSeHIGeiLG8,29357
83
+ lets_plot/plot/theme_.py,sha256=ezHcpXu2l2gpKgLOneGhj14nbBrlKZdYvHGrOxyoshg,32442
84
84
  lets_plot/plot/theme_set.py,sha256=KLQSAihJU8_FmAU0at8WUAtgnIqCvU2Rd5awNhTZimo,9496
85
85
  lets_plot/plot/tooltip.py,sha256=TdyJ8pjNuomAF6jeaRsFyFxWWoSSoFFSzsTTnUYBg2Q,16469
86
86
  lets_plot/plot/util.py,sha256=w5PWWPPG_b3g8z9yxfodsd38Csu-qg6z_Zgmzbavsn0,8812
87
- lets_plot-4.6.0a2.dist-info/LICENSE,sha256=D7RdUBHyt0ua4vSZs8H7-HIcliPTSk9zY3sNzx8fejY,1087
88
- lets_plot-4.6.0a2.dist-info/METADATA,sha256=2fNJG7xD0hsxujNEShekWK6Q3P-A4UPGNHWuT_psNp0,11651
89
- lets_plot-4.6.0a2.dist-info/WHEEL,sha256=rzGfZgUcGeKSgIHGYMuqg4xE4VPHxnaldXH6BG0zjVk,101
90
- lets_plot-4.6.0a2.dist-info/top_level.txt,sha256=ID-ORXUWN-oVZmD4YFy1rQVm2QT1D-MlGON3vdxqgpY,34
91
- lets_plot-4.6.0a2.dist-info/RECORD,,
87
+ lets_plot-4.6.1.dist-info/LICENSE,sha256=D7RdUBHyt0ua4vSZs8H7-HIcliPTSk9zY3sNzx8fejY,1087
88
+ lets_plot-4.6.1.dist-info/METADATA,sha256=1WSNT1wzY7p65vxpNRqw02Vyn3zvBik25Jf-R7AseW0,11225
89
+ lets_plot-4.6.1.dist-info/WHEEL,sha256=gMSPBFjPynvgFG2ofmeEoM1Uf9iH_GsJd2JBy-bxpiQ,101
90
+ lets_plot-4.6.1.dist-info/top_level.txt,sha256=ID-ORXUWN-oVZmD4YFy1rQVm2QT1D-MlGON3vdxqgpY,34
91
+ lets_plot-4.6.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp310-cp310-win_amd64
5
5
 
Binary file