1NGLOGO(3NCARG) NCAR GRAPHICS NGLOGO(3NCARG)
2
3
4
6 NGLOGO - Draws various NCAR and UCAR logos on a specified workstation.
7
9 CALL NGLOGO(IWK,X,Y,SIZE,ITYPE,ICOL1,ICOL2)
10
12 #include <ncarg/ncargC.h>
13
14 void c_nglogo(int iwk, float x, float y, float size,
15 int itype, int icol1, int icol2)
16
18 IWK (an input parameter of type INTEGER) The workstation
19 identifier for the workstation you want the logo plotted
20 to.
21
22 X,Y (input parameters of type REAL) specifying the X-Y
23 coordinate position, in normalized device coordinates
24 (between 0. and 1.), where the symbol is to be positioned.
25 This position marks the horizontal and vertical center of
26 the symbol.
27
28 SIZE (an input parameter of type REAL) The desired height of the
29 logo, expressed in normalized device coordinates.
30
31 ITYPE (an input parameter of type INTEGER) the logo type. The
32 choices are:
33
34 '1' - An NCAR logo. This logo will be drawn in a
35 single color if IWK is not a PostScript workstation.
36 A full color logo will be put to a PostScript
37 workstation.
38
39 '2' - A UCAR logo (just the UCAR star symbol).
40
41 '3' - The text "NCAR" in Bell Gothic Black font.
42
43 '4' - The text "UCAR" in Bell Gothic Black font.
44
45 '5' - UCAR star logo, plus "UCAR" in Bell Gothic font
46 at half the height of the star. In this case, the
47 coordinate (X,Y) specifies the center of the star
48 part of the logo.
49
50 ICOL1 (an input parameter of type INTEGER) The color index to be
51 used for the logo color. For the NCAR logo on PostScript
52 output, this argument is ignored.
53
54 ICOL2 (an input parameter of type INTEGER) A secondary color
55 index used only for logo type 5. For that type, the UCAR
56 star logo is drawn using color index ICOL1 and the text
57 string "UCAR" is drawn using color index ICOL2.
58
60 The C binding argument descriptions are the same as the FORTRAN
61 argument descriptions.
62
64 Call this subroutine to produce the desired logo.
65
66 Use the ncargex command to see the following relevant example: miex01.
67
69 CALL NGLOGO(1, 0.5, 0.5, 0.1, 1, 1, 1)
70 Plots an NCAR logo on workstation with ID 1 in the center of the
71 plot with height one-tenth the maximum plot size. If going to a
72 PostScript workstation, the logo will be a full-color logo,
73 otherwise the logo will be plotted using color index 1.
74
75 CALL NGLOGO(1, 0.5, 0.5, 0.1, 2, 2, 1)
76 Plots a UCAR star logo on workstation with ID 1 in the center of
77 the plot with height one-tenth the maximum plot size. The logo
78 will be plotted using color index 2.
79
81 To use NGLOGO or c_nglogo, load the NCAR Graphics libraries ncarg,
82 ncarg_gks, and ncarg_c, preferably in that order.
83
85 Online: plotchar (font 35) (3NCARG),
86
87 Hardcopy: NCAR Graphics Fundamentals, UNIX Version
88
90 Copyright (C) 1987-2002
91 University Corporation for Atmospheric Research
92
93 This documentation is free software; you can redistribute it and/or
94 modify it under the terms of the GNU General Public License as
95 published by the Free Software Foundation; either version 2 of the
96 License, or (at your option) any later version.
97
98 This software is distributed in the hope that it will be useful, but
99 WITHOUT ANY WARRANTY; without even the implied warranty of
100 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
101 General Public License for more details.
102
103 You should have received a copy of the GNU General Public License along
104 with this software; if not, write to the Free Software Foundation,
105 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
106
107
108
109UNIX April 2002 NGLOGO(3NCARG)