Ticket #13340 (closed defect: duplicate)

Opened 10 months ago

Last modified 8 months ago

log scale plot fails if xmin > xmax

Reported by: ppurka Owned by: jason, was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: graphics Keywords:
Cc: kcrisman Work issues:
Report Upstream: N/A Reviewers: Punarbasu Purkayastha
Authors: Merged in:
Dependencies: Stopgaps:

Description (last modified by ppurka) (diff)

Superseded by #13422


The summary. The problem is a simply a missing abs() function. Example:

plot(x,1,10).show(scale='loglog', xmin=10, xmax=1)

 File "/home/punarbasu/Installations/sage-5.2.trac/local/lib/python2.7/site-packages/sage/plot/graphics.py", line 1972, in _matplotlib_tick_formatter
    raise ValueError('Either expand the range of the independent '
ValueError: Either expand the range of the independent variable to allow two different integer powers of your `base`, or change your `base` to a smaller number.

Attachments

trac_13340-fix_logscale_xmin_xmax.patch Download (2.0 KB) - added by ppurka 10 months ago.
Apply to devel/sage

Change History

Changed 10 months ago by ppurka

Apply to devel/sage

comment:1 Changed 10 months ago by ppurka

  • Status changed from new to needs_review
  • Description modified (diff)
  • Authors set to Punarbasu Purkayastha

comment:2 Changed 9 months ago by ppurka

  • Cc kcrisman added

You are probably interested in this patch. Not sure how I missed it in #4529 :)

comment:3 Changed 9 months ago by ppurka

  • Status changed from needs_review to positive_review
  • Description modified (diff)

comment:4 follow-up: ↓ 5 Changed 9 months ago by ppurka

Someone close this as invalid :(

comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 9 months ago by kcrisman

Someone close this as invalid :(

The issue as described seems orthogonal to #13340. Are you saying it's fixed there? I wouldn't say invalid so much as a dup then.

comment:6 in reply to: ↑ 5 Changed 9 months ago by ppurka

Replying to kcrisman:

Someone close this as invalid :(

The issue as described seems orthogonal to #13340. Are you saying it's fixed there? I wouldn't say invalid so much as a dup then.

Ok. A dupe then. It is fixed way more cleanly in #13422.

comment:7 Changed 9 months ago by kcrisman

  • Reviewers set to Punarbasu Purkayastha
  • Milestone changed from sage-5.3 to sage-duplicate/invalid/wontfix
  • Authors Punarbasu Purkayastha deleted

comment:8 Changed 9 months ago by kcrisman

In the future, if you perceive an obvious dup, you can set the milestone as I have and make it positive review so that the release manager sees it.

comment:9 Changed 8 months ago by jdemeyer

  • Status changed from positive_review to closed
  • Resolution set to duplicate
Note: See TracTickets for help on using tickets.