diff options
author | Witold Baryluk <witold.baryluk+github@gmail.com> | 2020-10-05 12:11:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 12:11:17 +0000 |
commit | ea199c3469ed2326486f0214cb22b1bfef532a90 (patch) | |
tree | 42e26bd96867d0b68e5aa60e6a6f80da5c445d8c /src/database/kernels/xgemm/xgemm_6464.hpp | |
parent | 3462d7fa855577064ccdee6e4527ce8a52645d5c (diff) |
Allow single graph / subplot on plot
`plt.subplots` tries to be special, and return array or not-array depending on a number of subplots.
It is not actually helpful, and IMHO bad design.
Make it always `ndarray`.
The `and not type(axes) is np.ndarray`, is just in case matplotlib decides to make their behavior more uniform. For now work around it.
Also, no need for `ndarray.flat` really.
Confirmed to work with existing benchmarks (i.e. rows=2, cols=3), and with single graphs (rows=1, cols=1).
Diffstat (limited to 'src/database/kernels/xgemm/xgemm_6464.hpp')
0 files changed, 0 insertions, 0 deletions