# Generating plots in Documenter.jl

**URL:** https://discourse.julialang.org/t/generating-plots-in-documenter-jl/11166
**Category:** General Usage
**Tags:** plotting, documenter
**Created:** [May 26, 2018, 2:48pm UTC](https://discourse.julialang.org/t/generating-plots-in-documenter-jl/11166 "2018-05-26T14:48:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)
#### Post date: [May 26, 2018, 2:48pm UTC](https://discourse.julialang.org/t/generating-plots-in-documenter-jl/11166/1 "2018-05-26T14:48:15Z")

</div>

In my [Microbiome](https://github.com/BioJulia/Microbiome.jl) package, I’ve got some places where plots are generated in the documentation, and then I’d like to show it below the code block, eg [here](https://github.com/BioJulia/Microbiome.jl/blob/master/docs/src/distances.md)

(note: I wasn’t sure how to get tripple backticks to format here - so I just used 2)

```julia
``@repl 2
using StatPlots

srand(1) # hide
abund = abundancetable(
    rand(100, 10),
    ["sample_$x" for x in 1:10],
    ["feature_$x" for x in 1:100]);

dm = getdm(abund, BrayCurtis());
p = pcoa(dm, correct_neg=true);

plot(p, title="Random PCoA")
savefig("pcoplot.png"); nothing # hide
``

![pcoa plot](pcoplot.png)

```

The images are generated in the same folder as the docs, and I referenced them trying to follow the [examples here](https://juliadocs.github.io/Documenter.jl/stable/man/syntax/#@example-block-1), only using `@repl` instead of `@example`. When I build locally, the images are generated as expected and I see them when I navigate to the folder in my browser:

 ![28](https://global.discourse-cdn.com/julialang/original/3X/4/c/4cb82f6d7119778b4b714b7879c2bf3f65c0664d.png)

But when they’re deployed, they’re [not there](https://biojulia.net/Microbiome.jl/latest/distances.html#Plotting-1)

 ![50](https://global.discourse-cdn.com/julialang/original/3X/b/3/b37e1bf0649a358f311513bf60dcea999af3afcf.png)

I’m guessing this has something to do with the deployment to the website, but I’m out of ideas on how to fix. Any help would be appreciated. cc @Ward9250 @bicycle1885

---

<div class="post-metadata">

### Author: ![Evizero](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evizero/32/10118_2.png) [@Evizero](https://discourse.julialang.org/u/Evizero)
#### Post date: [May 26, 2018, 3:31pm UTC](https://discourse.julialang.org/t/generating-plots-in-documenter-jl/11166/2 "2018-05-26T15:31:19Z")

</div>

I can see them online. Maybe its your browser settings?

 ![microbiome](https://global.discourse-cdn.com/julialang/original/3X/4/d/4d131b17dce99fd089478913d00349debf3a8409.png)

---

<div class="post-metadata">

### Author: ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)
#### Post date: [May 26, 2018, 3:36pm UTC](https://discourse.julialang.org/t/generating-plots-in-documenter-jl/11166/3 "2018-05-26T15:36:00Z")

</div>

Oh man, I just had to clear my browser cache 😬 :… That’s embarrassing.

Thanks for checking, and sorry for the noise
