Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9297259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:01:34+00:00 2026-06-18T22:01:34+00:00

I am new to using PyLab. I want to plot some points. But I

  • 0

I am new to using PyLab. I want to plot some points. But I don’t want to show the previous points i.e. as a new point comes the previous plotted point will vanish and the new point will be plotted. I have searched a lot but I could not find how to re-initialize the plot in between. The problem I am facing is I can set the current figure by using
plt.figure(f1.number) but after plotting the point in that figure it gets permanently changed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T22:01:36+00:00Added an answer on June 18, 2026 at 10:01 pm

    plt.hold(False) before you start plotting will do what you want.

    hold determines of old artists are held-on to when new ones are plotted. The default is for hold to be on.

    ex

    # two lines 
    plt.figure()
    plt.hold(True)
    plt.plot(range(5))
    plt.plot(range(5)[::-1])
    
    #one line
    plt.figure()
    plt.hold(False)
    plt.plot(range(5))
    plt.plot(range(5)[::-1])
    

    Changing it via plt.hold changes it for all (new) axes. You can change the hold state for an individual axes by

    ax = gca()
    ax.hold(True)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new using Yii framework. I show a list a checkbox. But it's not
I'm new using Webflow and I don't know how to do that: I want
I am very new using JUnit. I want to test some classes that implements
Im new in using Django, and i want to know if there is some
New at using admob within Android. Is it possible to show ads with certain
I am new to using Jade -- and it's awesome so far. But one
I am using New-Object System.Management.Automation.PipelineStoppedException To stop the pipeline OK..works.. But how Can I
I'm new at using javascript and ASP.Net MVC 4. But i have tried to
I'm new using pyparsing, but I can't find how to solve this quite easy
I want to mention that I'm new using sql developer and I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.