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

Allow tuples to define the linetype in element_line #1198

Closed
concimuscb opened this issue Sep 26, 2024 · 2 comments
Closed

Allow tuples to define the linetype in element_line #1198

concimuscb opened this issue Sep 26, 2024 · 2 comments
Assignees
Labels
* enhancement New feature or request
Milestone

Comments

@concimuscb
Copy link

Hello,

It would be interesting to add the possibility of passing tuples to the linetype argument to define custom linetypes.

I quite like the plotnine implementation: (4, (1, 4, 10, 3))

The first element is always an integer which defines the offset to start drawing the line in relation to the axis of the chart.
The second element is a tuple of n elements. The first element is ink, second is space, third is ink, fourth is space, and so on so forth.

In the example a line is drawn with 4 (px?) off set and then 1 px ink, 4 px space, 10 px ink, 3 px space and then the sequence is repeated 1,4,10,3....

Not sure how challenging would it be to implement this.

@alshan alshan added enhancement New feature or request * labels Sep 26, 2024
@alshan alshan modified the milestones: 2024Q3, New, 2024Q4 Sep 26, 2024
@OLarionova-HORIS OLarionova-HORIS self-assigned this Oct 8, 2024
@OLarionova-HORIS
Copy link
Contributor

Commit 9ac0ed8 :

  • [dash, gap,, ...];
  • [offset, [dash, gap, , ...]];
  • string of hexadecimal digits

@alshan
Copy link
Collaborator

alshan commented Oct 23, 2024

Released in v4.5.0

@alshan alshan closed this as completed Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
* enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants