From 95a418c3049d1ce9d97ae5ff70529868a0aeba04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helmut=20H=C3=A4nsel?= Date: Fri, 26 Apr 2024 14:41:54 +0200 Subject: [PATCH] fix syncprefix for plotnames with _ and . --- src/Charts.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Charts.jl b/src/Charts.jl index e159990..8eccac5 100644 --- a/src/Charts.jl +++ b/src/Charts.jl @@ -814,7 +814,7 @@ function plot(data::Union{Symbol,AbstractString}, args...; if isempty(syncprefix) datastr = String(data) syncprefix = endswith(datastr, "data") && length(datastr) > 4 ? datastr[1:end-4] : datastr - syncprefix = split(syncprefix, ['_', '.'])[1] + syncprefix = join(split(syncprefix, ['_', '.'])[1:end-1], '_') end class = isempty(class) ? "sync_$syncprefix" : "sync_$syncprefix $class" end