From ed5e7813050dba444bf4323a89444b03df050166 Mon Sep 17 00:00:00 2001 From: Stefan Hahmann Date: Mon, 11 Nov 2024 17:53:48 +0100 Subject: [PATCH] Initialize the grapher windows with full graph context and non-connected mode * Reasoning: It is difficult to judge, what is the most often used combination of settings and thus, which should be the default settings for the grapher. For the case of analysing single tracks the item source "track of selection" makes most sense. Also in this case drawing the edges in the grapher between these points makes sense. In other cases, such when inspecting large selections or even the dataset as a whole, showing the edges does not really help and leads to a very confusing plot. For the case of inspecting the full dataset without any selection the setting "track of selection", leads to an empty plot, when the grapher is first show. Thus, with this commit, the defaults are changed to full graph context and non-connected. --- .../mastodon/mamut/views/grapher/MamutBranchViewGrapher.java | 2 +- .../java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/mastodon/mamut/views/grapher/MamutBranchViewGrapher.java b/src/main/java/org/mastodon/mamut/views/grapher/MamutBranchViewGrapher.java index b8242e63f..5fe609106 100644 --- a/src/main/java/org/mastodon/mamut/views/grapher/MamutBranchViewGrapher.java +++ b/src/main/java/org/mastodon/mamut/views/grapher/MamutBranchViewGrapher.java @@ -109,7 +109,7 @@ static FeatureGraphConfig getFeatureGraphConfig() new FeatureSpecPair( BranchDisplacementDurationFeature.SPEC, displacementSpec, false, false ); final FeatureSpecPair featureSpecY = new FeatureSpecPair( BranchDisplacementDurationFeature.SPEC, durationSpec, false, false ); - return new FeatureGraphConfig( featureSpecX, featureSpecY, GraphDataItemsSource.TRACK_OF_SELECTION, true ); + return new FeatureGraphConfig( featureSpecX, featureSpecY, GraphDataItemsSource.CONTEXT, false ); } @SuppressWarnings( "unchecked" ) diff --git a/src/main/java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java b/src/main/java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java index a33cbb8b8..2b53e9149 100644 --- a/src/main/java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java +++ b/src/main/java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java @@ -116,7 +116,7 @@ static FeatureGraphConfig getFeatureGraphConfig() SpotFrameFeature.SPEC.getProjectionSpecs().iterator().next(), false, false ); final FeatureSpecPair spvy = new FeatureSpecPair( SpotQuickMeanIntensityFeature.SPEC, SpotQuickMeanIntensityFeature.PROJECTION_SPEC, 0, false, false ); - return new FeatureGraphConfig( spvx, spvy, FeatureGraphConfig.GraphDataItemsSource.TRACK_OF_SELECTION, true ); + return new FeatureGraphConfig( spvx, spvy, FeatureGraphConfig.GraphDataItemsSource.CONTEXT, false ); } @SuppressWarnings( "unchecked" )