Skip to content

Commit 9b6b461

Browse files
suggest using Plots.__init__() (#750)
This solves issue in https://discourse.julialang.org/t/plots-do-not-display-unless-i-call-gui-when-using-custom-sysimage/92207 Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
1 parent df35434 commit 9b6b461

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/src/examples/plots.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ julia> @time display(p);
4949
0.331869 seconds (278.38 k allocations: 7.900 MiB)
5050
```
5151

52-
which is a sizeable speedup.
52+
which is a sizeable speedup.
53+
54+
When using the sysimage, you may need to call `Plots.__init__()` after loading
55+
Plots for the plots to display; otherwise, you might need to use `gui` or
56+
pass argument `show = true` to `plot`.
5357

5458
Note that since we have more stuff in our sysimage, Julia is slightly slower to
5559
start (0.35 seconds on this machine):

0 commit comments

Comments
 (0)