« first day (1795 days earlier)      last day (1423 days later) » 

12:17 AM
@flawr the justification was a reference to some paper from 2014, where they probably did the same thing. Didn’t bother looking up the reference.
 
 
10 hours later…
10:11 AM
Hey @AndrasDeak. I've seen this commented around in some places, but matplotlib is a bit slow, right? You also feel that?
 
Compared to what and doing what?
 
Compared to matlab, and in general
imshow, for example
 
If you have a shitload of data it's slow. In normal use I only see rendering issues
 
in my PC sometimes the window opens, and takes a bit to actually show the image. And its a small image
not always, but its quite common
 
that doesn't sound normal. If you have a reproducible example I can take a look.
But there are no good alternatives so I don't pay attention to this
One of my scripts generates ~10 contourf plots with a lot of levels, that takes ~5 seconds of waiting to show once the script is done
One plot at a time doesn't strike me as too slow unless too much data
 
10:16 AM
@CrisLuengo Recently I got cited in a paper that says that they implemented X algorithm and its much faster than Y algorithm in TIGRE, so its great. Problem is, their algorithm updates the gradient with all the data, while the one they compared to updates it in mini-batch mode. So yeah, their proof is bad 😀. Id be happy if they were faster (maybe they are), bu they missed the points that different algorithms perform differently
 
I'd certainly be used to some lag, but if it were a problem I'd probably notice
 
fair
maybe its just that small lag that I am not used to. I am running on a quite good machine, and MATLAB is exceptionally good inusing all the available resources, so maybe this is why I notice it
but I am acutally enjoying my python times. MAdo some plots with sliders to visualize volumes and so on.
 
Well it can't easily offload plotting to another core for instance
 
A bit shitty that you need to keep a reference to the slider, otherwise python deletes it 😃
 
@AnderBiguri that happens in GUIs, yeah...
 
10:19 AM
so I need global variables. Ugh, suffering
 
Didn't know mpl too
@AnderBiguri you can assign attrs to functions
 
tell me more
:)
 
def widgetifier(...):
    widget = Widget()
    widgetifier._widget = widget
Lives as long as the function
 
oh.
that is great.
The problem with Stackoverflo.python is that there is so much stuff that a lot of the answers do the job, but not in the most elegant way
 
Yup
 
10:21 AM
so I read that the onyl way was globals, but no one told me this
badbad! :)
 
With mpl the only sure bet is tacaswell, john kington and importanceofbeingernest
@AnderBiguri so if you do have an example I'd be interested
 
Its literally just imshow
maybe with colobar and colormap limits sometimes, but generally just imshow. There is no "example" really
 
Though I rarely use imshow
 
but its also not reproducible in my machine all the times. Simply sometimes takes longer
 
I see...
 
10:27 AM
I read in a couple of SO post people just saying "hey , mpl is slow, it is what it is".
its cool anyway, its not to the point of bothering me a lot
 
11:24 AM
@AnderBiguri how large images are we talking? I plotted some random noise with 1024x768 pixels and it loads in a fraction of a second
and 2d or 3d array?
and plt.imshow or ax.imshow?
 
plt.imshow, 250x400, 2D, I slecided it beforehand
 
hmm...how large was the original array?
I wonder if the strides made it slower due to cache misses...would be a long shot
 
but I just 250 in the sliced dim. The reason why I think its not the code its because I use similar code with a slider and the entire 3D image, and sometimes that is faster than when mpl is slow
so its the engine, not the data/code
 
One thing that's worth looking at is the backend. It might easily be that different backends have different performance.
@AnderBiguri I know, but I can only test it if I know your scenario
What does "but I just 250 in the sliced dim" mean?
 
sure sure. ah I meant it as 250x250x500, sliced it as im[120]
 
11:27 AM
I'm talking about this:
>>> arr.shape
(1000, 2000)

>>> arr[::10, ::10].shape
(100, 200)

>>> arr[::10, ::10].base.shape
(1000, 2000)
@AnderBiguri OK, then it's a contiguous 2d array, slicing doesn't matter
I was more asking about an rgb channel :)
 
yup. a np.array if that matters
 
it might, but I assumed that anyway, thanks
I'll try to look into it later, but chocolate syrup awaits
 
but dont' worry eh, its not really a big detriment to my code, its not always and not very long. Don't look at this for me.
@AndrasDeak dang
enjoy that
 
12:13 PM
It's actually closer to custard, and it goes with "rice soufflé" (not actually soufflé)
 
Something like "rice pudding"?
 
Yeah, but this also has egg whites and goes in the oven
 
oh
you know how to do desserts in that house
 
Hehe, yeah
Not much to look at but yumm
 
 
1 hour later…
1:31 PM
@AnderBiguri That is the second form of fooling an audience. The third form is comparing only to 40-year old algorithms and ignoring all advances since: crisluengo.net/archives/512
 
 
5 hours later…
6:27 PM
@CrisLuengo wtf
that is a good read there. But really, wtf. IEEE journal too
 
6:45 PM
a journal is only as good as the reviewers
that's why they are paid so well
3
 
6:57 PM
@AndrasDeak lol!
 
 
1 hour later…
8:22 PM
@AnderBiguri as an alternative to matplotlib if you just do some experimenting, facebook's visdom is quite nice: It basically makes a local webserver and you can see the results in your browser. But I use it mainly just to see how programs are doing that run over longer periods.
 
9:13 PM
Nice! thanks for the tip!
 

« first day (1795 days earlier)      last day (1423 days later) »