Re: [julia-users] Re: Compose.jl animation

2016-06-17 Thread Shashi Gowda
using ComposeDiff should help... The memory leak happens on the browser when you redraw the compose graphic... On Fri, Jun 17, 2016 at 6:05 PM, Ford O. wrote: > So I have found the source of memory leak: > > using Interact, Reactive, Compose > > @manipulate for frame =

Re: [julia-users] Re: Compose.jl animation

2016-06-17 Thread Ford O.
So I have found the source of memory leak: using Interact, Reactive, Compose @manipulate for frame = fps(300) compose(context(), rectangle(), fill("grey")) end But still don't know how to fix it.

Re: [julia-users] Re: Compose.jl animation

2016-06-17 Thread Ford O.
Right now I am using Interact, Reactive and Compose to display 30x30 Matrix trough Jupyter in firefox. But it looks like one of those libraries causes some memory leak, because every second my program uses 15MB more memory than s before. So after 3 minutes of running I run out of memory...

Re: [julia-users] Re: Compose.jl animation

2016-06-17 Thread Ford O.
So that was a problem of hydrogen that can't be solved right now...

Re: [julia-users] Re: Compose.jl animation

2016-06-12 Thread Ford O.
So I have moved a little bit further but it seems I am stuck again. I am using IJulia with Atom and Hydrogen (atom plugin). - Compose.set_default_graphic_size() can set the canvas size at most to ~20inches x ~20inches. - When using the code from reactive tutorial (below) and running

Re: [julia-users] Re: Compose.jl animation

2016-06-12 Thread Shashi Gowda
Yes, this is because the canvas is not square Run Compose.set_default_graphic_size(5inch, 5inch) Before drawing the picture... On 11-Jun-2016 8:08 PM, "Michael Borregaard" wrote: > > It is not a full answer, but you should check ctxpromise() for the size. I think the

[julia-users] Re: Compose.jl animation

2016-06-11 Thread Michael Borregaard
It is not a full answer, but you should check ctxpromise() for the size. I think the distribution is because the canvas is not square and you use relative positions to specify circle centers. You can set the size parameters in the context call. Sorry I realise this is really useless in terms of

[julia-users] Re: Compose.jl animation

2016-06-11 Thread Ford O.
Thanks for help. I have ran into another issues: I want to draw cca 200 x 200 grid where each cell can contain different shape. Can I specify in julia box how large will be the canvas? Right now it uses only 50% of screen available. Compose doesn't distribute the objects equally for some

Re: [julia-users] Re: Compose.jl animation

2016-06-09 Thread Shashi Gowda
You can create animations with Interact.jl and Compose.jl using IJulia (not any REPL). For more info on how to do this, see Interact.jl example notebook on animation . If you want to create gifs or videos of

[julia-users] Re: Compose.jl animation

2016-06-09 Thread Ford O.
Yep, it doesn't work. The above command just returns Compose.SVG object, but does not display it. On Thursday, June 9, 2016 at 2:39:21 AM UTC+2, Cedric St-Jean wrote: > > This may not satisfy your needs, but I do Compose.jl animations in IJulia > with IJulia.clear_output. > > for i in 1:10 >

[julia-users] Re: Compose.jl animation

2016-06-08 Thread Cedric St-Jean
This may not satisfy your needs, but I do Compose.jl animations in IJulia with IJulia.clear_output. for i in 1:10 IJulia.clear_output(true) draw(SVGJS(100mm, 100mm), compose(context(0.001,0.001,1,1),circle(1,1, i/10))) sleep(1) end I believe that you could also do it at the REPL