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:

You can copy this example and run it by typing "ng4ex basic08f", "ng4ex basic08c", or "ng4ex basic08n". A copy of the source file will be placed in your current working directory, compiled, and automatically run for you.


Quick Start Guide Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, QSG Contents, QSG WhereAmI?


$Revision: 1.6 $ $Date: 1999/03/23 18:28:12 $