GSET_WIN(3NCARG)

📦 version 6.6.2, in epel 9, fedora 43, fedora 44

💖 GSET_WIN — bestie, let's talk windows (the NCAR Graphics kind) 💖

okay so this is a page from the NCAR Graphics manual set, and we're gonna talk about gset_win (which literally just means "set window"). no cap. 🦋

✨ NAME ✨

gset_win (Set window) — establishes a window, or rectangular subspace, of world coordinates to be plotted.

and here's the tea ☕: calls to gset_win are discouraged with NCAR Graphics. instead, use the c_set routine, because c_set also supports mirror imaging and log scaling of axes. so like… it's giving "you can but should you" energy. 🙈


✨ SYNOPSIS ✨

#include <ncarg/gks.h>

void gset_win(Gint tran_num, const Glimit *win_limits);

that's it, that's the whole vibe. two arguments, one window. 💅


✨ DESCRIPTION ✨

tran_num — (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, and they are:

  • 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 gset_win with tran_num = 0. so don't. 🚫 like seriously don't, bestie, that's a whole error.
  • 1 — a normalization transformation in which the window is defined by win_limits.x_min to win_limits.x_max and win_limits.y_min to win_limits.y_max. this is the one you actually want. 🌈

the win_limits girlies (all Gfloat, all Input) 🎀

  • win_limits.x_min — the left horizontal coordinate of the window. constraint: x_min < x_max
  • win_limits.x_max — the right horizontal coordinate of the window.
  • win_limits.y_min — the bottom vertical coordinate of the window. constraint: y_min < y_max
  • win_limits.y_max — the top vertical coordinate of the window.
so like, x_min is the left edge and x_max is the right edge, y_min is the bottom and y_max is the top. and the mins have to be strictly less than the maxes or it's just not a rectangle, it's a problem. 💀

✨ ACCESS ✨

to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. that's the whole access situation. load 'em and you're in. 🔥


✨ SEE ALSO ✨

Online:

  • set(3NCARG)
  • gset_vp(3NCARG)
  • gsel_norm_tran(3NCARG)
  • ginq_clip(3NCARG)
  • gks(3NCARG)
  • ncarg_gks_cbind(3NCARG)

Hardcopy:

  • User's Guide for NCAR GKS-0A Graphics
  • NCAR Graphics Fundamentals, UNIX Version

go read those if you want the full lore, iykyk 📚✨


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's from the NCAR Graphics set, GSET_WIN(3NCARG), and the footer on the original says UNIX, dated March 1993 — so yes, this manual page is older than most of us and it's still out here telling people to use c_set instead. iconic behavior honestly. 👑💜

📦 where this page comes from