multiple scatter plots in python

import matplotlib.pyplot as plt
fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.scatter(x1, y1, s = 10, c = 'b', label = 'elbow')
ax1.scatter(x2, y2, s = 10, c = 'r', label = 'shoulder')
plt.legend(loc='upper left');
plt.show()

0
0
Brad Thomas 145 points

                                    import matplotlib.pyplot as plt

x = range(100)
y = range(100,200)
fig = plt.figure()
ax1 = fig.add_subplot(111)

ax1.scatter(x[:4], y[:4], s=10, c='b', marker="s", label='first')
ax1.scatter(x[40:],y[40:], s=10, c='r', marker="o", label='second')
plt.legend(loc='upper left');
plt.show()

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
matplotlib multiple scatter plots on same graph python matplotlib plot multiple scatter plots scatter plot with 2 axes scatter plot python muntiple multiple scatter plot python plotly scatter plot 2 values python one scatter plot multiple datasets python matplotlib multiple scatter plot plt,scatter multiple plot in a plot how to draw scatter plot for multiple columns in matplotlib how to scatter plot in matplotlib of two sets how to make multiple different scatter plot in matplotlib multiple scatter plots in python pandas how to plot multiple scatter plot in python multiple scatter plots in one figure python python scatter plot multiple features multiple scatterplot using funcion plot multiple scatter in same graph python using function python multiple scatter plots in one figure python build multiple in one scatter plot pyplot multiple scatter plots plotly multiple scatter plots in one figure plot with multiple scatters how to plot multiple scatter data in a singl plot matplotlib plot a scatter on a multiple plot multiple scatter plots in multiple figure python matplotlib plotting scatter plot 2 classes 2 different scatter plots in one graph python scatter plot multiple scatters put several scatter plot into one figure matplotlib matplotlib scatter multiple series multiple scatter plots in python same graph how to plot multiple scatter plots for dataframe python multiple scatter plots multiple scatter plots how to draw scatter plot in python for multiple variables scatter plot with multiple data sets python plot scatter python multiple arrays matplotlib scatter multiple labels matplotlib multiple labels in one scatter python plot multiple scatter plot seaborn python plot multiple scatter plot plot multiple scatter plots in python plotting multiple scatter plots in python scatter plots in multiple variable in python matplotlib scatter plot multiple columns scatter plot for multiple variables in python two scatter plots python plotting multiple scatter graphs in python two scatter plots one graph python scatter plot multiple variables python scatter plot puthon multiple variables how to create a scatter plot of multiple arrays matplotlib how to add two scatter plots in py multiple y axes in scatter plot scatter plot multiple labels python scatter plot with multiple variables python python plot multiple scatter plots in same chart python plot multiple scatter plots in same figure multiple scatter plot on the same graph python how to do 2 scatter plots in python python multiple features scatter plot multiple scatter plots with pandas how to plot multiple scatter plots in python multiple scatterplot python multiple scatterplots in python matplotlib scatter plot multiple series plot multiple data sets on same graph matplotlib plot two scatter plot python how to draw two scatter plots in python multiple scatter plot matplotlib plt.scatter multiple plots of one dataframe plt.scatter multiple plots multiple scatter plot python combine scatter plots python plotting multiple datasets into single plot python multiple xy plot multiple scatter plots in python compare 2 data in the same plot matplotlib create multiple scatter plot in subplot create multiple scatter plot how to plot matplotlib scatter on same graph matplotlib plot 2 datasets make two categories on scatter plots in ggplot2 scatter plot of multiple variables in python multiple dataset same 3d plot scatter plot plot multiple barplots python python plot two curves python plot multiple plotly python multiple plots matplotlib plot multiple data sets how to add multiple scatter in matplotlib python matplotlib multiple scatter plots multiple scatter plots pandas matplotlib multiple datasets on the same subplot two separate scatter plot python plt scatter in same plot matplotlib multiple scatter plots python multiple scatter python plot multiple scatter plots python scatter plot multiple don't show up python plot two series scatter multi scatter plot python matplotlib plotting 2 scatters on the same graph three scatter plot with same axis python python two scatter plots one graph r multiple scatter plots on one scatter plot how to plot a scatter plot and a graph on the same graph python how to plot 2 scatter plots on the same graph python
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source