Jan-27-2023, 02:15 PM
Hi all,
A matplotlib plt.bar demo create a chart as snapshots, how to set up x-axis label no shadow,thanks!!
A matplotlib plt.bar demo create a chart as snapshots, how to set up x-axis label no shadow,thanks!!
import matplotlib.pyplot as plt plt.style.use('ggplot') labels = ['MEMS Vbias', 'AVDD Continuity', 'DVDD Continuity', 'IIL CLK', 'Ref Sens ADC Gain Final', 'YL_gest_NM','Y1_HSPL_LPM_offset_trim', 'Current_fail', 'Out of Range'] values = [10, 15, 12, 9, 7, 13, 1, 1, 1] fig = plt.figure(figsize=(10, 5)) # creating the bar plot plt.bar(labels, values, color=['black','red','green','blue','cyan',]) plt.ylabel("Failed_QTY") plt.title("Tester Failed overview") plt.show()