Single Plot with Two Y-Axes

1 次查看(过去 30 天)
Mike
Mike 2014-10-20
Hello everyone.
My Objective: To plot a single graph of a dataset that contains values of Index (x) vs. Frequency (y) values, where Index is a vector and Frequency is a matrix containing different curves. That part has been accomplished. However, I would now like to add the corresponding Wavelength values on the right hand side of the plot. That is where I am having difficulties.
Attempted Solutions I attempted to use plotyy to possibly plot another graph of Index vs. Wavelength and then hiding the plot by coloring it white. However, I was not able to acquire the desired result since the scales of Wavelength did not depict corresponding Frequency values.
If, perhaps, there is another possible way of depicting Wavelength values with their corresponding Frequency values, I would be happy to implement that instead of labeling the y-axis on the right.
Thank you.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Two y-axis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by