Ask Your Question
2

no linewidth with parametric plot

asked 2011-03-28 18:41:32 +0200

finotti gravatar image

updated 2011-03-28 18:42:17 +0200

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?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2011-03-28 19:09:15 +0200

benjaminfjones gravatar image

parametric_plot takes an argument thickness as follows:

sage: parametric_plot([cos(x),sin(x)],x,0,2*pi,thickness=5)
edit flag offensive delete link more

Comments

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

finotti gravatar imagefinotti ( 2011-03-29 16:46:10 +0200 )edit
1

answered 2019-04-02 17:38:30 +0200

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:

edit flag offensive delete link more
1

answered 2011-04-05 23:45:30 +0200

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.

edit flag offensive delete link more

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: 2011-03-28 18:41:32 +0200

Seen: 966 times

Last updated: Apr 02 '19