MLX file dual Y-axis plot interaction warning
12 views (last 30 days)
Show older comments
When I use the code above in mlx file in MATLAB2025b, when I open the figure, I receive the warning
figure;
hold on;
yyaxis left
L3 = plot(Test_data_PCCommand_2.('Time (rel)'),Test_data_PCCommand_2.Var10,'-','LineWidth',2,'Color','blue');
L4 = plot(Test_data_PCCommand_2.('Time (rel)'),Test_data_PCCommand_2.Var12,'--','LineWidth',2,'Color','blue');
L5 = plot(Test_data_PCCommand_2.('Time (rel)'),Test_data_PCCommand_2.Var14,'-','LineWidth',2,'Color','green');
L6 = plot(Test_data_PCCommand_2.('Time (rel)'),Test_data_PCCommand_2.Var16,'--','LineWidth',2,'Color','green');
yyaxis right
L2 = plot(Test_data_PCCommand_2.('Time (rel)'),Test_data_PCCommand_2.Var8,'-','LineWidth',2);
L7 = plot(Test_data_PCCommand_2.('Time (rel)'),Test_data_PCCommand_2.Var18,'--','LineWidth',2);
set(gca,'FontSize',11);
ylabel('转矩加载速率/P/I','fontsize',12,'FontName','宋体');
xlabel('时间','fontsize',12,'FontName','宋体');
legend([L2 L3 L4 L5 L6 L7],{'转矩加载速率','外环P','外环I','内环P×10','内环I×10', '燃油增量限制'},'fontsize',12,'location','northwest','FontName','宋体');
grid on;
box on;

警告: 旧探索模式不支持 InteractionOptions。
> 位置:matlab.graphics.interaction.interactionoptions/CartesianAxesInteractionOptions/warnIfUnsupportedFigure
位置: matlab.graphics.interaction.interactionoptions/CartesianAxesInteractionOptions/updateInteractionOptionsAfterSet
位置: matlab.graphics.interaction.graphicscontrol.AxesControl.updateInteractionOptions
警告: 旧探索模式不支持 InteractionOptions。
> 位置:matlab.graphics.interaction.interactionoptions/CartesianAxesInteractionOptions/warnIfUnsupportedFigure
位置: matlab.graphics.interaction.interactionoptions/CartesianAxesInteractionOptions/updateInteractionOptionsAfterSet
位置: matlab.graphics.interaction.interactioncontainers/BaseAxesInteractionContainer/setupInteractions
位置: matlab.graphics.interaction.internal.UnifiedAxesInteractions.createDefaultInteractionsOnAxes
位置: matlab.graphics.interaction.internal.UnifiedAxesInteractions.createDefaultInteractionsInSync
位置: matlab.graphics.interaction.internal.UnifiedAxesInteractions.createDefaultInteractions>@()matlab.graphics.interaction.internal.UnifiedAxesInteractions.createDefaultInteractionsInSync(ax,is2dim,numDataSpaces)
0 Comments
Answers (0)
See Also
Categories
Find more on 迁移使用 GUIDE 创建的 App in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!