An example of an analogy in writing about science:
"First, observation by itself poses the problem of building theories and it tests them, but theories are not 'abstracted' or 'inferred' from observation reports – if only because these, the bits of evidence, may not refer to the same things as the theories do, just as a glance may suggest love without being love."
Mario Bunge
Bunge, M. (2017/1998). Philosophy of Science. Volume 1: From problem to theory (Revised ed.). Routledge.
Read examples of scientific analogies
Many examples of science analogies are listed in 'Creative comparisons: Making science familiar through language. An illustrative catalogue of figurative comparisons and analogies for science concepts'. Free Download.