plot ignored the extension of `path` and wrote PDF unless a device said otherwise.
Without a device, png/svg/pdf is now taken from the extension (any case), like export;
a device that writes another format is refused, and the reply carries `format`.
Tests plot_format.rs check magic bytes, the mismatch error and the reply format.