#9671: Improve bar chart and histogram support
-------------------------------------+-------------------------------------
       Reporter:  kcrisman           |        Owner:  jason, was
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  graphics           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vbraun/improve_bar_chart_and_histogram_support|  
8d7387a2748f4dd51b8c955a777c67a8a8c465b5
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by kcrisman):

 For completeness, here are the (relevant) failing tests.
 {{{
     g = Histogram(range(4), [1,3,2,0], {}); g
     Histogram(range(3), [10,3,5], {'width':0.7})
     g = Histogram(range(4), [1,3,2,0], {})
     g = Histogram(range(4), [1,3,2,0], {})
 (all give)
     TypeError: __init__() takes exactly 3 arguments (4 given)
 (this is probably because they're taken from bar_chart but a histogram
 only takes one list)

     histogram([1,2,10])
     histogram([1,2,3,4])
     histogram([-3,4,-6,11])
 (all give)
     Graphics object consisting of 1 graphics primitive
 (maybe this is from the change in display hook in Ipython)

 Failed example:
     histogram([-3,5,-6,11], rgbcolor=(1,0,0))
 Expected nothing
 Got:
     doctest:239: FormatterWarning: Exception in text/plain formatter:
 Unknown property rgbcolor
     None
 }}}
 Also, `get_minmax_data` doesn't even have any doctests, and one of the
 ones that fails now because of `g` not being defined in `_allowed_options`
 will need to be updated since there are a lot more options in the
 histograms (and this should be easy).  And `_repr_` makes no sense - what
 is an `n` datalist?  Oh, ''and'' we want to document the multiple dataset
 option.  Wow, more to do than I realized.
 
http://matplotlib.org/_sources/examples/pylab_examples/histogram_demo_extended.txt
 is a useful resource.

 But I do agree that the underlying matplotlib functionality is very likely
 to be awesome.  And in fact there are even more options now

--
Ticket URL: <http://trac.sagemath.org/ticket/9671#comment:25>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to