Industrial Data Science
in C# and .NET:
Simple. Fast. Reliable.
 
 

ILNumerics - Technical Computing

Modern High Performance Tools for Technical

Computing and Visualization in Industry and Science

Reversed Y Axis Line Plots, Custom Tick Label Styles


In order to reverse an axis for 2D plots one can simply rotate the plot cube accordingly. Here, in order to rotate the Y axis of a line plot, the plot cube is rotated by 180° around the X axis. The mouse double click event is overwritten in order to prevent the user from resetting the scene to the default view (upwards aiming Y axis).

Care must be taken to not only rotate the plot cube but also to translate it. The reason is that the origin of the plot cube lays at (0,0,0) - which is not centered for the plot cube. Rotating would therefore rotate the labels outside the default min / max range for the viewing frustum.

Last modified: August 25 2021 18:29

Download ZIP

TOP

All Examples

cm
1
n
 
 
We and our partners use technology such as cookies or pixels on our site to personalize content and ads, provide social media features, and analyze our traffic across devices and platforms. Tracking activities can be controlled or disabled. By continueing using our website you agree on the placement of related cookies and the use of data delivered by your browser for such purposes. Read more in our data privacy statement.
Got it!