Reference > Style examples > Inverted Y-scale

Inverted Y-scale

The Y-scale is drawn down from 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 always be used with XAxisStyle set to TopAxis – typically to plot depth below ground or sample age. Pollen diagrams are typical.


Send comments on this topic
© Dyalog Ltd 2013