Transition from R2024b to R2025a breaks custom plotting script
38 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone,
After upgrading from MATLAB R2024b to R2025a, I’ve encountered an issue with a diagnostic plotting script used to visualize telemetry data. The script is part of a custom encoder class and is designed to overlay three types of error events—CRC, C2L, and Invalid Data—on top of raw data.
While the error count is still computed and displayed correctly, the error markers are no longer plotted on the graph (a blank figure shows up).
Here’s the relevant portion of the code:
function plotDiagnosticOnRawData(obj, experiment)
obj.timestamps = experiment.GetTimestamps();
rawData = experiment.GetRawData();
plot(obj.timestamps, rawData(1, :))
hold on
plot(obj.timestamps, obj.crc__.*rawData(1, :), 'r*')
plot(obj.timestamps, obj.c2l__.*rawData(1, :), 'g*')
plot(obj.timestamps, obj.invalid_data__.*rawData(1, :), 'b*')
hold off
title('Encoder raw data (Joint position)');
subtitle(['Joint position, (joint speed: ', '20.0', ' $[\frac{deg}{sec}$])'], 'Interpreter', 'latex');
axis([-inf, inf, -2^15, 2.01^19]);
xlabel('Time (seconds)');
lgd = legend('Joint position', 'CRC error', 'C2L error', 'Invalid Data error');
lgd.FontSize = 5; lgd.Location = 'north'; lgd.Orientation = 'horizontal';
end
Occasionally, I also receive the following warnings:
Warning: An error occurred while drawing the scene: Could not find node in peer tree during reparentChildren
Warning: An error occurred while drawing the scene: Could not find node in peer tree during replaceChild
I already have check the matlab forum and changed the renderer setting using
opengl software
But the issue persists.
Any suggestions or workarounds would be greatly appreciated!
Thanks in advance,
Antonio
4 件のコメント
Andrew
約6時間 前
I have the same issue when I switched to Matlab 2025a. I found that when I stepped through the code, waiting for the figure to update after each line, it was able to plot everything. When I ran the code without any breaks, I got the same warning and it didn't finish plotting.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!