plt.scatter(ys[:,u[:,1]].ravel()+.5,xs[u[:,0]].ravel()+0.5,marker='*', color='r', s=55) plt.gca().invert_yaxis() xlabels_to_use_this=df.loc[:30,[('lapse','')]].values.tolist() # ax = plt.axes() # labels_x = [item.get_text() for item in ax.get_xtickl...
Add a comment. 2. I tried the following code, according with my tests it works only if the plot is generated in an external window: import matplotlib.pyplot as plt plt.ion () fig = plt.figure () ax = fig.add_subplot (111) ax.grid (True) x = [4, 1, 5, 3, 8] y = [1,...