Commit 9dbc1b09 authored by Vesa Oikonen's avatar Vesa Oikonen
Browse files

svg_define_viewports() sets smaller tick labels and more space for them

parent af4a6565
......@@ -166,14 +166,14 @@ int svg_define_viewports(
if(verbose>2) printf("max_yaxis_label_len=%d\n", m);
if(m<3) vp->coordinate_area_viewport.x=vp->plot_area_viewport.w/14;
else if(m<5) vp->coordinate_area_viewport.x=vp->plot_area_viewport.w/10;
else if(m<7) vp->coordinate_area_viewport.x=vp->plot_area_viewport.w/8;
else vp->coordinate_area_viewport.x=vp->plot_area_viewport.w/5;
else if(m<7) vp->coordinate_area_viewport.x=vp->plot_area_viewport.w/7; // prev 8
else vp->coordinate_area_viewport.x=vp->plot_area_viewport.w/4; // prev 5
vp->coordinate_area_viewport.y=0;
vp->coordinate_area_viewport.w=vp->plot_area_viewport.w-vp->coordinate_area_viewport.x;
vp->coordinate_area_viewport.h=19*vp->plot_area_viewport.h/20;
/* Calculate the character size for tick labels etc */
vp->plot_area_viewport.chr_size=vp->coordinate_area_viewport.chr_size=
ceil(0.67*(double)(vp->plot_area_viewport.h-vp->coordinate_area_viewport.h));
ceil(0.62*(double)(vp->plot_area_viewport.h-vp->coordinate_area_viewport.h)); // prev 0.67
if(verbose>3) printf("coordinate_area_viewport.h := %d\n", vp->coordinate_area_viewport.h);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment