Opened 2 years ago

Last modified 6 weeks ago

#28358 new defect

functions with predefined plot methods may have keyword collision

Reported by: kcrisman Owned by:
Priority: trivial Milestone: sage-9.6
Component: graphics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


The specific example is this:

sage: plot(prime_pi,3,100,xmin=5)
TypeError: plot() got multiple values for keyword argument 'min'

which clearly is because prime_pi.plot has a predefined xmin. This should be handled gracefully, since

sage: plot(prime_pi,3,100).show(xmin=5)

has no problems, since the show method is separate from the actual plot creation.

Probably some other functions like euler, moebius, or some others will have this problem.

Change History (6)

comment:1 Changed 2 years ago by embray

  • Milestone changed from sage-8.9 to sage-9.1

Ticket retargeted after milestone closed

comment:2 Changed 21 months ago by mkoeppe

  • Milestone changed from sage-9.1 to sage-9.2

Moving tickets to milestone sage-9.2 based on a review of last modification date, branch status, and severity.

comment:3 Changed 15 months ago by mkoeppe

  • Milestone changed from sage-9.2 to sage-9.3

comment:4 Changed 10 months ago by mkoeppe

  • Milestone changed from sage-9.3 to sage-9.4

Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review.

comment:5 Changed 5 months ago by mkoeppe

  • Milestone changed from sage-9.4 to sage-9.5

comment:6 Changed 6 weeks ago by mkoeppe

  • Milestone changed from sage-9.5 to sage-9.6
Note: See TracTickets for help on using tickets.