# Embed static Makie 3D plots in package documentation

**URL:** https://discourse.julialang.org/t/embed-static-makie-3d-plots-in-package-documentation/94713
**Category:** General Usage
**Tags:** documentation, makie
**Created:** [February 16, 2023, 9:02am UTC](https://discourse.julialang.org/t/embed-static-makie-3d-plots-in-package-documentation/94713 "2023-02-16T09:02:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kfrb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kfrb/32/29557_2.png) [@kfrb](https://discourse.julialang.org/u/kfrb)
#### Post date: [February 16, 2023, 9:02am UTC](https://discourse.julialang.org/t/embed-static-makie-3d-plots-in-package-documentation/94713/1 "2023-02-16T09:02:01Z")

</div>

I would like to include 3D Plots with `Axis3` in the documentation of my package. However, since interactivity for `Axis3` is not yet available, I don’t want to include them interactively, but only statically.

**The problem:** If you are on the hosted website with the cursor over the plot, you cannot scroll further on the page. You must move the cursor away from the embedded image to scroll further on the website.

I guess this functionality is for moving and panning the contents of an interactive plot. But with statically embedded images, this is confusing, as you suspect the website has hung up.

Can this be turned off? The described behavior occurs with `CairoMakie` and `WGLMakie`.

## Example `CairoMakie`:

````shell
```@setup 1
using CairoMakie
```

````

````shell
```@example 1
fig = Figure()
ax = Axis3(fig[1,1]; aspect=:data)
meshscatter!(ax, rand(3,5))
fig
```

````

## Example `WGLMakie`:

````shell
```@setup 2
using WGLMakie
using JSServe
Page(exportable=true, offline=true)
WGLMakie.activate!()
```

````

````shell
```@example 2
fig = Figure()
ax = Axis3(fig[1,1]; aspect=:data)
meshscatter!(ax, rand(3,5))
fig
```

````

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [February 16, 2023, 9:23am UTC](https://discourse.julialang.org/t/embed-static-makie-3d-plots-in-package-documentation/94713/2 "2023-02-16T09:23:19Z")

</div>

This shouldn’t occur with CairoMakie, are you sure you’re not actually having WGLMakie active in those examples? Call `CairoMakie.activate!()` before to be sure.

---

<div class="post-metadata">

### Author: ![kfrb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kfrb/32/29557_2.png) [@kfrb](https://discourse.julialang.org/u/kfrb)
#### Post date: [February 16, 2023, 10:32am UTC](https://discourse.julialang.org/t/embed-static-makie-3d-plots-in-package-documentation/94713/3 "2023-02-16T10:32:41Z")

</div>

Thanks @jules for your quick reply! Somehow WGLMakie was active, although it was not even imported within the example block.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [February 16, 2023, 10:41am UTC](https://discourse.julialang.org/t/embed-static-makie-3d-plots-in-package-documentation/94713/4 "2023-02-16T10:41:17Z")

</div>

Activation is global state, so it’s annoying but it affects code across cell boundaries.
