Files
pandoc/test/ipynb/rank.ipynb
Kolen Cheung a9a9a2c62a fix(IpynbOutput)!: rank always favors output format
Previously, both `fmt == f` case and Image have a rank of 1.
In the end, e.g. from ipynb to html conversion,
if both html and image exists, it actually prefers the image.
This commit changes this, so that fmt == f is always highest rank,
and rank never collides.
This is achieved by keeping fmt == f case having rank 1,
and every other rank increased by 1.
2021-12-11 09:42:30 -08:00

1.5 KiB

In [1]:
import matplotlib.pyplot as plt
In [2]:
fig, ax = plt.subplots(figsize=(1, 1), dpi=4)
ax.imshow([[0, 1], [2, 3]]);