Circuit judges and chancellors have power to issue writs of mandamus, upon petition or bill, supported by affidavit.