Portraits of scientific figures such as Isaac Newton and John Harrison reveal their shifting cultural status