Dashline(3NCARG) | NCAR GRAPHICS | Dashline(3NCARG) |
Dashline - A set of line-drawing routines that can be used to generate various dashed line patterns (including solid), can add labels to the lines, can smooth the lines, and can suppress crowding of lines. There are four different versions of Dashline: "normal", "quick", "smooth", and "super". See the ACCESS Section for details on how to invoke the various versions.
#include <ncarg/ncargC.h>
c_dashdb
c_dashdc
c_frstd
c_vectd
c_lastd
c_lined
c_curved
c_reset
The Dashline utility allows you to draw various kinds of lines. In all four versions of it (quick, normal, smooth and super), you can specify an arbitrary dash pattern for the lines (including a solid line). In all but the quick version, you can also add interspersed labels to the lines for purposes such as naming lines in an XY plot or assigning contour levels to contour lines. In the smooth and super versions, the lines can also be smoothed using splines under tension.
The super version additionally allows for the culling of crowded lines. In order for the culling process to work properly, the routine RESET must be called at the beginning of each picture; when using other versions of Dashline, the calls to RESET may be left in, as they then do nothing.
To use the normal version of the Dashline utility, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. Other optional libraries to create the quick, smooth, and super versions of Dashline are automatically linked in by the ncargf77 command. If you need to know the names of these libraries for a particular version of Dashline, execute an "ncargf77" command with the appropriate option and a dummy input file and examine the resulting command line that is echoed and executed.
To run a code called mycode.f which has one or more calls to Dashline entries, issue one of the commands:
The lines will be drawn as unsmoothed dashed or solid lines. DASHDC may be called to define a dash pattern with labels.
The lines will be drawn as unsmoothed dashed or solid lines. The dash pattern may not include labels. If DASHDC is called, an error exit will result; DASHDB must be used instead.
The lines will be drawn as dashed or solid lines, smoothed using splines under tension. DASHDC may be called to define a dash pattern with labels.
The lines will be drawn as dashed or solid lines, smoothed using splines under tension. DASHDC may be called to define a dash pattern with labels. Crowded lines will be thinned; in order for this to work properly, you must remember to call RESET at the beginning of each picture.
When error conditions are detected, the support routine SETER is called in such a way that it writes a message to the standard error file (as defined by I1MACH(4)) and then terminates execution. The possible error messages are as follows:
Online: dashline_params, curved, dashdb, dashdc, frstd, lastd, lined, reset, vectd, ncarg_cbind
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial; 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.
March 1993 | UNIX |