# How do i show plots in a PDF generated through Weave?

**URL:** https://discourse.julialang.org/t/how-do-i-show-plots-in-a-pdf-generated-through-weave/35346
**Category:** Visualization
**Created:** [March 1, 2020, 1:02am UTC](https://discourse.julialang.org/t/how-do-i-show-plots-in-a-pdf-generated-through-weave/35346 "2020-03-01T01:02:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)
#### Post date: [March 1, 2020, 1:02am UTC](https://discourse.julialang.org/t/how-do-i-show-plots-in-a-pdf-generated-through-weave/35346/1 "2020-03-01T01:02:50Z")

</div>

Using this code, I’m able to turn my .jl file into a pdf, including calculations

```julia
weave("Soc323.jl", out_path = "C:/Users/brett/OneDrive/Documents", doctype = "md2pdf")

```

but none of my plots are included, is there a command that I need to include?

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [March 1, 2020, 1:22am UTC](https://discourse.julialang.org/t/how-do-i-show-plots-in-a-pdf-generated-through-weave/35346/2 "2020-03-01T01:22:40Z")

</div>

Can you provide an MWE of what your document looks like?

---

<div class="post-metadata">

### Author: ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)
#### Post date: [March 1, 2020, 1:45am UTC](https://discourse.julialang.org/t/how-do-i-show-plots-in-a-pdf-generated-through-weave/35346/3 "2020-03-01T01:45:16Z")

</div>

```julia
using DataFrames
using Plots
using StatsPlots
using Weave

datf = DataFrame(A = 1:4, B = [1, 9, 7, 8])
datt = pvalue(UnequalVarianceTTest(datf.A, datf.B))
print(datf)
plot(boxplot((datf.A,datf.B)))
weave("Soc323.jl", out_path = "C:/Users/brett/OneDrive/Documents", doctype = "md2pdf")

```

If you save the file as Soc323.jl, and change the directory, you should be able to open a PDF. You should see the code, the data frame, and the t-test results, but not the boxplot.
