One way is, for example, sage: J = range(3) sage: A = [ZZ(i^2)+1 for i in J] sage: s = IndexedSequence(A,J) sage: s.plot_histogram()
using http://www.sagemath.org/hg/sage-main/file/211b127eab5d/sage/gsl/dft.py I think there is another way but I don't remember the details. I think this question has been asked before and you might find it in the sage-support archives. On Mon, Mar 24, 2008 at 1:40 PM, ajh <[EMAIL PROTECTED]> wrote: > > Hi. > > A simple question - How do you plot a histogram in sage? I have the > frequency density of each interval as an element in a vector. I'm sure > it's easy enough but I can't find it in the manual. > > Thanks, > Alex > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---