Horizontal Line Vertical Line - Df = px.data.tips() fig = px.scatter(df, x=total_bill, y=tip) fig.update_layout. Horizontal Line Vertical Line - This may be a common problem for new users of matplotlib to draw vertical and horizontal lines.