Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
total_control_app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Drechsler
total_control_app
Commits
a0440a7b
Commit
a0440a7b
authored
May 22, 2019
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
very small change
parent
69c03a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pyqtgraph_subclasses.py
subclasses/pyqtgraph_subclasses.py
+4
-1
No files found.
subclasses/pyqtgraph_subclasses.py
View file @
a0440a7b
...
@@ -24,7 +24,7 @@ class CustomRectangularROI(ROI):
...
@@ -24,7 +24,7 @@ class CustomRectangularROI(ROI):
============== =============================================================
============== =============================================================
"""
"""
def
__init__
(
self
,
pos
,
size
=
[
8
,
8
],
centered
=
False
,
sideScalers
=
Fals
e
):
def
__init__
(
self
,
pos
,
size
=
[
8
,
8
],
centered
=
True
,
sideScalers
=
Tru
e
):
#ROI.__init__(self, pos, size, **args)
#ROI.__init__(self, pos, size, **args)
super
()
.
__init__
(
pos
,
size
,
centered
,
sideScalers
)
super
()
.
__init__
(
pos
,
size
,
centered
,
sideScalers
)
...
@@ -43,6 +43,9 @@ class CustomRectangularROI(ROI):
...
@@ -43,6 +43,9 @@ class CustomRectangularROI(ROI):
self
.
current_binning
=
''
self
.
current_binning
=
''
def
correct_scaling
(
self
):
def
correct_scaling
(
self
):
"""
Not implementd for now
"""
x
,
y
=
self
.
pos
()[
0
],
self
.
pos
()[
1
]
x
,
y
=
self
.
pos
()[
0
],
self
.
pos
()[
1
]
if
x
%
8
!=
0
or
y
%
8
!=
0
:
if
x
%
8
!=
0
or
y
%
8
!=
0
:
self
.
setPos
((
x
//
8
)
*
8
,
(
y
//
8
)
*
8
)
self
.
setPos
((
x
//
8
)
*
8
,
(
y
//
8
)
*
8
)
...
...
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