GSWN(3NCARG)
β¨ GSWN β¨ (aka Set window, bestie)
NCAR GRAPHICS manual page, section 3NCARG β yes we're in the library pages, come on in π
πΈ NAME πΈ
GSWN (Set window) β it establishes a window, aka a rectangular subspace, of world coordinates to be plotted. πͺβ¨
Okay so real talk, bestie: calls toGSWNare discouraged with NCAR Graphics. Instead, use theSETsubroutine, becauseSETalso supports mirror imaging and log scaling of axes. Not me telling you to use a different function on its own manpage π but fr fr, that's what it says.
π SYNOPSIS π
CALL GSWN (TRNUM, XMIN, XMAX, YMIN, YMAX)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/gks.h>
void gset_win(Gint tran_num, const Glimit *win_limits);
π DESCRIPTION π
Here's the whole cast of characters, no cap:
TRNUMβ (Integer, Input) β a normalization transformation number. The number of available transformations is implementation specific. In the case of NCAR GKS-0A, two normalization transformations are provided:0β selects the identity transformation, in which both the window and viewport have the range of0.to1.in both coordinate directions. This is the default normalization transformation for GKS. It is also fixed within GKS; that is, it is illegal to callGSWNwithTRNUM = 0. π Don't do it. It's giving "please read the docs."1β a normalization transformation in which the window is defined byXMINtoXMAXandYMINtoYMAX.
XMINβ (Real, Input) β the left horizontal coordinate of the window.XMIN < XMAXXMAXβ (Real, Input) β the right horizontal coordinate of the window.YMINβ (Real, Input) β the bottom vertical coordinate of the window.YMIN < YMAXYMAXβ (Real, Input) β the top vertical coordinate of the window.
π ACCESS π
To use GKS routines, load the NCAR GKS-0A library ncarg_gks. That's the vibe check you gotta pass first π«Ά
π SEE ALSO π
Online: set, gsvp, gselnt, gqclip, gset_win
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. Read it, bestie, it's the main character of legal paperwork πβ¨
and that's the whole page, periodt π
β sourced from the UNIX manual, dated March 1993, filed under GSWN(3NCARG). Slay, go set your window π¦ππ
π¦ 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