HSTOPR(3NCARG)
π HSTOPR π (that's the NCAR Graphics manual, bestie)
okay so picture this: you're out here trying to feed the Histogram utility a bunch of REAL arrays and nobody told you how. That's literally what HSTOPR is for. It specifies various REAL arrays to be used by the Histogram utility. π
β¨ NAME β¨
HSTOPR β Specifies various REAL arrays to be used by the Histogram utility.
πΈ SYNOPSIS πΈ
CALL HSTOPR (STRING,ARRAY,LARR)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_hstopr (char *string, float *array, int larr)
π DESCRIPTION π
STRINGβ Character, input. This is the lil selector that picks which internal parameter you're messing with. The possibilities are:
'WIN=ON' or 'WIN=OFF'
'SPA=ON' or 'SPA=OFF'
'MVA=ON' or 'MVA=OFF'
WIN defines the portion of the frame that will receive the histogram. SPA determines the spacing between histogram bars. MVA requests a test to detect input special values which denote missing data. slay.
ARRAYβ Real, input. Its whole job changes depending on which parameterSTRINGpicked. Peep the examples down below after argumentLARR.LARRβ Integer, input. Dimension ofARRAY. yeah, just how big the array is.
The following arrays may be defined by this routine:
πͺ Windowing πͺ
STRING is 'WIN=ON'
LARR = 4
ARRAY(1) = XMIN
ARRAY(2) = XMAX
ARRAY(3) = YMIN
ARRAY(4) = YMAX
These coordinates define a rectangular region of the total frame in NDC's where the current histogram is to be plotted. The range of allowed values is between 0. and 1. in both dimensions.
For example, XMIN=0., XMAX=.5, YMIN=.5, and YMAX=1. would specify the upper left quadrant of the frame. no cap, that's the whole upper left corner.
If 'WIN=OFF', the default window for the histogram will be the entire frame. iconic default behavior honestly.
π Spacing π
STRING is 'SPA=ON'
LARR = 2
ARRAY(1) = SPAC
ARRAY(2) = OVERLP
SPAC determines the spacing of histogram bars between 0. (no spacing) and 4. (maximum spacing). Default spacing is SPAC = 2.0.
OVERLP determines the overlap of adjacent histogram bars when two datasets are compared. Valid values are -4.0 (maximum overlap) to 4.0 (little or no overlap). The Default is 0.
When STRING = 'SPA=OFF', there is no spacing or overlap. bars are just gonna be bars. π
π΅οΈ Detecting missing values π΅οΈ
STRING is 'MVA=ON'
LARR = 2
ARRAY(1) = SETMVA
ARRAY(2) = SETEPS
SETMVA is the special value used to denote missing data. The default value is -9999.
SETEPS is an epsilon to use in the special value test. If the difference between a data point and SETMVA is less than SETEPS, then the data point is assumed to be a missing value. The Default is 1.E-10.
When STRING = 'MVA=OFF', there is no testing for missing values. your missing data is just gonna vibe there unacknowledged, lowkey.
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different language, bestie. π«Ά
π USAGE π
HSTOPR is called to set parameters of type REAL before entry HISTGR is called to generate the histogram. Options are the portion of the frame to receive the graphic, and the amount of spacing and overlap of histogram bars.
For a complete list of parameters available in this utility, see the histogram_params man page. go read it, i'll wait. β
π EXAMPLES π
Use the command "ncargex thstgr" to generate a three frame example of histogram options. The following code defined the window and bar spacing of plot 1 on frame 3.
C
C Plot 1 goes into the top left quadrant of the frame.
C
C ARR7 coordinates are XMIN, XMAX, YMIN, YMAX.
C
ARR7(1) = 0.
ARR7(2) = .5
ARR7(3) = .5
ARR7(4) = 1.
CALL HSTOPR('WIN=ON',ARR7,4)
C
SPAC(1) = 3.0
SPAC(2) = 0.0
CALL HSTOPR('SPA=ON',SPAC,2)
Example "ncargex thstmv" shows three examples of histograms with missing values in the input data. missing values stay getting caught fr fr. π
π₯ ACCESS π₯
To use HSTOPR or c_hstopr, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. yes, in that order. the order matters. don't be chaotic. π§
π¬ MESSAGES π¬
See the histogram man page for a description of all Histogram error messages and/or informational messages.
π SEE ALSO π
Online: histogram, histogram_params, hstopc, hstopi, hstopl, ncarg_cbind
Hardcopy: 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 came straight out of the UNIX manual, dated March 1993, and it's filed under HSTOPR(3NCARG) β go off, 1993, you ate. π
β¨π
π¦ 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