Example of text along curve.
MGL code:
call 'prepare1d' subplot 1 3 0 '':box:plot y(:,0) text y 'This is very very long string drawn along a curve' 'k' text y 'Another string drawn under a curve' 'Tr' subplot 1 3 1 '':box:plot y(:,0) text y 'This is very very long string drawn along a curve' 'k:C' text y 'Another string drawn under a curve' 'Tr:C' subplot 1 3 2 '':box:plot y(:,0) text y 'This is very very long string drawn along a curve' 'k:R' text y 'Another string drawn under a curve' 'Tr:R'
C++ code:
void smgl_text2(mglGraph *gr) // text drawing { mglData y; mgls_prepare1d(&y); if(big!=3) gr->SubPlot(1,3,0,""); gr->Box(); gr->Plot(y.SubData(-1,0)); gr->Text(y,"This is very very long string drawn along a curve","k"); gr->Text(y,"Another string drawn under a curve","Tr"); if(big==3) return; gr->SubPlot(1,3,1,""); gr->Box(); gr->Plot(y.SubData(-1,0)); gr->Text(y,"This is very very long string drawn along a curve","k:C"); gr->Text(y,"Another string drawn under a curve","Tr:C"); gr->SubPlot(1,3,2,""); gr->Box(); gr->Plot(y.SubData(-1,0)); gr->Text(y,"This is very very long string drawn along a curve","k:R"); gr->Text(y,"Another string drawn under a curve","Tr:R"); }