#6162: [with patch, needs work] plot_histogram improvments
----------------------+-----------------------------------------------------
Reporter: wdj | Owner: was
Type: defect | Status: new
Priority: minor | Milestone: sage-4.1
Component: graphics | Keywords: plot histogram
Reviewer: cswiercz | Author: Nick Alexander
Merged: |
----------------------+-----------------------------------------------------
Comment(by cswiercz):
Replying to [comment:8 ncalexan]:
> Sorry, I wasn't clear. Apply *only* `-histogram.patch`.
Perhaps I don't understand the difference between a histogram of a set of
values and a histogram of an _indexed_ set of values but it seems to me
that the following should output the familiar "bell-shaped" distribution:
{{{
sage: J = [ZZ(n) for n in range(10^3)]
sage: A = [RR(gauss(0,1)) for n in range(10^3)]
sage: s = IndexedSequence(A,J)
sage: P = s.plot_histogram()
}}}
However, this looks pretty much the same as
{{{
sage: Q = s.plot()
}}}
Also, the following is closer to the bell curve but it still doesn't
capture what's going on: (swapping the {{{IndexedSequence}}} inputs)
{{{
sage: t = IndexedSequence(J,A)
sage: R = t.plot_histogram()
}}}
I'm just wondering if I'm missing something.
Finally, {{{finance.timeseries.TimeSeries}}} has a {{{plot_histogram}}}
method that seems to work pretty well. Maybe you can use it somehow?
Anyway, those are just my thoughts. Again, if I'm missing something I'll
be happy to take another look.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6162#comment:9>
Sage <http://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 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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---