IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36487


Ignore:
Timestamp:
Feb 6, 2014, 12:40:26 PM (12 years ago)
Author:
eugene
Message:

avoid plotting out of bounds in png

Location:
trunk/Ohana/src/kapa2/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa2/src/Graphs.c

    r29539 r36487  
    6464  graph[0].data.coords.crpix2 = 0.0;
    6565  graph[0].data.coords.cdelt1 = graph[0].data.coords.cdelt2 = 1.0;
    66   strcpy (graph[0].data.coords.ctype, "RA---LIN");
     66  strcpy (graph[0].data.coords.ctype, "DEC--LIN");
    6767  strcpy (graph[0].data.axis, "2222");
    6868  strcpy (graph[0].data.ticks, "2222");
  • trunk/Ohana/src/kapa2/src/Image.c

    r29938 r36487  
    1818  channel->coords.crpix2 = 0.0;
    1919  channel->coords.cdelt1 = channel->coords.cdelt2 = 1.0;
    20   strcpy (channel->coords.ctype, "RA---LIN");
     20  strcpy (channel->coords.ctype, "DEC--LIN");
    2121  channel->coords.Npolyterms = 0;
    2222
  • trunk/Ohana/src/kapa2/src/bDrawObjects.c

    r35416 r36487  
    315315        D = scaleSize ? dz*z[i] : ds;
    316316        FillRectangle (buffer, sx, sy, 2*D, 2*D);
     317        // plot range saturated by bDrawRectFill
    317318      }
    318319    }
     
    335336        D = scaleSize ? dz*z[i] : ds;
    336337        DrawRectangle (buffer, sx, sy, 2*D, 2*D);
     338        // plot range saturated by bDrawRectOpen
    337339      }
    338340    }
     
    356358        DrawLine (buffer, sx - D, sy, sx + D, sy);
    357359        DrawLine (buffer, sx, sy - D, sx, sy + D);
     360        // out-of-range points skipped by bDrawPoint
    358361      }
    359362    }
     
    377380        DrawLine (buffer, sx + D, sy - D, sx - D, sy + D);
    378381        DrawLine (buffer, sx - D, sy - D, sx + D, sy + D);
     382        // out-of-range points skipped by bDrawPoint
    379383      }
    380384    }
     
    398402        // FillTriangle (buffer, sx - D, sy - 0.58*D, sx + D, sy - 0.58*D, sx, sy + 1.15*D);
    399403        FillTriangle (buffer, sx, sy + 0.58*D, D, -1.73*D);
     404        // out-of-range points skipped by bDrawPoint
    400405      }
    401406    }
     
    418423        D = scaleSize ? dz*z[i] : ds;
    419424        OpenTriangle (buffer, sx - D, sy + 0.58*D, sx + D, sy + 0.58*D, sx, sy - 1.15*D);
     425        // out-of-range points skipped by bDrawPoint
    420426      }
    421427    }
     
    440446        DrawLine (buffer, sx, sy, sx + D, sy - 0.58*D);
    441447        DrawLine (buffer, sx, sy, sx,     sy + 1.15*D);
     448        // out-of-range points skipped by bDrawPoint
    442449      }
    443450    }
     
    460467        D = scaleSize ? dz*z[i] : ds;
    461468        DrawCircle (buffer, sx, sy, D);
     469        // out-of-range points skipped by bDrawPoint
    462470      }
    463471    }
     
    484492        DrawLine (buffer, sx - 0.58*D, sy + 0.81*D, sx - 0.95*D, sy - 0.31*D);
    485493        DrawLine (buffer, sx - 0.95*D, sy - 0.31*D, sx + 0.00*D, sy - 1.00*D);
     494        // out-of-range points skipped by bDrawPoint
    486495      }
    487496    }
     
    509518        DrawLine (buffer, sx + 0.50*D, sy - 0.87*D, sx - 0.50*D, sy - 0.87*D);
    510519        DrawLine (buffer, sx - 0.50*D, sy - 0.87*D, sx -      D, sy);
     520        // out-of-range points skipped by bDrawPoint
    511521      }
    512522    }
     
    529539        D = scaleSize ? dz*z[i] : ds;
    530540        FillCircle (buffer, sx, sy, D);
     541        // out-of-range points skipped by bDrawLineHorizontal
    531542      }
    532543    }
Note: See TracChangeset for help on using the changeset viewer.