Transition from R2024b to R2025a breaks custom plotting script
31 views (last 30 days)
Show older comments
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
3 Comments
Answers (0)
See Also
Categories
Find more on Graphics Performance 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!