Opened 11 years ago

Closed 11 years ago

#7488 closed enhancement (fixed)

plot3d? doesn't document plot_points option

Reported by: was Owned by: was
Priority: minor Milestone: sage-4.3
Component: graphics Keywords:
Cc: Merged in: sage-4.3.alpha0
Authors: William Stein Reviewers: Mike Hansen
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:


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

> 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).

Attachments (1)

sagelib_7488.patch (1.2 KB) - added by was 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by was

comment:1 Changed 11 years ago by was

  • Status changed from new to needs_review
  • Summary changed from plot3d? doesn't document some important options, which causes confusion to plot3d? doesn't document plot_points option

comment:2 Changed 11 years ago by mhansen

  • Authors set to William Stein
  • Reviewers set to Mike Hansen
  • Status changed from needs_review to positive_review

Looks good to me.

comment:3 Changed 11 years ago by mhansen

  • Merged in set to sage-4.3.alpha0
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.