Skip to content

How to change thickness of Line() #2901

Answered by behackl
Gedicht2von101 asked this question in Q&A
Discussion options

You must be logged in to vote

The width of the stroke is controlled via the stroke_width keyword argument. The default stroke width value is 4, so anything below that will result in thinner lines; e.g. Line(A, B, stroke_width=2).

If you want to set it consistently for all Line objects, run Line.set_default(stroke_width=2), for example. Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gedicht2von101
Comment options

Answer selected by Gedicht2von101
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