
NCL > Application examples > Basic examples
XyPlot example 12
How to incorporate the HLU library with your own X interface
This example is created using HLU C library calls. It demonstrates how to combine calls to the HLU C library with an X interface. The name of the source file for this example is xy12c.c.
Discussion
This module discusses how to create this plot using HLU C function calls. A resource file is not used with this example.A detailed discussion of how this example works appears in its source code.
Creating the plot using HLUs
The HLU C program that generates this plot is called xy12c.c.
Creating the plot using HLU FORTRAN library calls
The HLU FORTRAN program to generate this plot is not available since this example calls routines in the X library.
Creating the plot using NCL
The NCL script to generate this plot is not available since this example calls routines in the X library.
The data
The data for this plot is read from an ASCII file called xy12c.asc. This data is located in $NCARG_ROOT/lib/ncarg/data/asc/xy12c.asc.
How to run this example
This example can be produced using a C program (xy12c.c). The example is installed in the following location:
- $NCARG_ROOT/lib/ncarg/hluex/xyplot/xy12c.c