Is it possible to have a double y axis in a stackedplot?

4 ビュー (過去 30 日間)
Matthew Robinson
Matthew Robinson 2021 年 8 月 2 日
回答済み: Salman Ahmed 2021 年 8 月 6 日
As shown in the image, I am using stackedplot to display some data from a timetable. Each stacked plot shows multiple measurements, with two different units, for a particular sample. I would like to achieve the effect of yyaxis, so my plots look as they do now but with two y scales per plot, to see the data better.
Sample code for how I'm displaying at the moment:
figure1 = figure(1);
displayLabels = {'a1,b1','a2,b2'};
plot1 = stackedplot(timetable_full,{{'a1','b1'},{'a2','b2'}},'DisplayLabels',displayLabels);
I could do something similar with subplots, but I am trying to display everything in the most compact way as I will ideally be looking at 4-8 of these stacked, rather than 2, to easily compare my samples. Plus, stackedplot seems a bit neater than subplots so it would be nice if it were possible.
Thanks!

回答 (1 件)

Salman Ahmed
Salman Ahmed 2021 年 8 月 6 日
I have heard that this issue is known and the concerned parties may be investigating further.

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by