fig = plt.figure(figsize = (20,8)) for i, data in ret_rates.groupby('category'): plt.plot(data['time_since_acqm'], data['retention'], '.', label=i) plt.xlabel('Time Since Acquisition') plt.ylabel('Retention') plt.legend() plt.show()
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter