Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
bliss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
489
Issues
489
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
129
Merge Requests
129
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bliss
bliss
Commits
8b760a53
Commit
8b760a53
authored
Feb 05, 2020
by
Valentin Valls
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display gaussian info in the tooltip
parent
abd39d24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
bliss/flint/widgets/plot_helper.py
bliss/flint/widgets/plot_helper.py
+10
-0
No files found.
bliss/flint/widgets/plot_helper.py
View file @
8b760a53
...
...
@@ -34,6 +34,7 @@ from silx.gui.plot.items.image import ImageData
from
bliss.flint.model
import
plot_model
from
bliss.flint.model
import
plot_item_model
from
bliss.flint.model
import
plot_state_model
from
bliss.flint.model
import
scan_model
from
bliss.flint.utils
import
signalutils
...
...
@@ -403,6 +404,15 @@ class FlintCurve(Curve, _FlintItemMixIn):
<li style="white-space:pre">
{
char
}
<b>
{
yName
}
:</b>
{
yValue
}
(index
{
index
}
)</li>
<li style="white-space:pre"> <b>
{
xName
}
:</b>
{
xValue
}
</li>
"""
if
isinstance
(
plotItem
,
plot_state_model
.
GaussianFitItem
):
result
=
plotItem
.
reachResult
(
scan
)
if
result
is
not
None
:
text
+=
f"""
<li style="white-space:pre"> <b>std dev:</b>
{
result
.
fit
.
std
}
</li>
<li style="white-space:pre"> <b>sigma:</b>
{
result
.
fit
.
pos_x
}
</li>
"""
return
xValue
,
yValue
,
text
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment