For awhile now I've been watching my temp gauge flicker erratically, without any relation to bike speed, or fan operation. I won't waste your time with the troubleshooting process, but I traced it to the really, really corroded wire connections at the back of the gauge itself. There are three small screws that attach the wires. I took them off and cleaned off the corrosion with a small Dremel wire wheel. Fine sandpaper works, too. If you need to do this, note that the electrical path is through the screw to the gauge, (the screw holds the wire to the plastic panel) so also clean the underside of the screw head and the lockwasher. Also DO NOT remove all three screws at once, as they also serve as the mounting screws for the gauge, and it will fall into the instrument panel and flop around. Take out one at a time and clean it and then replace it. While you've got the whole panel out on your lap, do the same thing with your fuel gauge connections, as they are just the same. Gauge is rock steady now.
Oh, and don't forget to reattach your speedo cable before PUTTING IT ALL BACK TOGETHER!