Hi
I've tried several methods to save directly a figure from Matplotlib into a hdf5 file, but Hdfview cannot open the file ("error opening file"): does somebody know the good way?
The last trial I did where "fig" is the object coming from Matplotlib:
I've tried several methods to save directly a figure from Matplotlib into a hdf5 file, but Hdfview cannot open the file ("error opening file"): does somebody know the good way?
The last trial I did where "fig" is the object coming from Matplotlib:
FigArray = np.array(canvas.renderer.buffer_rgba(), dtype=np.uint8) h5 = h5py.File('picture.h5', 'w') ImageGroup = h5.require_group('Pictures') ImageDataset = ImageGroup .create_dataset(name='picture', data=FigArray)Thanks for your help