Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YeaZ-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
chadhat
YeaZ-GUI
Commits
3963beab
Commit
3963beab
authored
4 years ago
by
mattminder
Browse files
Options
Downloads
Patches
Plain Diff
Removed bug when not showing numbers
parent
c4798863
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
init/InitButtons.py
+1
-3
1 addition, 3 deletions
init/InitButtons.py
misc/PlotCanvas.py
+14
-1
14 additions, 1 deletion
misc/PlotCanvas.py
with
15 additions
and
4 deletions
init/InitButtons.py
+
1
−
3
View file @
3963beab
...
@@ -211,9 +211,7 @@ def Init(parent):
...
@@ -211,9 +211,7 @@ def Init(parent):
parent
.
button_extractfluorescence
.
setStatusTip
(
'
Extract the total intensity, area and variance of the cells in the different channels
'
)
parent
.
button_extractfluorescence
.
setStatusTip
(
'
Extract the total intensity, area and variance of the cells in the different channels
'
)
# SHOW THE VALUES OF THE CELLS
# SHOW THE VALUES OF THE CELLS
parent
.
button_showval
.
stateChanged
.
connect
(
parent
.
m
.
ShowCellNumbersCurr
)
parent
.
button_showval
.
stateChanged
.
connect
(
parent
.
m
.
UpdatePlots
)
parent
.
button_showval
.
stateChanged
.
connect
(
parent
.
m
.
ShowCellNumbersPrev
)
parent
.
button_showval
.
stateChanged
.
connect
(
parent
.
m
.
ShowCellNumbersNext
)
parent
.
button_showval
.
setShortcut
(
'
V
'
)
parent
.
button_showval
.
setShortcut
(
'
V
'
)
parent
.
button_showval
.
setToolTip
(
"
Use V Key for shortcut
"
)
parent
.
button_showval
.
setToolTip
(
"
Use V Key for shortcut
"
)
...
...
This diff is collapsed.
Click to expand it.
misc/PlotCanvas.py
+
14
−
1
View file @
3963beab
...
@@ -324,7 +324,6 @@ class PlotCanvas(FigureCanvas):
...
@@ -324,7 +324,6 @@ class PlotCanvas(FigureCanvas):
# Plot cell numbers
# Plot cell numbers
self
.
ShowCellNumbers
()
self
.
ShowCellNumbers
()
self
.
update
()
self
.
update
()
self
.
flush_events
()
self
.
flush_events
()
...
@@ -379,6 +378,8 @@ class PlotCanvas(FigureCanvas):
...
@@ -379,6 +378,8 @@ class PlotCanvas(FigureCanvas):
self
.
ShowCellNumbersCurr
()
self
.
ShowCellNumbersCurr
()
self
.
ShowCellNumbersNext
()
self
.
ShowCellNumbersNext
()
self
.
ShowCellNumbersPrev
()
self
.
ShowCellNumbersPrev
()
else
:
self
.
clearAnnLists
()
def
ShowCellNumbersCurr
(
self
):
def
ShowCellNumbersCurr
(
self
):
...
@@ -447,6 +448,18 @@ class PlotCanvas(FigureCanvas):
...
@@ -447,6 +448,18 @@ class PlotCanvas(FigureCanvas):
self
.
draw
()
self
.
draw
()
def
clearAnnLists
(
self
):
for
ann
in
self
.
ann_list
:
ann
.
remove
()
self
.
ann_list
=
[]
for
ann
in
self
.
ann_list_prev
:
ann
.
remove
()
self
.
ann_list_prev
=
[]
for
ann
in
self
.
ann_list_next
:
ann
.
remove
()
self
.
ann_list_next
=
[]
def
updateplot
(
self
,
posx
,
posy
):
def
updateplot
(
self
,
posx
,
posy
):
"""
"""
it updates the plot once the user clicks on the plot and draws a 4x4 pixel dot
it updates the plot once the user clicks on the plot and draws a 4x4 pixel dot
...
...
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