Skip to content

Commit 5d7bd37

Browse files
committedAug 5, 2024·
Prima more sensible title font size
1 parent f0a248e commit 5d7bd37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎lib/PDL/Graphics/Simple/Prima.pm

+4-2
Original file line numberDiff line numberDiff line change
@@ -439,16 +439,18 @@ sub plot {
439439
rely => 1.0 - (1 + int($pno / $me->{multi}->[0]))/$me->{multi}->[1],
440440
relheight => 1.0/$me->{multi}->[1],
441441
anchor => 'sw'});
442+
$plot->titleFont(size => 12);
443+
442444
$me->{next_plotno}++;
443445
} else {
444446
# No multiplot - just instantiate a plot (and destroy any widgets from earlier)
445-
map { $_->destroy } @{$me->{widgets}};
447+
$_->destroy for @{$me->{widgets}};
446448
$me->{widgets} = [];
447449
$plot = $me->{obj}->insert('Plot',
448450
pack=>{fill=>'both',expand=>1}
449451
);
452+
$plot->titleFont(size => 14);
450453
}
451-
452454
}
453455

454456
push(@{$me->{widgets}}, $plot);

0 commit comments

Comments
 (0)
Please sign in to comment.