On 29/07/11 20:31, Jason Grout wrote:
On 7/29/11 11:07 AM, William Stein wrote:
On Fri, Jul 29, 2011 at 10:56 AM, Jose
Guzman<sjm.guz...@googlemail.com> wrote:
I was a looking around the documentation and in google and I could
not find
any reference to histograms in Sage.
There are ways to plot histograms in Sage, but this is a weekness in
Sage.
Just out of curiosity how did you search? For example, you could go
to http://sagemath.org/ and type "histogram" in the box in the upper
right corner does yield some results, e.g.,
http://sagemath.org/doc/reference/sage/finance/time_series.html?highlight=histogram#sage.finance.time_series.TimeSeries.plot_histogram
I am sure that the question was addressed here before but... Is it
possible
to plot an histogram from a Numpy array in Sage (ideally in the
notebook)
You could do
sage: import numpy
sage: v = numpy.array([1..10])
sage: stats.TimeSeries(v).plot_histogram()
Do
sage: t = stats.TimeSeries(v)
sage: t.plot_histogram?
to see options for dividing your data into bins, etc.
By the way, I would *REALLY* like to see the following implemented in
Sage:
sage: histogram(...)
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 see http://trac.sagemath.org/sage_trac/ticket/9671 for a patch
for a histogram command.
Jason
Hey Jason, I have just import this ticket and it makes a very nice job!
As soon as I finish to read the developer guide I will try to send you
some feedback! There are a couple of arguments necessary for that function!
Thanks for your help!
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org