IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2008, 1:22:53 PM (18 years ago)
Author:
beaumont
Message:

Completed 'first pass' of psastro visualizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branch_20081011/psModules/src/astrom/pmAstrometryVisual.c

    r20443 r20478  
    2525# include <kapa.h>
    2626
    27 # define KAPAX 800
    28 # define KAPAY 800
     27# define KAPAX 700
     28# define KAPAY 700
    2929
    3030
    3131//variables to determine when things are plotted
    3232static bool isVisual             = false;
    33 static bool plotGridMatch        = false;
     33static bool plotGridMatch        = true;
    3434static bool plotTweak            = true;
    3535
     
    266266 * of these two profiles and adjusts the offset accordingly. This procedure plots the profiles.
    267267 */
    268 bool pmAstromVisualPlotTweak (psVector *xHist, psVector *yHist, int xBin, int yBin)
     268bool pmAstromVisualPlotTweak (psVector *xHist, ///< Smoothed Horizontal cut through the histogram
     269                              psVector *yHist, ///< Smoothed Vertical cut throug the histogram
     270                              int xBin,        ///< X Bin index of the histogram peak
     271                              int yBin         ///< Y bin index of the histogram peak
     272    )
    269273{
    270274    //make sure we want to plot this
     
    294298
    295299    // plot the X histogram
    296     pmAstromVisualScaleGraphdata(&graphdata, xIndices, xHistNew, false);
     300    pmAstromVisualScaleGraphdata(&graphdata, xIndices, xHist, false);
    297301    KapaSetSection(kapa, &section1);
    298302    KapaSetLimits (kapa, &graphdata);
     
    321325
    322326    //plot the Y histogram
    323     pmAstromVisualScaleGraphdata(&graphdata, yIndices, yHistNew, false);
     327    pmAstromVisualScaleGraphdata(&graphdata, yIndices, yHist, false);
    324328    KapaSetSection(kapa, &section2);
    325329    KapaSetLimits (kapa, &graphdata);
    326330    KapaSetFont(kapa, "helvetica", 14);
     331    graphdata.color = KapaColorByName ("black");
    327332    KapaBox(kapa, &graphdata);
    328333    KapaSendLabel (kapa, "Y offset Bin", KAPA_LABEL_XM);
     
    333338    graphdata.ptype = 0;
    334339    graphdata.size = 0.4;
    335     graphdata.color = KapaColorByName ("black");
    336340
    337341    KapaPrepPlot (kapa, yHist->n, &graphdata);
Note: See TracChangeset for help on using the changeset viewer.