
NCL > Application examples > Basic examples
Basic example 8
How to draw an annotated object outside its viewport
This is an introductory example that shows how to draw a plot object, including any annotations, outside its viewport within a predefined bounded area of NDC space.

Discussion
This module describes how to draw a plot within predetermined
boundaries. The procedure draw_bounded_plot is
intended to be useful in this context. There is no resource file
for this example.A detailed discussion about how to create the plot appears in the comments of the source code for the example.
Creating the plot using HLU C library calls
The C program that generates this plot is called basic08c.c.
Creating the plot using HLU FORTRAN library calls
The FORTRAN program that generates this plot is called basic08f.f.
Creating the plot using NCL
The NCL script that generates this plot is called basic08n.ncl.
The data
No external data are used for this plot.
How to run this example
The examples are installed in the following locations:
- $NCARG_ROOT/lib/ncarg/hluex/basic/basic08c.c
- $NCARG_ROOT/lib/ncarg/hluex/basic/basic08f.f
- $NCARG_ROOT/lib/ncarg/nclex/basic/basic08n.ncl