Code to make tri-interface gauges