qt - Qwt: Axis Border Dist? -


i have 2 plots has created using qwt. couldn't sync axis(xbottom) each other.

enter image description here

they both have (30,30) borderdist

plot1->axiswidget(qwtplot::xbottom)->setminborderdist(30,30) //distance between axis , border 

but upper plot apply function , there difference between axises.

how can solve this?

regards.

i solved problem. axis numbers cause problem. İf give enough space(border) bewtween label , canvas side, great.

like this:

const int margin = 30; plot1->plotlayout()->setcanvasmargin( margin, qwtplot::yleft ); plot1->plotlayout()->setcanvasmargin( margin, qwtplot::yright ); plot2->plotlayout()->setcanvasmargin( margin, qwtplot::yleft ); plot2->plotlayout()->setcanvasmargin( margin, qwtplot::yright ); 

thanks uwe help.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -