The diameter of a circle without a specified radius is taken to be the
width of the context iirc. The default width of the drawing surface is
greater than its height, resulting in the clipping of some part of the
circle.

Making the drawing surface a square will show it properly. You can do this
by running:

Compose.set_default_graphic_size(10inch, 10inch)

before you draw anything else.

On Tue, May 3, 2016 at 5:57 PM, Christoph Ortner <[email protected]
> wrote:

>
> Here is an Python output
>
>
>
> <https://lh3.googleusercontent.com/-p4LCQ_xf5pI/VyiY7I-WdcI/AAAAAAAABvM/fh0Ra6-V5Wkf-QEXzKF5bJXm7a3XVUaDwCLcB/s1600/Screen%2BShot%2B2016-05-03%2Bat%2B13.25.51.png>
>
>
> here is the PNG file:
>
>
>
> <https://lh3.googleusercontent.com/-gRmUGFJEX8s/VyiYyV1D-nI/AAAAAAAABvI/hGz_tJ8_glsX2M5Mq1Xh9KsLt3ULrg_QQCLcB/s1600/temp.png>
>
>
> but this is not the only problem I get, sometimes I see the whole image,
> but it is deformed. I couldn't reproduce that on a simple example though.
>
>
> Christoph
>
>
> On Tuesday, 3 May 2016 13:08:23 UTC+1, Andreas Lobinger wrote:
>>
>> Hello colleague,
>>
>> how did you set the correct dimensions?
>>
>> On Tuesday, May 3, 2016 at 10:53:59 AM UTC+2, Christoph Ortner wrote:
>>>
>>> If I create a context using `compose`, and then call  `display(ctx)`,
>>> then I end up with an image that looks roughly right but doesn't have the
>>> correct dimensions.
>>>
>>> How can I fix it?
>>>
>>> Thanks,
>>>    Christoph
>>>
>>>

Reply via email to