First time here? Check out the FAQ!

Ask Your Question
2

no linewidth with parametric plot

asked 14 years ago

finotti gravatar image

updated 14 years ago

It seems that there is no option for linewidth in parametric_plot. (2D in my case.) Is that true? Any way to make the graph thicker?

Preview: (hide)

3 Answers

Sort by » oldest newest most voted
3

answered 14 years ago

benjaminfjones gravatar image

parametric_plot takes an argument thickness as follows:

sage: parametric_plot([cos(x),sin(x)],x,0,2*pi,thickness=5)
Preview: (hide)
link

Comments

Thanks. That works (of course). It is too bad that the syntax is not uniform...

finotti gravatar imagefinotti ( 14 years ago )
1

answered 5 years ago

slelievre gravatar image

(2019 additional answer to this 2011 question)

Note that the Three.js viewer does not respect thickness on Windows and some macOS.

Instead, use radius to create a cylinder around the curve. See:

Preview: (hide)
link
1

answered 13 years ago

Jason Grout gravatar image

We tried to be consistent in that "thickness" specifies a width that does not change as you zoom in and out, while linewidth does visually change as you zoom in and out. If that is not the case, it should be fixed.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 14 years ago

Seen: 1,091 times

Last updated: Apr 02 '19