GSCHUP(3NCARG)
β¨ GSCHUP π (Set character up vector)
okay so bestie, welcome to the glow-up page for GSCHUP from the NCAR GRAPHICS manual, part of the 3NCARG crew π. This lil routine does one iconic job: it sets the angle at which all your subsequent text gets drawn with GTX. that's it. that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
CALL GSCHUP (CHUX, CHUY)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/gks.h>
void gset_char_up_vec(const Gvec *char_up_vec);
π DESCRIPTION π
CHUXβ (Real, Input) β this is the X (horizontal) world coordinate of a vector. yes bestie, a whole coordinate. πCHUYβ (Real, Input) β and this is the Y (vertical) world coordinate of that same vector. slay.
π USAGE π
so here's the tea β: the coordinates (CHUX, CHUY), taken relative to the point (0.,0.), establish a vector direction. That direction tells the system which way is "up" for each individual character π₯. It also sets the orientation of an entire text string β because the characters in a string get placed along a line that's perpendicular to the character up vector. it's giving geometry. it's giving perpendicularity. we love her. π
By default, the character up vector is (0.,1.), which means characters get drawn in their normal, horizontal, unbothered orientation π«Ά.
and ngl, the magnitude of the up vector is not used at all β so (0.,23.) is literally the same as (0.,1.). no cap. same energy. same result. β¨
π EXAMPLES π
CALL GSCHUP(-1.,0.)
this would specify the character up vector as (-1.,0.), and any subsequent text written with GTX would be rotated 90 degrees from normal π β which is exactly what you want for a Y-axis label. main character axis-labeling energy. π
CALL GSCHUP(1.,1.)
and this one would specify the character up vector as (1.,1.), so subsequent text written with GTX would be rotated -45 degrees from normal. diagonal. dramatic. obsessed. ππ
π ACCESS π
To use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the plug πβ¨
π§ SEE ALSO π§
Online: gtx, gstxp, gstxal, gstxfp, gschh, gschsp, gschxp, gscr, gstxci, gqtxp, gqtxal, gqtxfp, gqchh, gqchsp, gqchup, gqchxp, plotchar, gset_char_up_vec
Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
and that's the whole page bestie β this one dropped on the UNIX side of the NCAR GRAPHICS manual back in March 1993, filed under GSCHUP(3NCARG). rotate your text, stay perpendicular, and go slay some axis labels π
β¨π
π¦ 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