Suppose I have the following data: data = {'Value': {('1', 1): 3.0, ('1', 2): 4.0, ('1', 3): 51.0, ('1', 4): 10.0, ('1', 5): 2.0, ('1', 6): 17.0, ('1', 7): 14.0, ('1', 8): 7.0, ('1
Solution 1:
Grab the axes handle of the first plot, then reindex df1 to align the data with the same indexes as df and plot df1 using ax=ax
.
ax = df.plot()
df1.reindex(df.index).plot(marker='o',linestyle='none',color='g', ax=ax)
Output:
Post a Comment for "Multiindex Scatter Plot"