Opened 10 years ago

Last modified 10 years ago

#10884 new enhancement

make plot points consistent between calls

Reported by: dsm Owned by: jason, was
Priority: minor Milestone:
Component: graphics Keywords: plot
Cc: jason Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by dsm)

As discussed in this sage-support thread, currently the choice of plot points differs each time plot is called unless you turn randomization off, in which case you reintroduce the possibility of the problems that randomization was introduced to avoid.

This isn't a major problem, but that the points differ from call to call makes some natural things you might want to do fail, such as caching function values to speed up plotting. Right now it can be worked around easily enough by setting the random seed to something each time outside the plotting calls.

It seems equally sensible, and probably slightly more useful, to have the default behaviour be the use of a local fixed seed, which gives reproducibility while avoiding the pitfalls of the non-randomized approach.

Change History (2)

comment:1 Changed 10 years ago by dsm

  • Description modified (diff)

comment:2 Changed 10 years ago by jason

  • Cc jason added
Note: See TracTickets for help on using tickets.