Skip to content

Commit

Permalink
Add display_box argument to Plato
Browse files Browse the repository at this point in the history
  • Loading branch information
klarh committed Jun 24, 2020
1 parent d0349c4 commit c13c406
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flowws_analysis/Plato.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class Plato(flowws.Stage):
help='Factor to scale color RGB intensities by'),
Arg('draw_scale', '-s', float, 1,
help='Scale to multiply particle size by'),
Arg('display_box', '-b', bool, True,
help='Display the system box'),
Arg('additive_rendering', None, bool, False,
help='Use additive rendering for shapes'),
Arg('fast_antialiasing', None, bool, False,
Expand Down Expand Up @@ -153,7 +155,7 @@ def run(self, scope, storage):

primitives.append(prim)

if 'box' in scope:
if 'box' in scope and self.arguments['display_box']:
prim = draw.Box.from_box(scope['box'])
prim.width = min(scope['box'][:dimensions])*5e-3
prim.color = (0, 0, 0, 1)
Expand Down

0 comments on commit c13c406

Please sign in to comment.