#132 Basic connected scatterplot






Connected scatterplots are just a mix between scatterplots and linecharts. They are made with the plot function of matplotlib.

If you want to custom them, just check the scatter and line sections!






# libraries
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns

# data
df=pd.DataFrame({'x': range(1,10), 'y': np.random.randn(9)*80+range(1,10) })

# plot
plt.plot( 'x', 'y', data=df, linestyle='-', marker='o')
  • Sponsors

  • 1 comment

    Leave a Reply

    Your email address will not be published.