Skip to content

Commit

Permalink
Merge pull request #10 from MuhammedHasan/patch-1
Browse files Browse the repository at this point in the history
Update plot.py to avoid warning messages
  • Loading branch information
Avsecz committed Jul 29, 2019
2 parents 7615717 + 2c70431 commit cf9ec50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concise/utils/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def standardize_polygons_str(data_str):
polygons_data.append(data)

# standardize the coordinates
min_coords = np.vstack(data.min(0) for data in polygons_data).min(0)
max_coords = np.vstack(data.max(0) for data in polygons_data).max(0)
min_coords = np.vstack([data.min(0) for data in polygons_data]).min(0)
max_coords = np.vstack([data.max(0) for data in polygons_data]).max(0)
for data in polygons_data:
data[:, ] -= min_coords
data[:, ] /= (max_coords - min_coords)
Expand Down

0 comments on commit cf9ec50

Please sign in to comment.