Skip to content

Unable to draw dashed lines #125

Answered by cduck
udavdasha asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cduck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #124 on March 20, 2024 00:03.