Skip to content

Commit dfff028

Browse files
committed
added missing variable to eval_methods.m
1 parent b727752 commit dfff028

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

eval_methods.m

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,6 @@
367367

368368
text_size = 10;
369369

370-
size_legend = size_label;
371-
372370
%--------------------------------------------------------------------------
373371
% axis limits and ticks
374372
%--------------------------------------------------------------------------
@@ -411,6 +409,12 @@
411409
title_factor_shift_x = 0;
412410
title_factor_shift_y = -0.075;
413411

412+
%--------------------------------------------------------------------------
413+
% legend
414+
%--------------------------------------------------------------------------
415+
legend_font = 'Times';
416+
legend_size = label_size;
417+
414418
%--------------------------------------------------------------------------
415419
% dependent parameters
416420
%--------------------------------------------------------------------------
@@ -446,7 +450,6 @@
446450
set( gcf, 'Position', [ 10, 10, paper_size_x, paper_size_y ] );
447451
set( gcf, 'PaperSize', [ paper_size_x, paper_size_y ] );
448452
set( gcf, 'PaperPositionMode', 'auto');
449-
set(gcf, 'NextPlot', 'replacechildren');
450453

451454
axes_hdl = zeros( 1, N_plots_x * N_plots_y );
452455

@@ -474,7 +477,7 @@
474477
% legend
475478
%----------------------------------------------------------------------
476479
leg_hdl = legend( { 'linear propagation', 'nonlinear propagation' }, 'Location', 'northoutside', 'Orientation', 'horizontal', 'Units', 'centimeters' );
477-
set( leg_hdl, 'FontSize', size_legend );
480+
set( leg_hdl, 'FontName', legend_font, 'FontSize', legend_size );
478481
set( leg_hdl, 'Position', [ pos_x( 2 ), pos_y( 1 ) + width_axis_y + delta_lgd, width_axis_x, height_lgd ] );
479482

480483
%----------------------------------------------------------------------

0 commit comments

Comments
 (0)