Skip to content
Resizing Python plots
DataFrameas
df
variable
SELECT funding, valuation, company FROM funding INNER JOIN companies USING(company_id)Matplotlib and seaborn
import matplotlib.pyplot as plt
plt.scatter(x = df['funding'].tolist(), y = df['valuation'].tolist());plt.rcParams["figure.figsize"] = (12,6)
plt.scatter(x = df['funding'].tolist(), y = df['valuation'].tolist())import seaborn as sns
sns.scatterplot(data=df, x="funding", y="valuation")Plotly
import plotly.express as px
px.scatter(df, x='funding', y='valuation', log_x=True, log_y=True, hover_name='company')px.scatter(df, x='funding', y='valuation', log_x=True, log_y=True, hover_name='company', width=800, height=600)