Skip to content

Commit

Permalink
plots/MRATimeSeriesPlot: Chart title construction now supports Timeli…
Browse files Browse the repository at this point in the history
…ne plots.
  • Loading branch information
miguel-paz committed Dec 16, 2024
1 parent add00f7 commit 5f12ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/java/pt/lsts/neptus/mra/plots/MRATimeSeriesPlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public String parseChartTitle(StringBuilder sb) {

String chartType = chartTitle.substring(chartTitle.indexOf("] ") + 1);

if (chartType.contains("Messages") || chartType.contains("Compare")){
if (chartType.contains("Messages") || chartType.contains("Compare") || chartType.contains("Timeline")){
Map<String, List<String>> seriesMap = new HashMap<String, List<String>>();

String seriesStr = chartTitle;
Expand Down
2 changes: 1 addition & 1 deletion src/java/pt/lsts/neptus/mra/plots/ReplayPlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public Component getComponent(IMraLogGroup source, double timestep) {
public String getName() {
StringBuilder sb = new StringBuilder(Arrays.toString(fieldsToPlot));
sb.append(" Timeline");
return sb.toString();
return parseChartTitle(sb);
}

@Override
Expand Down

0 comments on commit 5f12ddb

Please sign in to comment.