Skip to content

Commit

Permalink
fix syncprefix for plotnames with _ and .
Browse files Browse the repository at this point in the history
  • Loading branch information
Helmut Hänsel committed Apr 26, 2024
1 parent 5319d58 commit 95a418c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Charts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95a418c

Please sign in to comment.