25 # define finite(x) _finite(x)
31 #include <qmessagebox.h>
55 float *px,
float *py,
Axis *pa)
62 if(x <= 0.0) *px = -1e5;
68 yr =
sqrt(yr*yr + yi*yi);
69 if(yr <= 0.0) *py = -1e5;
70 else *py = float(
log10(yr/fabs(pa->
low)) /
75 yr =
sqrt(yr*yr + yi*yi);
76 *py = float((yr-pa->
low)/(pa->
up-pa->
low)*
double(
y2));
79 if(!finite(*px)) *px = 0.0;
80 if(!finite(*py)) *py = 0.0;
127 double GridStep, corr, zD, zDstep, GridNum;
161 while((z <=
x2) && (z >= 0)) {
165 if((zD < 1.5*zDstep) || (z == 0) || (z ==
x2)) {
167 if(
xAxis.
up < 0.0) tmp =
'-'+tmp;
168 w = metrics.width(tmp);
171 Lines.append(
new Line(z, 5, z, -5, QPen(QPen::black,0)));
175 if(zD > 9.5*zDstep) zDstep *= 10.0;
193 while((z <=
x2) && (z >= 0)) {
194 if(fabs(GridNum) < 0.01*
pow(10.0, Expo)) GridNum = 0.0;
196 w = metrics.width(tmp);
202 Lines.append(
new Line(z, 5, z, -5, QPen(QPen::black,0)));
218 Lines.append(
new Line(0, 0,
x2, 0, QPen(QPen::black,0)));
219 Lines.append(
new Line(0,
y2, 0, 0, QPen(QPen::black,0)));
244 Name = QObject::tr(
"Cartesian");
245 BitmapFile = (
char *)
"rect";