Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
fslpy
Commits
74ec7bab
Commit
74ec7bab
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TimeSeries control panel has tooltips
parent
86ce96d2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/fsleyes/controls/timeseriescontrolpanel.py
+24
-7
24 additions, 7 deletions
fsl/fsleyes/controls/timeseriescontrolpanel.py
fsl/fsleyes/tooltips.py
+4
-4
4 additions, 4 deletions
fsl/fsleyes/tooltips.py
with
28 additions
and
11 deletions
fsl/fsleyes/controls/timeseriescontrolpanel.py
+
24
−
7
View file @
74ec7bab
...
@@ -7,11 +7,12 @@
...
@@ -7,11 +7,12 @@
import
wx
import
wx
import
props
import
props
import
pwidgets.widgetlist
as
widgetlist
import
pwidgets.widgetlist
as
widgetlist
import
fsl.fsleyes.panel
as
fslpanel
import
fsl.fsleyes.panel
as
fslpanel
import
fsl.data.strings
as
strings
import
fsl.fsleyes.tooltips
as
fsltooltips
import
fsl.data.strings
as
strings
class
TimeSeriesControlPanel
(
fslpanel
.
FSLEyesPanel
):
class
TimeSeriesControlPanel
(
fslpanel
.
FSLEyesPanel
):
...
@@ -47,6 +48,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...
@@ -47,6 +48,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
props
.
makeWidget
(
self
.
__widgets
,
tsPanel
,
prop
),
props
.
makeWidget
(
self
.
__widgets
,
tsPanel
,
prop
),
displayName
=
strings
.
properties
[
tsPanel
,
prop
],
displayName
=
strings
.
properties
[
tsPanel
,
prop
],
tooltip
=
fsltooltips
.
properties
[
tsPanel
,
prop
],
groupName
=
'
tsSettings
'
)
groupName
=
'
tsSettings
'
)
self
.
__widgets
.
AddGroup
(
self
.
__widgets
.
AddGroup
(
...
@@ -57,6 +59,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...
@@ -57,6 +59,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
props
.
makeWidget
(
self
.
__widgets
,
tsPanel
,
prop
),
props
.
makeWidget
(
self
.
__widgets
,
tsPanel
,
prop
),
displayName
=
strings
.
properties
[
tsPanel
,
prop
],
displayName
=
strings
.
properties
[
tsPanel
,
prop
],
tooltip
=
fsltooltips
.
properties
[
tsPanel
,
prop
],
groupName
=
'
plotSettings
'
)
groupName
=
'
plotSettings
'
)
xlabel
=
props
.
makeWidget
(
self
.
__widgets
,
tsPanel
,
'
xlabel
'
)
xlabel
=
props
.
makeWidget
(
self
.
__widgets
,
tsPanel
,
'
xlabel
'
)
...
@@ -82,15 +85,18 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...
@@ -82,15 +85,18 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
labels
,
labels
,
strings
.
labels
[
tsPanel
,
'
labels
'
],
displayName
=
strings
.
labels
[
tsPanel
,
'
labels
'
],
tooltip
=
fsltooltips
.
misc
[
tsPanel
,
'
labels
'
],
groupName
=
'
plotSettings
'
)
groupName
=
'
plotSettings
'
)
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
xlims
,
xlims
,
strings
.
labels
[
tsPanel
,
'
xlim
'
],
displayName
=
strings
.
labels
[
tsPanel
,
'
xlim
'
],
tooltip
=
fsltooltips
.
misc
[
tsPanel
,
'
xlim
'
],
groupName
=
'
plotSettings
'
)
groupName
=
'
plotSettings
'
)
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
ylims
,
ylims
,
strings
.
labels
[
tsPanel
,
'
ylim
'
],
displayName
=
strings
.
labels
[
tsPanel
,
'
ylim
'
],
tooltip
=
fsltooltips
.
misc
[
tsPanel
,
'
ylim
'
],
groupName
=
'
plotSettings
'
)
groupName
=
'
plotSettings
'
)
displayCtx
.
addListener
(
'
selectedOverlay
'
,
displayCtx
.
addListener
(
'
selectedOverlay
'
,
...
@@ -147,18 +153,22 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...
@@ -147,18 +153,22 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
colour
,
colour
,
displayName
=
strings
.
properties
[
tsPanel
,
'
currentColour
'
],
displayName
=
strings
.
properties
[
tsPanel
,
'
currentColour
'
],
tooltip
=
fsltooltips
.
properties
[
tsPanel
,
'
currentColour
'
],
groupName
=
'
currentSettings
'
)
groupName
=
'
currentSettings
'
)
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
alpha
,
alpha
,
displayName
=
strings
.
properties
[
tsPanel
,
'
currentAlpha
'
],
displayName
=
strings
.
properties
[
tsPanel
,
'
currentAlpha
'
],
tooltip
=
fsltooltips
.
properties
[
tsPanel
,
'
currentAlpha
'
],
groupName
=
'
currentSettings
'
)
groupName
=
'
currentSettings
'
)
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
lineWidth
,
lineWidth
,
displayName
=
strings
.
properties
[
tsPanel
,
'
currentLineWidth
'
],
displayName
=
strings
.
properties
[
tsPanel
,
'
currentLineWidth
'
],
tooltip
=
fsltooltips
.
properties
[
tsPanel
,
'
currentLineWidth
'
],
groupName
=
'
currentSettings
'
)
groupName
=
'
currentSettings
'
)
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
lineStyle
,
lineStyle
,
displayName
=
strings
.
properties
[
tsPanel
,
'
currentLineStyle
'
],
displayName
=
strings
.
properties
[
tsPanel
,
'
currentLineStyle
'
],
tooltip
=
fsltooltips
.
properties
[
tsPanel
,
'
currentLineStyle
'
],
groupName
=
'
currentSettings
'
)
groupName
=
'
currentSettings
'
)
...
@@ -216,20 +226,24 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...
@@ -216,20 +226,24 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
data
,
data
,
displayName
=
strings
.
properties
[
ts
,
'
plotData
'
],
displayName
=
strings
.
properties
[
ts
,
'
plotData
'
],
tooltip
=
fsltooltips
.
properties
[
ts
,
'
plotData
'
],
groupName
=
'
currentFEATSettings
'
)
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
full
,
full
,
displayName
=
strings
.
properties
[
ts
,
'
plotFullModelFit
'
],
displayName
=
strings
.
properties
[
ts
,
'
plotFullModelFit
'
],
tooltip
=
fsltooltips
.
properties
[
ts
,
'
plotFullModelFit
'
],
groupName
=
'
currentFEATSettings
'
)
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
res
,
res
,
displayName
=
strings
.
properties
[
ts
,
'
plotResiduals
'
],
displayName
=
strings
.
properties
[
ts
,
'
plotResiduals
'
],
tooltip
=
fsltooltips
.
properties
[
ts
,
'
plotResiduals
'
],
groupName
=
'
currentFEATSettings
'
)
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddWidget
(
self
.
__widgets
.
AddWidget
(
reduced
,
reduced
,
displayName
=
strings
.
properties
[
ts
,
'
plotReduced
'
],
displayName
=
strings
.
properties
[
ts
,
'
plotReduced
'
],
tooltip
=
fsltooltips
.
properties
[
ts
,
'
plotReduced
'
],
groupName
=
'
currentFEATSettings
'
)
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddSpace
(
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddSpace
(
groupName
=
'
currentFEATSettings
'
)
...
@@ -241,6 +255,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...
@@ -241,6 +255,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
ev
,
ev
,
displayName
=
strings
.
properties
[
ts
,
'
plotEVs
'
].
format
(
displayName
=
strings
.
properties
[
ts
,
'
plotEVs
'
].
format
(
i
+
1
,
evName
),
i
+
1
,
evName
),
tooltip
=
fsltooltips
.
properties
[
ts
,
'
plotEVs
'
],
groupName
=
'
currentFEATSettings
'
)
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddSpace
(
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddSpace
(
groupName
=
'
currentFEATSettings
'
)
...
@@ -251,6 +266,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...
@@ -251,6 +266,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
pe
,
pe
,
displayName
=
strings
.
properties
[
ts
,
'
plotPEFits
'
].
format
(
displayName
=
strings
.
properties
[
ts
,
'
plotPEFits
'
].
format
(
i
+
1
,
evName
),
i
+
1
,
evName
),
tooltip
=
fsltooltips
.
properties
[
ts
,
'
plotPEFits
'
],
groupName
=
'
currentFEATSettings
'
)
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddSpace
(
groupName
=
'
currentFEATSettings
'
)
self
.
__widgets
.
AddSpace
(
groupName
=
'
currentFEATSettings
'
)
...
@@ -261,4 +277,5 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...
@@ -261,4 +277,5 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
cope
,
cope
,
displayName
=
strings
.
properties
[
ts
,
'
plotCOPEFits
'
].
format
(
displayName
=
strings
.
properties
[
ts
,
'
plotCOPEFits
'
].
format
(
i
+
1
,
name
),
i
+
1
,
name
),
tooltip
=
fsltooltips
.
properties
[
ts
,
'
plotCOPEFits
'
],
groupName
=
'
currentFEATSettings
'
)
groupName
=
'
currentFEATSettings
'
)
This diff is collapsed.
Click to expand it.
fsl/fsleyes/tooltips.py
+
4
−
4
View file @
74ec7bab
...
@@ -285,7 +285,7 @@ properties = TypeDict({
...
@@ -285,7 +285,7 @@ properties = TypeDict({
'
time courses.
'
,
'
time courses.
'
,
'
FEATTimeSeries.plotPEFits
'
:
'
Plot the model fit to each PE
'
'
FEATTimeSeries.plotPEFits
'
:
'
Plot the model fit to each PE
'
'
(parameter estimate).
'
,
'
(parameter estimate).
'
,
'
FEATTimeSeries.plotCOPEFits
'
:
'
Plot the model fit to each COPE
'
'
FEATTimeSeries.plotCOPEFits
'
:
'
Plot the model fit to each COPE
'
'
(Contrast of Parameter Estimates).
'
,
'
(Contrast of Parameter Estimates).
'
,
'
FEATTimeSeries.plotReduced
'
:
'
Plot the raw data, after regression
'
'
FEATTimeSeries.plotReduced
'
:
'
Plot the raw data, after regression
'
'
against the selected PE/COPE.
'
,
'
against the selected PE/COPE.
'
,
...
@@ -372,7 +372,7 @@ actions = TypeDict({
...
@@ -372,7 +372,7 @@ actions = TypeDict({
misc
=
TypeDict
({
misc
=
TypeDict
({
'
Histogram
Panel.labels
'
:
'
X/Y axis labels.
'
,
'
Plot
Panel.labels
'
:
'
X/Y axis labels.
'
,
'
Histogram
Panel.xlim
'
:
'
X axis data limits.
'
,
'
Plot
Panel.xlim
'
:
'
X axis data limits.
'
,
'
Histogram
Panel.ylim
'
:
'
Y axis data limits.
'
'
Plot
Panel.ylim
'
:
'
Y axis data limits.
'
})
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment