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

linestyle should also accept tuples an not just strings #57

Closed
JoostScheffer opened this issue Jan 25, 2023 · 1 comment
Closed

linestyle should also accept tuples an not just strings #57

JoostScheffer opened this issue Jan 25, 2023 · 1 comment

Comments

@JoostScheffer
Copy link
Contributor

Tuples could also be used to create custom linestyles.
Example: https://matplotlib.org/stable/gallery/lines_bars_and_markers/linestyles.html

Currently linestyle is a TextWidget. But since tuples are passed as tuples and not as text, this is incompatible.
I don't yet have an idea of a good modular way to implementing this would be.
Creating a custom function in the TextWidget could be possible...

Any suggestions?

@rgerum
Copy link
Owner

rgerum commented Jan 25, 2023

well pylustrator could try to convert the text into a tuple and if it fails then use it as text.

@rgerum rgerum closed this as completed in 683a06e Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants