python - Scatter plot label overlaps - matplotlib -


i draw scatter plot labeling. however, these labels overlapping. how can enhance can see numbers better? also, have numbers in integer, shows label values in float. wondering why.

looking forward hearing guys.

here's code:

col = df['type'].map({'a':'r', 'b':'b', 'c':'y'}) ax = df.plot.scatter(x='x', y='y', c=col)  df[['x','y','id']].apply(lambda x: ax.text(*x),axis=1) 

enter image description here


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -