Get size in pixels for all dimensions
(shape, size=200)
| 272 | |
| 273 | |
| 274 | def draw_sizes(shape, size=200): |
| 275 | """Get size in pixels for all dimensions""" |
| 276 | mx = max(shape) |
| 277 | ratios = [mx / max(0.1, d) for d in shape] |
| 278 | ratios = [ratio_response(r) for r in ratios] |
| 279 | return tuple(size / r for r in ratios) |
| 280 | |
| 281 | |
| 282 | def ratio_response(x): |
searching dependent graphs…