MatPlotLib Scatterplot removal

0 votes
I want to remove some data plotted as a scatter plot on matplotlib in python. I have used some some scatter data and some 'plot' line data.

Now, to remove the 'plot' line data I have used: del self.plot1.lines[0]

What is the equivalent command to remove a scatter plot? Can anyone help me with that?
May 3 in Python by ana1504.k
• 5,990 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
One of the scatterplot object's methods is remove.

If you change the line abc.set_visible(False) to abc.remove(), the results look the same, except the scatterplot is now actually removed from the plot, instead of being set to not visible.
answered May 3 by SDeb
• 9,540 points

Related Questions In Python

0 votes
1 answer

How can I logarithmic axes with matplotlib in python?

You can use the Axes.set_yscale method. That allows you ...READ MORE

answered Oct 15, 2018 in Python by charlie_brown
• 7,710 points
+2 votes
1 answer

How can I record the X,Y limits of a displayed X,Y plot using the matplotlib show() module?

A couple hours after posting this question ...READ MORE

answered Dec 27, 2018 in Python by anonymous
0 votes
0 answers

how to remove overlapping boundaries in matplotlib?

how do i remove overlapping boundaries in ...READ MORE

Mar 26 in Python by Waseem
• 1,990 points
+1 vote
1 answer
+1 vote
1 answer

How to handle Real-Time Matplotlib Plotting

To draw a continuous set of random ...READ MORE

answered Sep 26, 2018 in Python by Priyaj
• 56,120 points
0 votes
1 answer

How to increase plt.title font size?

Try the following : import matplotlib.pyplot as plt plt.figtext(.5,.9,'Temperature', ...READ MORE

answered Feb 11 in Python by SDeb
• 9,540 points
0 votes
1 answer

How can I control the size of points in an R scatterplot?

plot(variable, type='o' , pch=5, cex=.3) The pch argument ...READ MORE

answered May 3, 2018 in Data Analytics by shams
• 3,580 points
0 votes
1 answer

How to stack scatterplot in ggplot2?

Use melt() to reshape your data with total as a factor ...READ MORE

answered May 8, 2018 in Data Analytics by darklord
• 6,140 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.