Thinking about springs to apply downforce on plotting pen holders suggested magnets, so I extricated some neodymium bars from my collection of power toothbrush heads:
A snippet of magnetic field visualization film shows a dipole pattern:
Snapping two of them together in line:
… produces a quadrupole:
Now, if only I had some magnetic monopoles, this whole thing would be easier!