Reference > Style examples > Top X-Axis

Top X-Axis

The X-axis is drawn at the top.


sp.Heading = "Top X-Axis with Inverted Y-Axis";
sp.XAxisStyle = XAxisStyles.ArrowedAxis|XAxisStyles.AtEndCaption|XAxisStyles.TopAxis;
sp.YAxisStyle = YAxisStyles.ArrowedAxis|YAxisStyles.InvertAxis|YAxisStyles.AtEndCaption;
sp.YCaption = "Depth (m)";
sp.XCaption = "Distance from Shore (m)";

This style would generally be used with YAxisStyle set to InvertAxis – typically to plot depth below ground or sample age. Pollen diagrams are typical.


Send comments on this topic
© Dyalog Ltd 2013