Skip to content

Commit

Permalink
Prima more sensible title font size
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Aug 5, 2024
1 parent f0a248e commit 5d7bd37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/PDL/Graphics/Simple/Prima.pm
Original file line number Diff line number Diff line change
Expand Up @@ -439,16 +439,18 @@ sub plot {
rely => 1.0 - (1 + int($pno / $me->{multi}->[0]))/$me->{multi}->[1],
relheight => 1.0/$me->{multi}->[1],
anchor => 'sw'});
$plot->titleFont(size => 12);

$me->{next_plotno}++;
} else {
# No multiplot - just instantiate a plot (and destroy any widgets from earlier)
map { $_->destroy } @{$me->{widgets}};
$_->destroy for @{$me->{widgets}};
$me->{widgets} = [];
$plot = $me->{obj}->insert('Plot',
pack=>{fill=>'both',expand=>1}
);
$plot->titleFont(size => 14);
}

}

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

0 comments on commit 5d7bd37

Please sign in to comment.