On Jul 29, 2:37 pm, William Stein <[email protected]> wrote:
> On Fri, Jul 29, 2011 at 11:31 AM, Jason Grout
>
> <[email protected]> wrote:
> >> I.e., a function called "histogram" with options/semantics that are
> >> very close to the ones here:
>
> >>    http://reference.wolfram.com/mathematica/Histograms/ref/Histogram.html
>
> >> Who wants to do it?
>
> > Please seehttp://trac.sagemath.org/sage_trac/ticket/9671for a patch for a
> > histogram command.
>
> I notice that in the docstrings in that patch it is called "bar_chart"
> everywhere for some weird reason.
> I then notice that Sage already (right now) has bar_chart in it.
>
> sage: bar_chart([x^2 for x in range(1,20)], width=0.2)
>
> So, to the original poster, maybe just try "bar_chart".  I would have
> never thought to look for that.

But a word to the OP - bar_chart just makes a bar chart, not a true
histogram with bins etc.  It just plots a bunch of bars with given
heights at the given spots, and sometimes I've had trouble getting
them to not overlap, not to mention behave like a histogram.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to