Opened 8 months ago

Last modified 3 months ago

## #28358 new defect

# functions with predefined plot methods may have keyword collision

Reported by: | kcrisman | Owned by: | |
---|---|---|---|

Priority: | trivial | Milestone: | sage-9.1 |

Component: | graphics | Keywords: | |

Cc: | Merged in: | ||

Authors: | Reviewers: | ||

Report Upstream: | N/A | Work issues: | |

Branch: | Commit: | ||

Dependencies: | Stopgaps: |

### Description

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.

**Note:**See TracTickets for help on using tickets.

Ticket retargeted after milestone closed