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
• 7,870 points
33 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 by SDeb
• 13,160 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,720 points
270 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
78 views
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
• 4,480 points
17 views
0 votes
1 answer

Problem in real time matplotlib plotting

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

answered May 24 in Python by sampriti
• 1,100 points
64 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 in Python by Bobin
340 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
• 56,520 points
130 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
• 56,520 points
2,003 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 in Python by SDeb
• 13,160 points
92 views
0 votes
1 answer