Skip to content

Commit

Permalink
Picture autoscales inputs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Apr 26, 2018
1 parent 30b0683 commit 58c8fa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conx/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ def picture(self, inputs=None, dynamic=False, rotate=False, scale=None,
self.config["svg_scale"] = scale
if minmax:
self.layers[0].minmax = minmax
elif len(self.dataset) == 0:
self.layers[0].minmax = (minimum(inputs), maximum(inputs))
svg = self.to_svg(inputs=inputs, class_id=class_id, **kwargs)
self.config["svg_rotate"] = orig_rotate
self.config["show_errors"] = orig_show_errors
Expand Down

0 comments on commit 58c8fa6

Please sign in to comment.