-
Hi, and thank you very much for this cool package which I frequently use in my research! However, I am stuck with the simple thing: how do I draw a dashed line with the Path object? I did not find it in the documentation :( This works cool: But now I would be happy to do something like this, which fails: Thank you very much for the responce. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You have the keyword arguments right but maybe you didn't specify the dash array as a string like Remember you can refer to MDN web docs for all possible SVG attributes that may not be documented here. I'm glad you find it useful for research! If you haven't seen it, my package latextools has some handy tools for using drawsvg and LaTeX together. |
Beta Was this translation helpful? Give feedback.
You have the keyword arguments right but maybe you didn't specify the dash array as a string like
'2,5,3,6'
. Drawsvg does not automatically translate a Python array for you (yet) into an SVG attribute.Documentation: https://cduck.github.io/drawsvg/#stroke_dasharray
Remember you can refer to MDN web docs for all possible SVG attributes that may not be documented here.
I'm glad you find it useful for research! If you haven't seen it, my package latextools has some handy tools for using drawsvg and LaTeX together.