Skip to content

Commit

Permalink
replace(string(a), ' ' => "<br>")
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Dec 16, 2024
1 parent 6ec7b3a commit c87b918
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/NMFkPlotMap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ function mapbox(df::DataFrames.DataFrame; column::Union{Symbol,AbstractString}="
else
f = ""
end
p = mapbox(lon, lat, df[!, a]; filename=f, title=a, kw...)
aa = replace(string(a), ' ' => "<br>")
p = mapbox(lon, lat, df[!, a]; filename=f, title=aa, kw...)
display(p)
end
end
Expand All @@ -265,11 +266,13 @@ function mapbox(lon::AbstractVector{T1}, lat::AbstractVector{T1}, M::AbstractMat
for i in eachindex(names)
println("Ploting $(names[i]) ...")
if filename != ""
f = fileroot * "_" * string(names[i]) * fileext
aa = replace(string(a), '/' => '\u2215')
f = fileroot * "_" * aa * fileext
else
f = ""
end
p = mapbox(lon, lat, M[:,i]; filename=f, title=string(names[i]), kw...)
aa = replace(string(a), ' ' => "<br>")
p = mapbox(lon, lat, M[:,i]; filename=f, title=aa, kw...)
display(p)
end
end
Expand Down

0 comments on commit c87b918

Please sign in to comment.