# Package documentation: the left edge of the plot is missing

**URL:** <https://discourse.julialang.org/t/package-documentation-the-left-edge-of-the-plot-is-missing/95348>\
**Category:** Package Management\
**Tags:** package, documentation, documenter\
**Created:** [February 28, 2023, 6:28pm UTC](https://discourse.julialang.org/t/package-documentation-the-left-edge-of-the-plot-is-missing/95348 "2023-02-28T18:28:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdogan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mdogan/32/47244_2.png) [@mdogan](https://discourse.julialang.org/u/mdogan)\
**Post date:** [February 28, 2023, 6:28pm UTC](https://discourse.julialang.org/t/package-documentation-the-left-edge-of-the-plot-is-missing/95348/1 "2023-02-28T18:28:26Z")

</div>

I have a strange issue with package documentation. The **left edge** of the plots and **x titles** are missing. these plots are generated directly by code within the **@example** block.

_ **Note** : I’m opening it on Microsoft Edge. Opened on different PCs and mobile - all the same._

[Tutorials · PortfolioAnalytics.jl (doganmehmet.github.io)](https://doganmehmet.github.io/PortfolioAnalytics.jl/dev/tutorials/)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/d/8d9422456dce67a04e6e11527baed59795d9f674.png)

If I open the same documentation via the **Juliahub** , it is fine.

[Tutorials · PortfolioAnalytics.jl (juliahub.com)](https://docs.juliahub.com/PortfolioAnalytics/1aeYI/0.2.0/tutorials/)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/3/a3698acadd70f895874d7921546f02aa58b3c366.png)

Not sure if this can be solved? I’d appreciate any suggestions.

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [February 28, 2023, 11:37pm UTC](https://discourse.julialang.org/t/package-documentation-the-left-edge-of-the-plot-is-missing/95348/2 "2023-02-28T23:37:57Z")

</div>

Try something like `plot(...; margin=10Plots.mm)`?

---

<div class="post-metadata">

**Author:** ![mdogan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mdogan/32/47244_2.png) [@mdogan](https://discourse.julialang.org/u/mdogan)\
**Post date:** [March 1, 2023, 9:49pm UTC](https://discourse.julialang.org/t/package-documentation-the-left-edge-of-the-plot-is-missing/95348/3 "2023-03-01T21:49:04Z")

</div>

> [@gdalle](#):
>
> ; margin=10Plots.mm

thanks very much for the advice. Unfortunately, it did not work.

```julia
plt = Plots.plot(plt_objective, decision_space; layout = (2, 1); margin=10Plots.mm) # hide

```

The function gives an error when `margin=10Plots.mm` is added.

---

<div class="post-metadata">

**Author:** ![mdogan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mdogan/32/47244_2.png) [@mdogan](https://discourse.julialang.org/u/mdogan)\
**Post date:** [March 1, 2023, 10:11pm UTC](https://discourse.julialang.org/t/package-documentation-the-left-edge-of-the-plot-is-missing/95348/4 "2023-03-01T22:11:20Z")

</div>

I found the issue. Added the below line to the **`documentation.yml`** file.

```julia
GKSwstype: "100"

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/6/8644bebf2d006701dff016befe7182a8bb52b74c.png)

[Syntax · Documenter.jl (juliadocs.org)](https://documenter.juliadocs.org/stable/man/syntax/)

Everything is fine now.  
[Functions · PortfolioAnalytics.jl (doganmehmet.github.io)](https://doganmehmet.github.io/PortfolioAnalytics.jl/dev/functions/#PortfolioAnalytics.portfolio_optimize)
