Mercurial > octave
changeset 22055:21f3cbd5c708
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.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Wed, 06 Jul 2016 20:50:16 -0500 |
parents | 55e2979e1fd1 |
children | 05ad23810150 |
files | scripts/plot/util/private/__gnuplot_draw_axes__.m |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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