Axis Reversal

Question

Why doesn't the plot method x|yrev keyword work to reverse the axis?

Answer

This is a bug in CDAT versions prior to 4.0. The easiest way to get around it is to reverse your data and your axis array. You get an incorrect axis in the first place because CDAT plots on the basis of the order of the data, regardless of whether the axis is ascending or descending in value.


Notes: Thanks to Dean Williams and Charles Doutriaux for the help! This discussion applies to CDAT 3.3.

Return to the Tips and Examples index page.

Updated: November 10, 2003 by Johnny Lin <email address>. License.