mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
ruler-tool shows slope
This commit is contained in:
parent
6fe42748ed
commit
199e8493fe
@ -540,7 +540,7 @@ void JKQTPlotter::paintUserAction() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
txt=QString::fromStdString("\\delta_{x,y}="+jkqtp_floattolatexstr(dxy)+", \\alpha="+jkqtp_floattolatexstr(alpha, 1)+"\\degree");
|
txt=QString::fromStdString("\\delta_{x,y}="+jkqtp_floattolatexstr(dxy)+", \\alpha="+jkqtp_floattolatexstr(alpha, 1)+"\\degree, \\stfrac{\\mathrm{d}y}{\\mathrm{d}x}="+jkqtp_floattolatexstr(dy/dx, 1));
|
||||||
getPlotter()->getMathText()->parse(txt);
|
getPlotter()->getMathText()->parse(txt);
|
||||||
getPlotter()->getMathText()->getSizeDetail(painter, w, a, d, so);
|
getPlotter()->getMathText()->getSizeDetail(painter, w, a, d, so);
|
||||||
if (x2<x1) {
|
if (x2<x1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user