Changeset 40454 for trunk/psModules/src/astrom/pmAstrometryVisual.c
- Timestamp:
- Jun 23, 2018, 11:21:41 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometryVisual.c (modified) (29 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryVisual.c
r40083 r40454 72 72 73 73 graphdata.color = KapaColorByName ("black"); 74 graphdata.ptype = 7;74 graphdata.ptype = KAPA_POINT_BOX_SOLID; 75 75 graphdata.size = 0.5; 76 graphdata.style = 2;76 graphdata.style = KAPA_PLOT_POINTS; 77 77 78 78 section.dx = 0.5; … … 232 232 233 233 graphdata.color = KapaColorByName ("black"); 234 graphdata.ptype = 7;234 graphdata.ptype = KAPA_POINT_BOX_SOLID; 235 235 graphdata.size = 0.5; 236 graphdata.style = 2;236 graphdata.style = KAPA_PLOT_POINTS; 237 237 238 238 // initialize and populate plot vectors … … 325 325 "Reference Star Luminosity Function, Shifted Raw Fit, and Cutoff", 326 326 KAPA_LABEL_XP); 327 graphdata.color =KapaColorByName("black");328 graphdata.style = 1;327 graphdata.color = KapaColorByName("black"); 328 graphdata.style = KAPA_PLOT_HISTOGRAM; 329 329 KapaPrepPlot (kapa1, lnMag->n, &graphdata); 330 330 KapaPlotVector(kapa1, lnMag->n, Mag->data.F32, "x"); … … 332 332 333 333 // Overplot fit 334 graphdata.style =0;334 graphdata.style = KAPA_PLOT_CONNECT; 335 335 KapaPrepPlot(kapa1,2,&graphdata); 336 336 KapaPlotVector(kapa1, 2, x, "x"); … … 391 391 psFree(section.name); 392 392 393 graphdata.ptype = 7;393 graphdata.ptype = KAPA_POINT_BOX_SOLID; 394 394 graphdata.size = 0.5; 395 graphdata.style = 2;395 graphdata.style = KAPA_PLOT_POINTS; 396 396 graphdata.color = KapaColorByName ("black"); 397 397 KapaClearPlots(kapa1); … … 441 441 442 442 graphdata.color = KapaColorByName ("red"); 443 graphdata.style = 0;443 graphdata.style = KAPA_PLOT_CONNECT; 444 444 445 445 // overplot clumpy regions excluded from analysis … … 507 507 KapaInitGraph (&graphdata); 508 508 KapaClearPlots (kapa1); 509 graphdata.ptype = 2;510 graphdata.style = 2;509 graphdata.ptype = KAPA_POINT_CROSS; 510 graphdata.style = KAPA_PLOT_POINTS; 511 511 512 512 psVector *xNew = psVectorAllocEmpty (xOld->n, PS_TYPE_F32); … … 556 556 KapaPlotVector (kapa1, xOld->n, yOld->data.F32, "y"); 557 557 558 graphdata.ptype = 1;558 graphdata.ptype = KAPA_POINT_BOX_OPEN; 559 559 graphdata.color = KapaColorByName("red"); 560 560 KapaPrepPlot (kapa1, xNew->n, &graphdata); … … 590 590 591 591 graphdata.color = KapaColorByName ("black"); 592 graphdata.ptype = 2;592 graphdata.ptype = KAPA_POINT_CROSS; 593 593 graphdata.size = 0.5; 594 graphdata.style = 2;594 graphdata.style = KAPA_PLOT_POINTS; 595 595 596 596 section.dx = 0.4; … … 619 619 // New Corners 620 620 graphdata.color = KapaColorByName("red"); 621 graphdata.ptype = 7;621 graphdata.ptype = KAPA_POINT_BOX_SOLID; 622 622 graphdata.size = 1.5; 623 623 KapaPrepPlot (kapa1, cornerPn->n, &graphdata); … … 812 812 KapaSendLabel (kapa1, "pmAstromGridAngle residuals. Box: Correlation Peak.", 813 813 KAPA_LABEL_XP); 814 graphdata.style = 2;815 graphdata.ptype = 0;814 graphdata.style = KAPA_PLOT_POINTS; 815 graphdata.ptype = KAPA_POINT_BOX_SOLID; 816 816 graphdata.size = 0.4; 817 817 graphdata.color = KapaColorByName ("black"); … … 861 861 offsetY - 0.5 * Scale}; 862 862 graphdata.color = KapaColorByName("red"); 863 graphdata.style = 0;863 graphdata.style = KAPA_PLOT_CONNECT; 864 864 graphdata.size = 1.0; 865 865 KapaPrepPlot(kapa1, 5, &graphdata); … … 873 873 KapaSetSection(kapa1, §ionX); 874 874 graphdata.color = KapaColorByName("black"); 875 graphdata.ptype = 1;876 graphdata.style = 1;875 graphdata.ptype = KAPA_POINT_BOX_OPEN; 876 graphdata.style = KAPA_PLOT_HISTOGRAM; 877 877 graphdata.ymin = 0; 878 878 graphdata.ymax = maxHorizontalSlice + 0.5; … … 887 887 float xslice[2] = {offsetX - Scale / 2., offsetX - Scale / 2.}; 888 888 float yslice[2] = {-5, 100}; 889 graphdata.style = 0;889 graphdata.style = KAPA_PLOT_CONNECT; 890 890 graphdata.color = KapaColorByName("red"); 891 891 KapaPrepPlot(kapa1, 2, &graphdata); … … 896 896 KapaSetSection(kapa1, §ionY); 897 897 graphdata.color = KapaColorByName("black"); 898 graphdata.ptype = 1;899 graphdata.style = 1;898 graphdata.ptype = KAPA_POINT_BOX_OPEN; 899 graphdata.style = KAPA_PLOT_HISTOGRAM; 900 900 graphdata.ymin = -maxOffpix; 901 901 graphdata.ymax = maxOffpix; … … 912 912 yslice[0] = yslice[1] = offsetY - Scale / 2.; 913 913 xslice[0] = -5; xslice[1] = 100; 914 graphdata.style = 0;914 graphdata.style = KAPA_PLOT_CONNECT; 915 915 graphdata.color = KapaColorByName("red"); 916 916 KapaPrepPlot(kapa1, 2, &graphdata); … … 982 982 983 983 // the point size will be scaled from the z vector 984 graphdata.style = 2;985 graphdata.ptype = 2;984 graphdata.style = KAPA_PLOT_POINTS; 985 graphdata.ptype = KAPA_POINT_CROSS; 986 986 graphdata.size = -1; 987 987 graphdata.color = KapaColorByName ("black"); … … 1019 1019 1020 1020 // the point size will be scaled from the z vector 1021 graphdata.style = 2;1022 graphdata.ptype = 7;1021 graphdata.style = KAPA_PLOT_POINTS; 1022 graphdata.ptype = KAPA_POINT_CIRCLE_OPEN; 1023 1023 graphdata.size = -1; 1024 1024 graphdata.color = KapaColorByName ("red"); … … 1079 1079 KapaSendLabel (kapa3, "Horizontal Profile", 1080 1080 KAPA_LABEL_XP); 1081 graphdata.style = 1;1082 graphdata.ptype = 0;1081 graphdata.style = KAPA_PLOT_HISTOGRAM; 1082 graphdata.ptype = KAPA_POINT_BOX_SOLID; 1083 1083 graphdata.size = 0.4; 1084 1084 graphdata.color = KapaColorByName ("black"); … … 1107 1107 KapaSendLabel (kapa3, "Vertical Profile", 1108 1108 KAPA_LABEL_XP); 1109 graphdata.style = 1;1110 graphdata.ptype = 0;1109 graphdata.style = KAPA_PLOT_HISTOGRAM; 1110 graphdata.ptype = KAPA_POINT_BOX_SOLID; 1111 1111 graphdata.size = 0.4; 1112 1112 … … 1150 1150 1151 1151 graphdata.color = KapaColorByName ("black"); 1152 graphdata.ptype = 7;1152 graphdata.ptype = KAPA_POINT_CIRCLE_OPEN; 1153 1153 graphdata.size = 0.5; 1154 graphdata.style = 2;1154 graphdata.style = KAPA_PLOT_POINTS; 1155 1155 1156 1156 section.dx = 0.4; … … 1317 1317 1318 1318 // X vs Y by mag (ref) 1319 graphdata.color = KapaColorByName ("red");1320 graphdata.ptype = 7;1321 graphdata.style = 2;1322 1323 1319 xVec = psVectorAlloc (refstars->n, PS_TYPE_F32); 1324 1320 yVec = psVectorAlloc (refstars->n, PS_TYPE_F32); … … 1338 1334 } 1339 1335 xVec->n = yVec->n = zVec->n = n; 1336 1337 graphdata.color = KapaColorByName ("red"); 1338 graphdata.ptype = KAPA_POINT_X; 1339 graphdata.style = KAPA_PLOT_POINTS; 1340 1340 1341 pmVisualTriplePlot (kapa2, &graphdata, xVec, yVec, zVec, false); 1341 1342 … … 1356 1357 1357 1358 // X vs Y by mag (raw) 1358 graphdata.color = KapaColorByName ("black");1359 graphdata.ptype = 7;1360 graphdata.style = 2;1361 1362 1359 psFree (xVec); 1363 1360 psFree (yVec); … … 1381 1378 } 1382 1379 xVec->n = yVec->n = zVec->n = n; 1380 1381 graphdata.color = KapaColorByName ("black"); 1382 graphdata.ptype = KAPA_POINT_BOX_OPEN; 1383 graphdata.style = KAPA_PLOT_POINTS; 1383 1384 pmVisualTripleOverplot (kapa2, &graphdata, xVec, yVec, zVec, false); 1384 1385 … … 1392 1393 zVec = psVectorAlloc (match->n, PS_TYPE_F32); 1393 1394 1394 graphdata.ptype = 2;1395 graphdata.color = KapaColorByName ("blue");1396 1395 n = 0; 1397 1396 for (int i = 0; i < match->n; i++) { … … 1411 1410 xVec->n = yVec->n = zVec->n = n; 1412 1411 fprintf (stderr, "plotting %d matched stars (raw = blue)\n", n); 1412 1413 graphdata.ptype = KAPA_POINT_CROSS; 1414 graphdata.color = KapaColorByName ("blue"); 1413 1415 pmVisualTripleOverplot (kapa2, &graphdata, xVec, yVec, zVec, false); 1414 1416 1415 1417 if (0) { 1416 graphdata.ptype = 3;1418 graphdata.ptype = KAPA_POINT_X; 1417 1419 graphdata.color = KapaColorByName ("green"); 1418 1420 n = 0; … … 1449 1451 KapaClearPlots (kapa3); 1450 1452 1451 // X vs Y by mag (ref) 1452 graphdata.color = KapaColorByName ("black"); 1453 graphdata.ptype = 2; 1454 graphdata.style = 2; 1455 graphdata.size = 1; 1453 // mag vs dX 1456 1454 1457 1455 section.x = 0.0; … … 1486 1484 KapaSendLabel(kapa1, "raw mag", KAPA_LABEL_XM); 1487 1485 KapaSendLabel(kapa1, "dY", KAPA_LABEL_YM); 1486 1487 graphdata.color = KapaColorByName ("blue"); 1488 graphdata.ptype = KAPA_POINT_TRIANGLE_OPEN; 1489 graphdata.style = KAPA_PLOT_POINTS; 1490 graphdata.size = 2; 1488 1491 1489 1492 KapaPrepPlot (kapa3, xVec->n, &graphdata);
Note:
See TracChangeset
for help on using the changeset viewer.
