# Luxor.jl - resize canvas?

**URL:** https://discourse.julialang.org/t/luxor-jl-resize-canvas/80603
**Category:** Visualization
**Tags:** question, luxor
**Created:** [May 6, 2022, 11:07am UTC](https://discourse.julialang.org/t/luxor-jl-resize-canvas/80603 "2022-05-06T11:07:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MLackner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlackner/32/2789_2.png) [@MLackner](https://discourse.julialang.org/u/MLackner)
#### Post date: [May 6, 2022, 11:07am UTC](https://discourse.julialang.org/t/luxor-jl-resize-canvas/80603/1 "2022-05-06T11:07:27Z")

</div>

Is there a way to resize a canvas in `Luxor.jl` so it includes the bounding boxes of all elements?

Suppose I have the following code generating a drawing:

```julia
@png begin
  circle(Point(200, 200), 150, :fill)
end

```

Now the circle is partly outside the canvas. Is there a way to resize the canvas and move the object so the bounding boxes of all objects are on the canvas?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [May 6, 2022, 11:22am UTC](https://discourse.julialang.org/t/luxor-jl-resize-canvas/80603/2 "2022-05-06T11:22:43Z")

</div>

The size of the canvas is fixed when you create it, unfortunately, so you should set it to a reasonable size before you start drawing:

```julia
@png begin
  circle(Point(200, 200), 150, :fill)
end 800 800

```
