ENH: preliminary pubfig code