lblbar(3NCARG)


NAME

   LBLBAR - Draws a complete label bar.

SYNOPSIS

    CALL LBLBAR (IHOV, XLEB, XREB, YBEB, YTEB, NBOX, WSFB,
   + HSFB, LFIN, IFTP, LLBS, NLBS, LBAB)

C-BINDING SYNOPSIS

   #include <ncarg/ncargC.h>

   void c_lblbar (int ihov, float xleb, float xreb,
   float ybeb, float yteb, int nbox, float wsfb,
   float hsfb, int *lfin, int iftp, char *llbs[],
   int nlbs, int lbab)

DESCRIPTION

   IHOV        (an input expression of type INTEGER) is zero if the bar is
               to be oriented horizontally and non-zero if the bar is to
               be oriented vertically.

   XLEB, XREB, YBEB, YTEB
               (input expressions of type REAL) specify a rectangular area
               in the plotter frame in which the entire bar, including
               labels, is to fit. Each is a real number between 0 and 1,
               inclusive. XLEB specifies the position of the left edge of
               the area; XREB, the position of the right edge of the area;
               YBEB, the position of the bottom edge of the area; and
               YTEB, the position of the top edge of the area. A
               horizontal bar should probably be made wider than it is
               high; similarly, a vertical bar should probably be made
               higher than it is wide.

   NBOX        (an input expression of type INTEGER) may be positive or
               negative; its absolute value specifies the number of
               rectangular pieces (let's call them boxes) into which the
               bar should be divided.  All the boxes will be the same
               size. A horizontal bar will be divided into boxes using
               vertical lines and a vertical bar will be divided into
               boxes using horizontal lines. The boxes in a horizontal bar
               are considered to be ordered from left to right and the
               boxes in a vertical bar from bottom to top.  This ordering
               determines the order in which fill indices and labels are
               given. If NBOX is positive, the boxes will be outlined
               after being drawn; if NBOX is negative, the boxes will not
               be outlined.

   WSFB, HSFB  (input expressions of type REAL) determine what part of
               each box is to be color-filled or pattern-filled. Each is a
               number between 0 and 1; they specify the horizontal and
               vertical dimensions, respectively, of the filled sub-box,
               as fractions of the horizontal and vertical dimensions of
               the whole box.  The exact position of each sub-box within
               its box will be determined for you, depending on how you
               choose to have the bar labeled.

   LFIN        (an input array of type INTEGER) contains a list of
               indices, one for each box in the bar; each index determines
               how the filling of the associated box is to be done. These
               may be color indices or some other kind of indices,
               depending on the value of the next argument, IFTP.

   IFTP        (an input expression of type INTEGER) specifies how the
               sub-boxes should be filled, as follows:

               *   If the value of IFTP is zero, LBLBAR fills each sub-box
                   by calling the routine SFSGFA, in the package Softfill.
                   In this case, the value of the Softfill internal
                   parameter `TY' determines whether filling is done by
                   calls to the GKS routine GFA or by drawing closely-
                   spaced colored lines, which simulates solid fill, or by
                   drawing lines which form patterns of different apparent
                   densities.

               *   If the value of IFTP is non-zero, the routine LBFILL
                   will be called to do the filling. You may supply your
                   own version of the routine LBFILL.

               Prior to the filling of the boxes, the current polyline
               color and width will be set as specified by the values of
               the internal parameters 'CFL' and 'WFL', respectively.
               Therefore, if lines are used to do the fill and the method
               chosen does not otherwise set polyline color and width, the
               values of 'CFL' and 'WFL' will take effect.

               After filling is complete, the filled sub-boxes may be
               outlined using the color and line width specified by the
               Labelbar internal parameters `CBL' and `WBL'. (As mentioned
               above, this is done only if the argument NBOX is positive;
               it is suppressed if NBOX is negative.)

   LLBS        (an input array of type CHARACTER) provides a list of
               labels for the bar; the number of such labels may be equal
               to:

               *   the number of boxes less one, in which case the labels
                   are associated with the divisions between the boxes, or
                   to

               *   the number of boxes, in which case the labels are
                   associated with the boxes themselves, or to

               *   the number of boxes plus one, in which case the first
                   label is associated with the beginning of the bar, the
                   last label with the end of the bar, and the ones in
                   between with the divisions between the boxes.

               The labels are drawn by calls to the Plotchar routine
               PLCHHQ.  They are drawn in the color specified by the
               Labelbar internal parameter 'CLB' and using the polyline
               width specified by the Labelbar internal parameter 'WLB'.

   NLBS        (an input expression of type INTEGER) specifies the number
               of labels in the array LLBS.

   LBAB        (an input expression of type INTEGER) specifies on which
               side or sides of the bar the labels are to be written. The
               value 0 specifies that the bar is to be unlabeled, the
               value 1 that the labels are to be below a horizontal bar or
               to the right of a vertical bar, the value 2 that the labels
               are to be above a horizontal bar or to the left of a
               vertical bar, and the value 3 that the labels are to be
               repeated on both sides of the bar. The labels will be
               scaled in such a way as not to overlap one another or to
               run outside the area in which the label bar is to lie
               (except perhaps for labels at the ends of the bar).

C-BINDING DESCRIPTION

   The C-binding argument descriptions are the same as the FORTRAN
   argument descriptions.

EXAMPLES

   Use the ncarg command to see the following relevant examples: colcon,
   cpex05, cpex07, cpex08, elblba, tconpa, and tlblba.

ACCESS

   To use LBLBAR or c_lblbar, load the NCAR Graphics libraries ncarg,
   ncarg_gks, and ncarg_c, preferably in that order.

MESSAGES

   See the labelbar man page for a description of all Labelbar error
   messages and/or informational messages.

SEE ALSO

   Online: labelbar, labelbar_params, lbfill, lbgeti, lbgetr, lbseti,
   lbsetr, 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.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.