First time here? Check out the FAQ!

Ask Your Question
0

Implicit plotting accuracy

asked 11 years ago

aspras gravatar image

updated 8 years ago

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 ?

Preview: (hide)

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 ( 11 years ago )

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 ( 11 years ago )

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

kcrisman gravatar imagekcrisman ( 11 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 11 years ago

ndomes gravatar image

updated 11 years ago

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)
Preview: (hide)
link

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 ( 11 years ago )
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 ( 11 years ago )

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: 11 years ago

Seen: 625 times

Last updated: Nov 23 '13