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
If you are using Anaconda, installing pandas
with conda-forge
channel resolves the issue.
conda install -c conda-forge pandas
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: