Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Flatland
Flatland
Commits
7a28eb7d
Commit
7a28eb7d
authored
Jul 02, 2019
by
spmohanty
Browse files
Remove redundant debug messages
parent
855f7d27
Pipeline
#1284
passed with stage
in 7 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flatland/utils/graphics_pil.py
View file @
7a28eb7d
...
...
@@ -106,7 +106,6 @@ class PILGL(GraphicsLayer):
return
self
.
ltAgentColors
[
iAgent
%
self
.
nAgentColors
]
def
plot
(
self
,
gX
,
gY
,
color
=
None
,
linewidth
=
3
,
layer
=
0
,
opacity
=
255
,
**
kwargs
):
print
(
"Plotting "
,
gX
,
gY
)
color
=
self
.
adaptColor
(
color
)
if
len
(
color
)
==
3
:
color
+=
(
opacity
,)
...
...
@@ -114,7 +113,6 @@ class PILGL(GraphicsLayer):
color
=
color
[:
3
]
+
(
opacity
,)
gPoints
=
np
.
stack
([
array
(
gX
),
-
array
(
gY
)]).
T
*
self
.
nPixCell
gPoints
=
list
(
gPoints
.
ravel
())
print
(
self
.
draws
)
self
.
draws
[
layer
].
line
(
gPoints
,
fill
=
color
,
width
=
self
.
linewidth
)
def
scatter
(
self
,
gX
,
gY
,
color
=
None
,
marker
=
"o"
,
s
=
50
,
layer
=
0
,
opacity
=
255
,
*
args
,
**
kwargs
):
...
...
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