Hi all,
first of all, thanks for the nice methods that you guys have implemented for the histogram. Knuth and blocks, in particular, are so useful, you saved my day a couple of times.
However, I just wanted to mention a minor issue.
I think it would be great to a have a feature that would help plotting the output of the astropy histogram in somethin like a one-liner.
What I usually do is:
hist,bin_ed = histogram(mydata,...more options....,bins='knuth')
And then
for k,h in enumerate(hist):
ax.add_patch(patches.Rectangle((bin_ed[k], 0), bin_ed[k+1]-bin_ed[k], h,
...more options...))
Now, wouldn't it be great to be able to have the matplolib plotting capabilities and the astropy histogram bin computing feature together?
Something like:
ax.plot_this_astropy_object_and_make_it_look_like_the_default_histogram(myastropy_bayesian_blocks_histogram_object)
I am not even sure this is an issue for astropy, maybe it is rather a matplotlib one, but I'd like some feedback on my request.
Thanks,
Mario
What about http://docs.astropy.org/en/stable/visualization/histogram.html? :)
Oh wow,
that was easy ;)
Thanks a lot...I'll let the STScI python users know that this exists....because they didn;t know, or at least me and several others of them !
Mario
Most helpful comment
What about http://docs.astropy.org/en/stable/visualization/histogram.html? :)