From 5fc9aa3a88c104ed0c9fc4ec1da9ea22fd5f5a2a Mon Sep 17 00:00:00 2001 From: t-bltg Date: Tue, 26 Apr 2022 15:10:25 +0200 Subject: [PATCH] UnicodePlots: support `polarplot` --- src/backends/unicodeplots.jl | 4 ++++ src/examples.jl | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backends/unicodeplots.jl b/src/backends/unicodeplots.jl index d8aa204a..b25b82e2 100644 --- a/src/backends/unicodeplots.jl +++ b/src/backends/unicodeplots.jl @@ -158,6 +158,10 @@ function addUnicodeSeries!( series[:x], series[:y] end + if ispolar(sp) || ispolar(series) + return UnicodePlots.polarplot(x, y) + end + # special handling (src/interface) fix_ar = get(se_kw, :fix_ar, true) if st === :histogram2d diff --git a/src/examples.jl b/src/examples.jl index 2d1734d4..ec6eae68 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -1317,7 +1317,6 @@ _backend_skips = Dict( 16, # nested layout unsupported 21, # custom markers unsupported 26, # nested layout unsupported - 27, # polar plots unsupported 29, # nested layout unsupported 33, # grid lines unsupported 34, # framestyle unsupported