Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot3d? doesn't document plot_points option #7488

Closed
williamstein opened this issue Nov 18, 2009 · 5 comments
Closed

plot3d? doesn't document plot_points option #7488

williamstein opened this issue Nov 18, 2009 · 5 comments

Comments

@williamstein
Copy link
Contributor



On Wed, Nov 18, 2009 at 9:16 AM, Laurent <> wrote:
> Hi.
>
> I'm writing the following code in order to plot sin(x^2+x^2) :
>
> var('x,y')
> g(x,y)=sin(x**2+y**2)
> plot3d(g(x,y),(x,-5,5),(y,-5,5))
>
> My problem is that the result is quite bad because of the sampling : all
> the points with x^2+y^2=pi/2 are not taken, so that I don't get
> beautiful circles.
>
> How can I ask for a finer sampling, or to compute more intermediate points ?

Use the plot_points option.  Type "parametric_plot3d?" for more details:

        -  ``plot_points`` - (default: "automatic", which is
           75 for curves and [40,40] for surfaces) initial number of sample
           points in each parameter; an integer for a curve, and a pair of
           integers for a surface.
        
Note that the documentation output by "plot3d?" doesn't even mention the plot_points option, which is why you're confused.  

William



 -- William

> I'm sure there is an option to add, but I don't see in the documentation
> which one. (I'm reading the Sage reference manual, version 4.1.1, Agust
> 14 2009).

Component: graphics

Author: William Stein

Reviewer: Mike Hansen

Merged: sage-4.3.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/7488

@williamstein williamstein added this to the sage-4.3 milestone Nov 18, 2009
@williamstein williamstein self-assigned this Nov 18, 2009
@williamstein
Copy link
Contributor Author

comment:1

Attachment: sagelib_7488.patch.gz

@williamstein williamstein changed the title plot3d? doesn't document some important options, which causes confusion plot3d? doesn't document plot_points option Nov 18, 2009
@mwhansen
Copy link
Contributor

comment:2

Looks good to me.

@mwhansen
Copy link
Contributor

Reviewer: Mike Hansen

@mwhansen
Copy link
Contributor

Author: William Stein

@mwhansen
Copy link
Contributor

Merged: sage-4.3.alpha0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants