MXMY(3NCARG)
π MXMY β bestie, come get your pen position π
NCAR GRAPHICS Β· manual page MXMY(3NCARG) Β· section 3, the "library routines" girlies π
β¨ NAME β¨
MXMY β it grabs the current pen position for you, in the Plotter Address Unit (PAU) coordinate system. That's it, that's the whole job. π
πΈ STATUS πΈ
okay so, real talk: PAUs are not being used in new NCAR Graphics routines, which means MXMY is officially considered an obsolete routine. she's a legacy icon, not a current one. π
The coordinate systems that are currently recognized are:
- GKS world coordinates
- GKS normalized device coordinates
- NCAR Graphics fractional coordinates
- NCAR Graphics user coordinates
If you wanna know what all of those actually mean, go read the NCAR Graphics document "NCAR Graphics Fundamentals, UNIX Version" β it has the full description, no cap. π
MXMY is still here for compatibility with early NCAR Graphics codes, and that's genuinely why she stays. Back in the day, people would hit FRSTPT and then MXMY back-to-back to effectively convert from user coordinates to plotter coordinates. If that's your goal, bestie, the functions KUPX and KUPY may be used instead. π«Ά
Writing new code? You could keep track of the pen location through internal bookkeeping (very DIY of you). But better would be to use fractional coordinates for the purposes to which plotter coordinates were put β the functions CFUX, CFUY, CUFX, and CUFY allow for conversions between user coordinates and fractional coordinates. slay. β¨
The following definition of the PAU Coordinate System is included for the purpose of interpreting and converting PAU codes:
The plotter coordinates of a point are integersIPXandIPY, whereIPXis between1and2**MXandIPYis between1and2**MY.MXandMYare internal parameters of SPPS; each has the default value10. Values ofMXandMYcan be set by routineSETIand retrieved by routineGETSI.
π¦ SYNOPSIS π¦
CALL MXMY (IX,IY)
π DESCRIPTION π
IXβ an output variable of typeINTEGER. It's the X coordinate of the pen position in PAUs. πIYβ an output variable of typeINTEGER. It's the Y coordinate of the pen position in PAUs. π
π USAGE π
The routines CURVE, FRSTPT, LINE, PLOTIF, PLOTIT, POINT, POINTS, and VECTOR update the pen position for subsequent MXMY retrieval. like, they move the pen, and then MXMY tells you where it ended up. β¨
Also β the routines PWRIT and WTSTR leave the pen position at the location specified by their first two arguments. noted, bestie. π
π ACCESS π
To use MXMY, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. yes, in that order, don't get cute with it. π
π SEE ALSO π
Online: curve, frstpt, line, plotit, point, points, pwrit, vector, seti, getsi, cpfx, cpfy, cpux, cpuy, kfpx, kfpy, kpmx, kpmy, kmpx, kmpy, kupx, kupy, spps, spps_converters
Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
π§ COPYRIGHT π§
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
ok that's the whole page, bestie, you ate it up π go forth and convert your coordinates responsibly β¨
UNIX Β· March 1993 Β· MXMY(3NCARG) β mwah, kiss kiss, bye bye ππ¦
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms