Skip to content

Commit

Permalink
ue performance improvements (#19)
Browse files Browse the repository at this point in the history
* user events performance improvements

---------

Co-authored-by: Chris Naber <[email protected]>
  • Loading branch information
camsinfiniteram and cwnaber authored Nov 7, 2024
1 parent 4c482af commit 01f2a97
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wave_viewer.m
Original file line number Diff line number Diff line change
Expand Up @@ -1688,10 +1688,7 @@ function set_ax_i(ax,i)
if ~isfield(marker_name_spec,'iidatsource4ypos'), marker_name_spec.iidatsource4ypos = []; end
marker_name_spec.h_tmarker = h_tmarker;
marker_name_str = get_marker_name_str(marker_name_spec,t);
cur_hax = gca;
axes(hax); % because the text() command only works with the current axes
h_marker_name(i_marker_name) = text(t,tmarker_ydat(2),marker_name_str);
axes(cur_hax);
h_marker_name(i_marker_name) = text(hax,t,tmarker_ydat(2),marker_name_str);
set(h_marker_name(i_marker_name),'VerticalAlignment',marker_name_spec.vert_align);
if strcmp(marker_name_spec.color,'same')
set(h_marker_name(i_marker_name),'Color',get(h_tmarker,'Color'));
Expand Down

0 comments on commit 01f2a97

Please sign in to comment.