Mercurial > octave
comparison scripts/plot/util/private/__gnuplot_draw_axes__.m @ 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 | 3cbfbb920de3 |
children | 6f10765eca35 |
comparison
equal
deleted
inserted
replaced
22054:55e2979e1fd1 | 22055:21f3cbd5c708 |
---|---|
501 obj.ydata(obj.ydata<=0) = NaN; | 501 obj.ydata(obj.ydata<=0) = NaN; |
502 endif | 502 endif |
503 if (zlogscale && isfield (obj, "zdata")) | 503 if (zlogscale && isfield (obj, "zdata")) |
504 obj.zdata = axis_obj.zsgn * obj.zdata; | 504 obj.zdata = axis_obj.zsgn * obj.zdata; |
505 obj.zdata(obj.zdata<=0) = NaN; | 505 obj.zdata(obj.zdata<=0) = NaN; |
506 endif | |
507 | |
508 if (strcmp (get (obj.parent, "type"), "hggroup")) | |
509 obj.displayname = get (obj.parent, "displayname"); | |
506 endif | 510 endif |
507 | 511 |
508 switch (obj.type) | 512 switch (obj.type) |
509 case "image" | 513 case "image" |
510 img_data = obj.cdata; | 514 img_data = obj.cdata; |
1564 otherwise | 1568 otherwise |
1565 pos = ""; | 1569 pos = ""; |
1566 endswitch | 1570 endswitch |
1567 if (__gnuplot_has_feature__ ("key_has_font_properties")) | 1571 if (__gnuplot_has_feature__ ("key_has_font_properties")) |
1568 [fontname, fontsize] = get_fontname_and_size (hlgnd); | 1572 [fontname, fontsize] = get_fontname_and_size (hlgnd); |
1569 fontspacespec = [ create_spacingspec(fontname, fontsize, gnuplot_term),... | 1573 fontspacespec = [create_spacingspec(fontname, fontsize, gnuplot_term),... |
1570 create_fontspec(fontname, fontsize, gnuplot_term) ]; | 1574 ' ', create_fontspec(fontname, fontsize, gnuplot_term)]; |
1571 else | 1575 else |
1572 fontspacespec = ""; | 1576 fontspacespec = ""; |
1573 endif | 1577 endif |
1574 textcolors = get (findobj (hlgnd.children, "type", "text"), "color"); | 1578 textcolors = get (findobj (hlgnd.children, "type", "text"), "color"); |
1575 if (iscell (textcolors)) | 1579 if (iscell (textcolors)) |