Seaborn Regplot mit Farbbalken?

Ich plane etwas mit seaborn'sregplot. Soweit ich verstehe, verwendet espyplot.scatter hinter den Kulissen. Also nahm ich an, dass ich, wenn ich die Farbe für das Streudiagramm als Sequenz spezifizieren würde, einfach @ aufrufen könntplt.colorbar, aber es scheint nicht zu funktionieren:

sns.regplot('mapped both', 'unique; repeated at least once', wt, ci=95, logx=True, truncate=True, line_kws={"linewidth": 1, "color": "seagreen"}, scatter_kws={'c':wt['Cis/Trans'], 'cmap':'summer', 's':75})
plt.colorbar()

Traceback (most recent call last):

  File "<ipython-input-174-f2d61aff7c73>", line 2, in <module>
    plt.colorbar()

  File "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 2152, in colorbar
    raise RuntimeError('No mappable was found to use for colorbar '

RuntimeError: No mappable was found to use for colorbar creation. First define a mappable such as an image (with imshow) or a contour set (with contourf).

Warum funktioniert es nicht und gibt es einen Ausweg?

Ich würde gerne die Größe der Punkte anstelle der Farbe verwenden, wenn es eine einfache Möglichkeit gäbe, eine Legende für die Größen zu erstellen.

Antworten auf die Frage(4)

Ihre Antwort auf die Frage