Dietary sugar imbalance alters sweet taste. A, Representative traces of the first 500-ms period of tip recordings from sensilla stimulated with the indicated concentrations of sucrose. Before testing, flies were prefed with indicated diet for 1 d. B, Neuronal responses in the first 500-ms period on stimulation with sucrose. Flies were prefed with the indicated diet for 1 d and tested without starvation (A, B) or after a 24-h period of wet starvation (Extended Data Fig. 2-1); n = 13 (balanced), n = 20 (sugar-reduced) sensilla from three to four flies. C, Representative traces of the first 500-ms period of tip recordings from sensilla stimulated with the indicated concentrations of sucrose. Before testing, flies were prefed with the indicated diet for 4 d. D, Neuronal responses in the first 500-ms period on stimulation with sucrose. Flies were prefed with the indicated diet for 4 d and tested without starvation (C, D) or after a 24-h period of wet starvation (Extended Data Fig. 2-2); n = 21 (balanced), n = 20 (sugar-enriched) sensilla from four flies. All recordings were taken from L-type labellar sensilla in mated females. Neuronal responses in B, D were compared using two-way ANOVA with Sidak's post hoc multiple comparisons test; *p < 0.05, **p < 0.01, ***p < 0.001, ****p < 0.0001.