even for a newtonian fluid, the viscosity usually depends on its composition and temperature. for gases and other compressible fluids, it depends on temperature and varies very slowly with pressure. the viscosity of some fluids may depend on other factors. a magnetorheological fluid, for example, becomes thicker when subjected to a magnetic field, possibly to the point of behaving like a solid.