Ask Your Question
1

linewidth of draw

asked 2022-02-03 20:47:27 +0200

ErWinz gravatar image

hi when i type :

p(x,y)=x*y
sum(map(lambda u:implicit_plot(p-u, (-9, 9), (-9, 9),color=Color(sin(u**3/10), 1.0, 1, space='hsv')), range(-3,2)))

i would like to parameter the linewidth more fine how can i do ? the argument thickness seems not to be dealed by implicit.plot

Vincent

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-02-03 21:29:38 +0200

eric_g gravatar image

updated 2022-02-04 00:25:42 +0200

slelievre gravatar image

Use the option linewidth=0.5 in implicit_plot().

Let us illustrate the difference.

Some setup.

sage: p(x, y) = x * y
sage: xx = yy = (-9, 9)
sage: uu = range(-3, 2)
sage: opt = dict(linewidth=0.5)
sage: col = lambda u: Color(sin(u**3/10), 1.0, 1, space='hsv')

Implicit plots with default line width.

sage: sum(implicit_plot(p - u, xx, yy, color=col(u)) for u in uu)

Level sets for the product of x and y

Implicit plots with line width 0.5.

sage: sum(implicit_plot(p - u, xx, yy, color=col(u), linewidth=0.5) for u in uu)

Level sets for the product of x and y

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

1 follower

Stats

Asked: 2022-02-03 20:47:27 +0200

Seen: 35 times

Last updated: Feb 04