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
>
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,
>>
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
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