From ac12160cfa1901c243d1f311592130e0bb533731 Mon Sep 17 00:00:00 2001 From: Marco Berzborn Date: Mon, 8 May 2017 16:28:29 +0200 Subject: [PATCH] bugfix: removed cursors from plot legend --- kernel/PlotRoutines/Plottools/ita_plottools_cursors.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/PlotRoutines/Plottools/ita_plottools_cursors.m b/kernel/PlotRoutines/Plottools/ita_plottools_cursors.m index 6e0b6305..ada855fb 100644 --- a/kernel/PlotRoutines/Plottools/ita_plottools_cursors.m +++ b/kernel/PlotRoutines/Plottools/ita_plottools_cursors.m @@ -138,7 +138,7 @@ switch state 'Parent',current_axh,... 'UserData',lnh,... 'Visible','off'); %do not display cursor initially - %[yl(1) yl(2)] + ph2 = line([xv2 xv2],[-1e7 1e7], ... 'Color',PassiveColor, ... 'Marker',marker, ... @@ -150,6 +150,11 @@ switch state 'UserData',lnh,... 'Visible','off'); %do not display cursor initially + % hide the cursors from the plot legend + set(get(get(ph1,'Annotation'),'LegendInformation'),'IconDisplayStyle','off'); + set(get(get(ph2,'Annotation'),'LegendInformation'),'IconDisplayStyle','off'); + + setappdata(ph1,'sample_CurrentPos',x_init(1)); setappdata(ph2,'sample_CurrentPos',x_init(2)); -- GitLab