# Setting inner size of figures generated by Plots.jl nside Pluto notebook

**URL:** <https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635>\
**Category:** Visualization\
**Tags:** plotting, plots, gr, pluto, plotlyjs\
**Created:** [January 10, 2025, 11:34am UTC](https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635 "2025-01-10T11:34:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hisacro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hisacro/32/202631_2.png) [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Post date:** [January 10, 2025, 11:34am UTC](https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635/1 "2025-01-10T11:34:39Z")

</div>

Currently I’m code follows as below

```julia
using Plots; gr(size=(600,600))

begin
Plots.plot([3,4],[10,8])
Plots.plot!(twinx(),[.8,.2],[.4,-4])
			
Plots.plot!(xguidefontsize=20,yguidefontsize=20, tickfontsize=20, fontfamily="Computer Modern",framestyle=:box, legend=false, yrotation=90)
end

```

I’m setting the image size for different backends as `plotly(size=(600,600))` but I want to tweak the inner size, ie.

 ![Untitled](https://global.discourse-cdn.com/julialang/original/3X/6/2/62ac999af9e0087ec982ba6a65e5f2db2f161c83.png)

Is there any other Plots.jl backend that can fix the above size instead of whole image size.

> **Pluto notebook**
>
> ```julia
> ### A Pluto.jl notebook ###
> # v0.19.35
> 
> using Markdown
> using InteractiveUtils
> 
> # ╔═╡ 2a3c2aba-cf44-11ef-3876-3db2b6da2a06
> begin
> # import Pkg
> # Pkg.activate("/home/hisacro/.julia/environments/v1.9/Project.toml")
> using Plots; gr(size=(600,600))
> end
> 
> # ╔═╡ 77debfc3-e7ae-42ff-b444-f0276a2d87dc
> begin
> Plots.plot([3,4],[10,8])
> Plots.plot!(twinx(),[.8,.2],[.4,-4])
> 			
> Plots.plot!(xguidefontsize=20,yguidefontsize=20, tickfontsize=20, fontfamily="Computer Modern",framestyle=:box, legend=false, yrotation=90)
> end
> 
> # ╔═╡ Cell order:
> # ╠═2a3c2aba-cf44-11ef-3876-3db2b6da2a06
> # ╠═77debfc3-e7ae-42ff-b444-f0276a2d87dc
> 
> ```
