GSWN(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ 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 to GSWN are discouraged with NCAR Graphics. Instead, use the SET subroutine, because SET also 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 of 0. to 1. in both coordinate directions. This is the default normalization transformation for GKS. It is also fixed within GKS; that is, it is illegal to call GSWN with TRNUM = 0. πŸ’€ Don't do it. It's giving "please read the docs."
    • 1 β€” a normalization transformation in which the window is defined by XMIN to XMAX and YMIN to YMAX.
  • XMIN β€” (Real, Input) β€” the left horizontal coordinate of the window. XMIN < XMAX
  • XMAX β€” (Real, Input) β€” the right horizontal coordinate of the window.
  • YMIN β€” (Real, Input) β€” the bottom vertical coordinate of the window. YMIN < YMAX
  • YMAX β€” (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 (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