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

  • SEARCH
  • Home
  • 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 8621281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:47:07+00:00 2026-06-12T06:47:07+00:00

I need some sort of tool for plotting a continuous stream of data. In

  • 0

I need some sort of tool for plotting a continuous stream of data. In other words, I have a program, let’s call it A, that runs a simulation and outputs a continuous stream of numbers. Because A is processor-intensive, it might be running either on a dedicated computer for batch jobs, at home for using my graphics card, or in our pet super-computers grid. So, I want to keep A as simple as possible, it must only take care of computing the numbers and sending them to standard output or to a pipe. But I want to see the numbers as they come out, so, in my desktop, I need a second program B that be watching the output of A and plotting them in real time

So, that’s my question: what can I use as a B program? Is there any tweak that can be done with gnuplot, matplotlib, or any other tool? I would prefer a simple setup that doesn’t require to be fumbling with code for an entire day.

Thanks in advance.

  • 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-12T06:47:08+00:00Added an answer on June 12, 2026 at 6:47 am

    For matplotlib, something very simple could be the following:

    import pylab
    
    plotdata = [] 
    while True:
        line = raw_input()
        data = line.split()
        try:
            data = [float(datum) for datum in data]
        except ValueError:   # no floating point input
            continue
        plotdata.extend(data)
        pylab.plot(plotdata, 'k-')
        pylab.show(False)
    

    This will loop indefinitely (until you hit Ctrl+C), and eats up numbers from the stdin. I didn’t give it much thought, so it may lack in details, but as you didn’t have anything to start from, I’ve kept it simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some sort of recursive function, but I need to parse a string,
I need to sort then print the result increasing and decreasing. I have some
I am looking for some sort of tool which does not necessarily need to
I decided that I need some sort of Revision Control Software for my coding
Basically I need some sort of library/set of functions that will allow me to
I need some help with a program that I am writing for my Systems
We are starting a rather complex new project at work, and need some sort
I need to develop some sort of application featuring Editing Movie slices, Adding and
Really need just some guidance : Topological sort by arcs definition (from my question)
I need a comparison table of some sort for database varieties (MySQL, SQLite etc.).

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.