When I\'m adding the c option to a scatterplot in matplotlib, the x axis labels dissapear. Here\'s an example: https://github.com/Kornel/scatterplot-matplotlib/blob/master/S
That looks like a strange bug with pandas plotting to me! Here's a way around it:
fig, ax = plt.subplots() df.plot(kind='scatter',x='X', y='Y', c='C', ax=ax) ax.set_xlabel("X") plt.show()
This will give you the graph you expect: