From b2dfbaabe3ffc7e5018880f830f1c19f2f54bde9 Mon Sep 17 00:00:00 2001 From: Joaquim Date: Sat, 26 Oct 2024 03:19:08 +0100 Subject: [PATCH] Fix a reversion in legend (missed a blank before -G) --- src/common_options.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common_options.jl b/src/common_options.jl index b51a464f5..555175c7d 100644 --- a/src/common_options.jl +++ b/src/common_options.jl @@ -4696,7 +4696,7 @@ function put_in_legend_bag(d::Dict, cmd, arg, O::Bool=false, opt_l::String="") cmd_[1] *= " -G" * arg2str(rgb.*255) for k = 1:numel(pens) gmt_get_rgb_from_z(G_API[1], P, arg[gindex[k+1],ind]+10eps(), rgb) - pens[k] *= @sprintf("-G%.0f/%.0f/%.0f", rgb[1]*255, rgb[2]*255, rgb[3]*255) + pens[k] *= @sprintf(" -G%.0f/%.0f/%.0f", rgb[1]*255, rgb[2]*255, rgb[3]*255) end end end