Re: [julia-users] fixing aspect ratio in Compose.jl

2015-10-01 Thread Michael Krabbe Borregaard
bump? :-) On Mon, Sep 28, 2015 at 9:13 PM, Michael Borregaard wrote: > Hi, > does anyone know how to fix the aspect ratio in a compose canvas? Gadfly > can do it with ```coords.Cartesian(fixed = true)```, which uses Compose, > but how to do it for that? > > thanks, > M >

Re: [julia-users] fixing aspect ratio in Compose.jl

2015-10-01 Thread Isaiah Norton
I think you need to use "ctxpromise". See https://github.com/dcjones/Compose.jl/issues/112 On Thu, Oct 1, 2015 at 8:02 AM, Michael Krabbe Borregaard < mkborrega...@gmail.com> wrote: > bump? :-) > > On Mon, Sep 28, 2015 at 9:13 PM, Michael Borregaard < > mkborrega...@gmail.com> wrote: > >> Hi, >>

Re: [julia-users] fixing aspect ratio in Compose.jl

2015-10-01 Thread Michael Krabbe Borregaard
Thanks, that link was very useful. I did not understand ctxpromise(), but it seems I can achieve a quadratic canvas regardless of the shape of the plotting area by: ```compose(context(0, 0, h > w ? w : h, h > w ? w : h), foo(), bar() ) ``` Best, Michael On Thu, Oct 1, 2015 at 5:09 PM, Isaiah

[julia-users] fixing aspect ratio in Compose.jl

2015-09-28 Thread Michael Borregaard
Hi, does anyone know how to fix the aspect ratio in a compose canvas? Gadfly can do it with ```coords.Cartesian(fixed = true)```, which uses Compose, but how to do it for that? thanks, M