On Fri, Jul 29, 2011 at 10:56 AM, Jose Guzman <[email protected]> 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? William -- 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
