TDGRID(3NCARG)

✨ TDGRID β€” it's giving grid lines, bestie ✨

okay so this is a page from the NCAR GRAPHICS manual, and the routine is TDGRID. πŸŽ€


πŸ’– NAME πŸ’–

TDGRID β€” draws a perimeter around the edges of the reference parallelogram that was defined by the last call to TDPARA, and you can optionally get ticks or grid lines too. πŸ¦‹

Real talk: this routine is normally called indirectly (basically, TDGRDS calls it for you), but there is literally no reason why you couldn't call it directly. She's independent, she's self-sufficient. πŸ‘‘


🌸 SYNOPSIS 🌸

CALL TDGRID (XBEG, XSTP, NOXS, YBEG, YSTP, NOYS, IGRD)

🌈 C-BINDING SYNOPSIS 🌈

#include <ncarg/ncargC.h>

void c_tdgrid(float xbeg, float xstp, int noxs, float ybeg, float ystp,
int noys, int igrd)

✨ DESCRIPTION ✨

The arguments of TDGRID are giving very much "here's what you're passing in, bestie": πŸ’…

  • XBEG, XSTP, and NOXS β€” these are input expressions of types REAL, REAL, and INTEGER, respectively. They define where the ticks or grid lines get drawn along the "X" axis of the parallelogram β€” specifically at XBEG, XBEG+XSTP, XBEG+2*XSTP, ... XBEG+NOXS*XSTP. 🧚
  • YBEG, YSTP, and NOYS β€” again, input expressions of types REAL, REAL, and INTEGER. These define where ticks or grid lines get drawn along the "Y" axis of the parallelogram β€” at YBEG, YBEG+YSTP, YBEG+2*YSTP, ... YBEG+NOYS*YSTP. πŸ’œ
  • IGRD β€” an input expression of type INTEGER, and she decides what actually gets drawn. She takes one of these three values:
    • 1 β€” draw just a perimeter. minimal. clean. πŸŽ€
    • 2 β€” draw a perimeter with inward-pointing ticks. πŸ”₯
    • 3 β€” draw a perimeter with a grid. slay. πŸ‘‘

🫢 C-BINDING DESCRIPTION 🫢

The C-binding argument descriptions are the same as the FORTRAN argument descriptions. no cap, they did not change a single thing. 😭


⭐ ACCESS ⭐

To use TDGRID or c_tdgrid, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. fr fr, order matters here. πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

Online: tdclrs, tdctri, tddtri, tdgeti, tdgetr, tdgrds, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs. the whole friend group, honestly. 🌸


Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


⚠️ heads up bestie: that license agreement line is not a vibe, it's a rule. respect it. πŸ™ˆ

okay and one last thing β€” this whole page is a UNIX manual page, dated July 1997, and it lives at TDGRID(3NCARG). so if you ever need to cite her, that's the glow-up receipt. πŸ’…βœ¨ bye ily, go draw a parallelogram πŸ«ΆπŸ’œ