Merge branch '#159_axis-parea-spaces' into develop
This commit is contained in:
commit
ccf9ca044b
|
@ -380,13 +380,6 @@ namespace CairoChart {
|
|||
|
||||
protected virtual void eval_plarea () {
|
||||
plarea = evarea.copy();
|
||||
if (legend.show)
|
||||
switch(legend.position) {
|
||||
case Legend.Position.TOP: plarea.y0 += legend.spacing; break;
|
||||
case Legend.Position.BOTTOM: plarea.y1 -= legend.spacing; break;
|
||||
case Legend.Position.LEFT: plarea.x0 += legend.spacing; break;
|
||||
case Legend.Position.RIGHT: plarea.x1 -= legend.spacing; break;
|
||||
}
|
||||
|
||||
// Check for joint axes
|
||||
joint_x = joint_y = true;
|
||||
|
|
|
@ -261,10 +261,10 @@ namespace CairoChart {
|
|||
case ProcessType.CALC:
|
||||
height = leg_height_sum;
|
||||
switch (position) {
|
||||
case Position.TOP: chart.evarea.y0 += height; break;
|
||||
case Position.BOTTOM: chart.evarea.y1 -= height; break;
|
||||
case Position.LEFT: chart.evarea.x0 += width; break;
|
||||
case Position.RIGHT: chart.evarea.x1 -= width; break;
|
||||
case Position.TOP: chart.evarea.y0 += height + spacing; break;
|
||||
case Position.BOTTOM: chart.evarea.y1 -= height + spacing; break;
|
||||
case Position.LEFT: chart.evarea.x0 += width + spacing; break;
|
||||
case Position.RIGHT: chart.evarea.x1 -= width + spacing; break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue