Skip to content

Commit

Permalink
fix: wrong logical order in IMAP field visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
mfacchinelli committed Jan 10, 2025
1 parent e7e69c6 commit e130f4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/mission/imap/+mag/+imap/+view/Field.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ function visualize(this)
this.Figures = this.Factory.assemble( ...
scienceData{:}, ...
eventData{:}, ...
pwrHK, [mag.graphics.style.Default(Title = compose("%s & ICU Temperatures", primarySensor), YLabel = this.TLabel, Legend = [primarySensor, "ICU"], Charts = mag.graphics.chart.Plot(YVariables = [primarySensor, "ICU"] + "Temperature")), ...
mag.graphics.style.Default(Title = compose("%s & ICU Temperatures", secondarySensor), YLabel = this.TLabel, YAxisLocation = "right", Legend = [secondarySensor, "ICU"], Charts = mag.graphics.chart.Plot(YVariables = [secondarySensor, "ICU"] + "Temperature"))], ...
Title = this.getFigureTitle(primary, secondary), ...
Name = this.getFigureName(primary, secondary), ...
Arrangement = [3 + numEvents, numScience], ...
Arrangement = [4 + numEvents, numScience], ...
LinkXAxes = true, ...
WindowState = "maximized");
else

this.Figures = this.Factory.assemble( ...
scienceData{:}, ...
eventData{:}, ...
pwrHK, [mag.graphics.style.Default(Title = compose("%s & ICU Temperatures", primarySensor), YLabel = this.TLabel, Legend = [primarySensor, "ICU"], Charts = mag.graphics.chart.Plot(YVariables = [primarySensor, "ICU"] + "Temperature")), ...
mag.graphics.style.Default(Title = compose("%s & ICU Temperatures", secondarySensor), YLabel = this.TLabel, YAxisLocation = "right", Legend = [secondarySensor, "ICU"], Charts = mag.graphics.chart.Plot(YVariables = [secondarySensor, "ICU"] + "Temperature"))], ...
Title = this.getFigureTitle(primary, secondary), ...
Name = this.getFigureName(primary, secondary), ...
Arrangement = [4 + numEvents, numScience], ...
Arrangement = [3 + numEvents, numScience], ...
LinkXAxes = true, ...
WindowState = "maximized");
end
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/visualize/view/tField.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function events_autoCompression(testCase)
expectedInputs{4} = mag.graphics.style.Stackedplot(Title = options.SecondaryTitle, YLabels = ["x [nT]", "y [nT]", "z [nT]", "|B| [nT]"], YAxisLocation = "right", Layout = [3, 1], ...
Charts = mag.graphics.chart.Stackedplot(YVariables = ["X", "Y", "Z", "B"], Filter = instrument.Science(1).Quality.isPlottable()));

if instrument.HasHK
if instrument.HasHK && any(instrument.HK.isPlottable())

expectedInputs{5} = instrument.HK(1);
expectedInputs{6} = [ ...
Expand Down

0 comments on commit e130f4c

Please sign in to comment.