Customize code to choose legend size to avoid very small fonts - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/plot.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年07月23日 17:58:34 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年07月23日 17:58:34 +0200
commit1b437d39488ca68fbb51c3980fe9bba0514468d3 (patch)
treeb10c873025b824430d53739a8308e3debcf7fc84 /agg-plot/plot.h
parent78702ab307e9d05493cb980a25f19d340d5644a0 (diff)
downloadgsl-shell-1b437d39488ca68fbb51c3980fe9bba0514468d3.tar.gz
Customize code to choose legend size to avoid very small fonts
Diffstat (limited to 'agg-plot/plot.h')
-rw-r--r--agg-plot/plot.h 4
1 files changed, 2 insertions, 2 deletions
diff --git a/agg-plot/plot.h b/agg-plot/plot.h
index 4956b359..8290454b 100644
--- a/agg-plot/plot.h
+++ b/agg-plot/plot.h
@@ -636,14 +636,14 @@ agg::trans_affine plot<RM>::draw_legends(canvas_type& canvas,
switch (k)
{
case right:
- dx = sx * size_frac_x;
+ dx = max(sx * size_frac_x, bb_dx);
dy = dx * bb_dy / bb_dx;
px = sx - dx - ppad * sx - dxr;
py = (sy - dy) / 2;
dxr += dx + 2 * ppad * sx;
break;
case left:
- dx = sx * size_frac_x;
+ dx = max(sx * size_frac_x, bb_dx);
dy = dx * bb_dy / bb_dx;
px = ppad * sx + dxr;
py = (sy - dy) / 2;
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 02:18:17 +0000

AltStyle によって変換されたページ (->オリジナル) /