NCL Home> Application examples> generic graphical interfaces || Data files for some examples

Example pages containing: tips | resources | functions/procedures

Streamlines (high-level generic plot interface)

Stream Type Plot Templates

gsn_streamline
gsn_streamline_scalar
gsn_streamline_scalar_map

These functions create very generic streamline plots.

We recommend that you use the more customized functions:

gsn_csm_streamline
gsn_csm_streamline_map
gsn_csm_streamline_scalar_map

for creating streamline plots.

See the "streamlines" examples page for more customized streamline plots.

gsn_stream_1.ncl: Default plot

gsn_streamline is the generic plot interface that creates streamline plots.

gsn_stream_2.ncl: Changes the color of the streamlines and tweaks the arrow sizes.

stLineThicknessF = 1.5, Changes the line thickness

stLineColor = "orange",changes the streamline color

stArrowLengthF = 0.015, Changes the size of the arrows.

gsn_stream_3.ncl: Example of a streamline plot colored by a given scalar field, using gsn_streamline_scalar.
gsn_stream_4.ncl: Example of a streamline plot colored by a given scalar field and overlaid on a map.

gsn_streamline_scalar_map is the function used.