Sergey S
11/14/2023, 8:12 PMkedro jupyter lab
, the image is generated but the image is corrupt / can not be displayed.
import matplotlib.pyplot as plt
from kedro.extras.datasets.matplotlib import MatplotlibWriter
fig = plt.figure()
plt.plot([1, 2, 3])
plot_writer = MatplotlibWriter(
filepath="data/08_reporting/output_plot.png"
)
plt.close()
plot_writer.save(fig)
The PDF example works though. Could it be that the docs are not updated? How would one save a plot with pure matplotlib plots (without seaborn) ?Juan Luis
11/15/2023, 12:29 PM$ file output_plot.png
after generating it? as well as du -h output_plot.png