Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'linetype' for theme elements #1072

Merged
merged 14 commits into from
Apr 3, 2024
Prev Previous commit
Next Next commit
Add parameter 'linetype' to py functions.
  • Loading branch information
OLarionova-HORIS committed Apr 2, 2024
commit 510397b8dd56ecc0c15e2c5fb0d5e27275a8cbae
11 changes: 9 additions & 2 deletions python-package/lets_plot/plot/theme_.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def element_rect(
fill=None,
color=None,
size=None,
# ToDo: linetype
linetype=None,
blank=False,
) -> dict:
"""
Expand All @@ -373,6 +373,9 @@ def element_rect(
Border color.
size : int
Border size.
linetype : int or str
Type of the line.
Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash.
blank : bool, default=False
If True - draws nothing, and assigns no space.

Expand Down Expand Up @@ -402,7 +405,8 @@ def element_rect(
def element_line(
color=None,
size=None,
# ToDo: linetype, lineend, arrow
linetype=None,
# ToDo: lineend, arrow
blank=False,
) -> dict:
"""
Expand All @@ -415,6 +419,9 @@ def element_line(
Line color.
size : int
Line size.
linetype : int or str
Type of the line.
Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash.
blank : bool, default=False
If True - draws nothing, and assigns no space.

Expand Down