[Numpy-discussion] Fwd: Numpy for data manipulation
Alex Rogozhnikov
alex.rogozhnikov at yandex.ru
Tue Oct 6 20:26:22 EDT 2015
Thanks for comments, I've fixed the named issues.
Code is python2&3 compatible, I aliased numpy and used better inversion.
Specially thanks for pointing at histogram equalization - I've added
example for images.
Probably some other 'visual' examples would help - I'll try to invent
something to other points, but this is not simple.
(I left %matplolib inline due to more appropriate rendering)
Alex.
02.10.15 10:50, Kiko пишет:
>
>
> 2015-10-02 9:48 GMT+02:00 Kiko <kikocorreoso at gmail.com
> <mailto:kikocorreoso at gmail.com>>:
>
>
>
> 2015-10-02 9:38 GMT+02:00 Alex Rogozhnikov
> <alex.rogozhnikov at yandex.ru <mailto:alex.rogozhnikov at yandex.ru>>:
>
> I would suggest
>
> %matplotlib notebook
>
> It will still have to a nice png, but you get an
> interactive figure when it is live.
>
>
> Amazing, thanks. I was using mpld3 for this.
> (for some strange reason I need to put %matplotlib notebook
> before each plot)
>
>
> You should create a figure before each plot instead of putthon
> %matplotlib notebook
> plt.figure()
> ....
>
>
> putthon == putting
>
>
> The recommendation of inverting a permutation by
> argsort'ing it, while it works, is suboptimal, as it takes
> O(n log(n)) time, and you can do it in linear time:
>
> Actually, there is (later in post) a linear solution using
> bincount, but your code is definitely better. Thanks!
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org <mailto:NumPy-Discussion at scipy.org>
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
>
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20151007/80e545bb/attachment.html>
More information about the NumPy-Discussion
mailing list