# HG changeset patch # User Daniel J Sebald # Date 1467856216 18000 # Node ID 21f3cbd5c70825e320b730969ad2257f630beaa2 # Parent 55e2979e1fd180d889730a6ed65c1b00c4a66749 Supply correct key title specs for the gnuplot toolkit (bug #48427). * __gnuplot_draw_axes__.m: Copy parent displayname property to objects within an hggroup. Add a space between spacing spec and font spec. diff -r 55e2979e1fd1 -r 21f3cbd5c708 scripts/plot/util/private/__gnuplot_draw_axes__.m --- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Wed Jul 06 17:15:47 2016 -0700 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Wed Jul 06 20:50:16 2016 -0500 @@ -505,6 +505,10 @@ obj.zdata(obj.zdata<=0) = NaN; endif + if (strcmp (get (obj.parent, "type"), "hggroup")) + obj.displayname = get (obj.parent, "displayname"); + endif + switch (obj.type) case "image" img_data = obj.cdata; @@ -1566,8 +1570,8 @@ endswitch if (__gnuplot_has_feature__ ("key_has_font_properties")) [fontname, fontsize] = get_fontname_and_size (hlgnd); - fontspacespec = [ create_spacingspec(fontname, fontsize, gnuplot_term),... - create_fontspec(fontname, fontsize, gnuplot_term) ]; + fontspacespec = [create_spacingspec(fontname, fontsize, gnuplot_term),... + ' ', create_fontspec(fontname, fontsize, gnuplot_term)]; else fontspacespec = ""; endif