From 4e7633194dd95e856d454539bfee67244e71d6d3 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 6 May 2020 20:21:08 +0200 Subject: [PATCH] allow titles as vector --- src/args.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/args.jl b/src/args.jl index 53d659ed..a3c96432 100644 --- a/src/args.jl +++ b/src/args.jl @@ -1103,8 +1103,11 @@ function RecipesPipeline.preprocess_attributes!(plotattributes::AKW) plotattributes[:colorbar] = convertLegendValue(plotattributes[:colorbar]) end - if haskey(plotattributes, :label) && plotattributes[:label] isa AbstractVector - plotattributes[:label] = permutedims(plotattributes[:label]) + # transpose vectors that are most certainly meant as row vector inputs + for k in (:label, :title) + if haskey(plotattributes, k) && plotattributes[k] isa AbstractVector + plotattributes[k] = permutedims(plotattributes[k]) + end end # framestyle