<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#
# Basic graphics exercise 3.
#
import numpy, Ngl                       # Import needed modules

x = numpy.array(range(0,101))
y = numpy.sin(0.0628*x)                 # Generate a curve with 101 points.

wks = Ngl.open_wks("ps","basic_ex03")   # Open a PS file.

res = Ngl.Resources()
res.nglMaximize = False               # Don't maximize plot in frame.
plot = Ngl.y(wks,y,res)               # Call the function for drawing the
                                      # curve.
Ngl.end()

</pre></body></html>