Ask Your Question
0

Implicit plotting accuracy

asked 2013-11-23 12:01:36 +0100

aspras gravatar image

updated 2017-01-08 12:18:27 +0100

FrédéricC gravatar image

I am trying to plot this implicit function image description

What I get is image description

Is there a way to make the curves thinner ?

edit retag flag offensive close merge delete

Comments

Can you give the precise code you used to plot this? The `thickness` parameter may be helpful, if I understand your question correctly.

kcrisman gravatar imagekcrisman ( 2013-11-23 12:52:47 +0100 )edit

I use implicit_plot which does not have a thickness option as far as I know. Changing plot_points and linewidths options doesn't seem to make any difference.

aspras gravatar imageaspras ( 2013-11-23 13:00:24 +0100 )edit

@dazedANDconfused answers this piece - we should probably standardize these names...

kcrisman gravatar imagekcrisman ( 2013-11-25 08:58:21 +0100 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2013-11-23 13:59:58 +0100

ndomes gravatar image

updated 2013-11-23 15:32:02 +0100

var('x y')
k = 8/5
eqn = sin((k*x)^2+(k*y)^2) == cos(k^2*x*y)
implicit_plot(eqn,(x,-10,10),(y,-10,10),plot_points=1000)
edit flag offensive delete link more

Comments

This seems to work, I rewrote it like this and got better results: f(x,y)=sin(x^2+y^2)-cos(x*y) implicit_plot(f,(x,-10,10),(y,-10,10),plot_points=3000) Still I am also looking for a way to make the lines thinner, is it possible ?

aspras gravatar imageaspras ( 2013-11-23 15:52:32 +0100 )edit
2

Yes. The linewidth option works for me. The documentation is [here](http://www.sagemath.org/doc/reference/plotting/sage/plot/contour_plot.html#sage.plot.contour_plot.implicit_plot). Perhaps you haven't used it properly? Try making the last command: implicit_plot(eqn,(x,-10,10),(y,-10,10),plot_points=1000,linewidth=.1)

dazedANDconfused gravatar imagedazedANDconfused ( 2013-11-23 16:36:57 +0100 )edit

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: 2013-11-23 12:01:36 +0100

Seen: 596 times

Last updated: Nov 23 '13