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, 2019 in Python by ana1504.k
• 7,890 points
395 views

1 answer to this question.

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, 2019 by SDeb
• 13,250 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,780 points
1,153 views
+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
136 views
0 votes
0 answers

how to remove overlapping boundaries in matplotlib?

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

Mar 26, 2019 in Python by Waseem
• 4,540 points
56 views
0 votes
1 answer

Problem in real time matplotlib plotting

Hi Sucheta, The error I can see in ...READ MORE

answered May 24, 2019 in Python by sampriti
• 1,100 points
237 views
0 votes
1 answer

Example showing a way to create a grouped bar chart with Matplotlib?

Have a look at this: import matplotlib import matplotlib.pyplot ...READ MORE

answered May 27, 2019 in Python by Bobin
1,803 views
+1 vote
1 answer

How to create plots using python matplotlib in IPython notebook?

I think you should try: I used %matplotlib inline in ...READ MORE

answered Aug 8, 2018 in Python by Priyaj
• 57,550 points
282 views
+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
• 57,550 points
8,804 views
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, 2019 in Python by SDeb
• 13,250 points
310 views
0 votes
1 answer

Get bbox in data coordinates in matplotlib

I'm not sure how you got the ...READ MORE

answered Jun 18, 2019 in Python by SDeb
• 13,250 points
1,424 views