<bremner>
gproto23: I'm not very familiar with the universe stuff, but at a guess it has to do with fitting the rocket in the visible area while the height is high
TCZ has quit [Quit: Do nothing unless you must, and when you must act -- hesitate.]
<gproto23>
bremner: yes, correct. but the point i don't understand is its calculation
<bremner>
gproto23: maybe it helps that place-image takes the coordinates as the location for the center of the image, and dividing by 2 finds the vertical center
fredmanglis has quit [Ping timeout: 246 seconds]
gproto23 has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
gproto23 has joined #racket
badkins has joined #racket
brj has quit [Ping timeout: 252 seconds]
brj has joined #racket
Sgeo has joined #racket
gproto023 has joined #racket
gproto23 has quit [Ping timeout: 268 seconds]
narimiran has quit [Ping timeout: 260 seconds]
nebunez has joined #racket
gproto023 has quit [Quit: Leaving]
gproto23 has joined #racket
endformationage has joined #racket
Sgeo_ has joined #racket
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo has quit [Ping timeout: 268 seconds]
Sgeo has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
badkins has joined #racket
acarrico has quit [Quit: Leaving.]
Major_Biscuit has quit [Ping timeout: 252 seconds]
narimiran has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
gproto023 has joined #racket
bitmapper has joined #racket
gproto23 has quit [Ping timeout: 246 seconds]
gproto023 has quit [Ping timeout: 265 seconds]
badkins has joined #racket
evdubs has joined #racket
evdubs has quit [Remote host closed the connection]
evdubs has joined #racket
aeth_ has joined #racket
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 246 seconds]
badkins has joined #racket
johnjay has quit [Ping timeout: 240 seconds]
johnjay has joined #racket
aeth has quit [Ping timeout: 252 seconds]
gproto023 has joined #racket
aeth has joined #racket
gproto023 has quit [Client Quit]
narimiran has quit [Ping timeout: 268 seconds]
WickedShell has joined #racket
WickedShell has quit [Remote host closed the connection]
phillbush has quit [Quit: Leaving]
WickedShell has joined #racket
<WickedShell>
I'm starting to experiment with the plot library, but a simple program that passes 1 million points to the line renderer takes an extremely long time to render (far, far longer then trying the same with matplotlib for example). Is there anything obvious I might be missing about getting the plot to run quickly?
dvdmuckle_ has joined #racket
dvdmuckle has quit [Ping timeout: 268 seconds]
dvdmuckle_ is now known as dvdmuckle
badkins has quit [Remote host closed the connection]
badkins has joined #racket
<friscosam>
WickedShell: if you're calling plot from untyped racket you may be incurring some contract checks. For a small number of points it is probably not taking as long to do the checks.
badkins has quit [Ping timeout: 240 seconds]
<friscosam>
I wrote a simple test program to check from #lang racket but it is hanging on my computer now :(
<WickedShell>
friscosam I'm calling it from typed racket actually, if I add a time call around the call to plot it's about 1.5 seconds, but the actual window that pops up takes more like a minute + to actually have lines shown
<WickedShell>
I can post my terrible sample program, one moment
<WickedShell>
shortening the list will be much more responsive :)
<friscosam>
my other guess is that it is truly trying to render a million lines and it is slow, and maybe matplotlib does some simplification depending on number of lines resolution etc.
<WickedShell>
Also seems like some O(n^2) behaviour (although I haven't written enough down on the actual times taken), but plotting 60,000 points felt much longer then 2x 30,000
<WickedShell>
Well it's worth noting that if you zoom in far enough on the 1 million point plot once it's there it's actually reasonably responsive
<WickedShell>
So it's definetly during the renderering. It doesn't mean you are wrong of course :)
<friscosam>
Yeah it may render everything in the first go and reuse a bitmap?
<WickedShell>
Pretty sure it's re rendering when I zoom in
<WickedShell>
Because the aspect ratios can get real weird as you zoom in (with the window controls)
<friscosam>
Ah of course
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
gpanders has quit [Remote host closed the connection]
badkins has quit [Ping timeout: 260 seconds]
<friscosam>
So it took 24.5s on this macbook to render a png with 60000 points. Running it under the profiler it only took two samples?!? Which makes me wonder if it's spending a lot of time out in FFI to cairo doing some drawing
<friscosam>
lol. I just looked at the 60k plot it's just a wall of red.
rgherdt has quit [Ping timeout: 248 seconds]
gpanders has joined #racket
sxmx has quit [Quit: WeeChat 3.1]
brj has quit [Ping timeout: 246 seconds]
gpanders has quit [Remote host closed the connection]
brj has joined #racket
sxmx has joined #racket
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #racket
selimcan has joined #racket
badkins has joined #racket
aeth_ has joined #racket
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
badkins has quit [Ping timeout: 260 seconds]
<WickedShell>
friscosam sorry, I had to step away for a bit. Yeah it's a wall of red with that many samples. My long term goal is to role my own plotting solution for some log analysis stuff
<WickedShell>
And a routine log for this produces about 2 million data points that you zoom in on depending on what you need to look at, and having 2-4 plots (admittedly not all of them are in the millions of points range) is not at all uncommon.
<WickedShell>
I'm somewhat hoping to avoid roling my own entire solution for culling/rendering, but I may just need to accept that's the path I need to go
<WickedShell>
But I am quite impressed with the general ease of making reasonable looking plots (although tbh I'm impressed at the number of things in the box so to speak with Racket anyways...)
libertyprime has quit [Ping timeout: 260 seconds]
<bremner>
not sure if I'm doing it wrong, but the new build with CS backend does not seem parallelize much