Skip to content
Snippets Groups Projects
updateAvailablePlots.m 598 B
Newer Older
function [] = updateAvailablePlots()
%UPDATEAVAILABLEPLOTS Replots all opened edit plots.

global artoaGui;

plotsToUpdate = {'editTemperature', 'editPressure', 'editTimeOfArrival', 'satfixEtaToToa', 'trajectoryOutput'};
controllerPackageNames = {'temperature', 'pressure', 'timeOfArrival', 'satfixEtaToToa', 'trajectoryOutput'};
controllerCategoryNames = {'edit', 'edit', 'edit', 'show', 'track'};

for i = 1:length(plotsToUpdate)
    if ~isfield(artoaGui, plotsToUpdate{i})
        continue;
    end
    artoa.controller.(controllerCategoryNames{i}).(controllerPackageNames{i}).plot();