Skip to content

Commit

Permalink
fix unicodeplots (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg authored Feb 9, 2023
1 parent 48ec432 commit e3160ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ using JSON

import StatsPlots

import FileIO, FreeType # weak deps

const SRC_DIR = joinpath(@__DIR__, "src")
const WORK_DIR = joinpath(@__DIR__, "work")
const GEN_DIR = joinpath(WORK_DIR, "generated")
Expand Down Expand Up @@ -145,6 +143,11 @@ function generate_cards(
else
"$(backend)_$(ref_name(i)).png"
end
extra = if backend :unicodeplots
"import FileIO, FreeType #hide" # weak deps for png export
else
""
end
write(jl, """
# ---
# title: $(example.header)
Expand All @@ -156,6 +159,7 @@ function generate_cards(
using Plots
$backend()
$extra
"""
)

Expand Down
1 change: 1 addition & 0 deletions docs/src/backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ plot(1:5, add = raw"\draw (1,2) rectangle (2,3);", extra_kwargs = :subplot)
Simple and lightweight. Plot directly in your terminal. You won't produce anything publication quality, but for a quick look at your data it is awesome. Allows plotting over a headless node (SSH).
```@example backends
import FileIO, FreeType #hide
unicodeplots(); backendplot() #hide
```
Expand Down

0 comments on commit e3160ce

Please sign in to comment.