Antarius, простенький пример
#!/usr/bin/env python
# -*-coding:utf8-*-
import sys
import pygame
from random import randint
pygame.init()
# Define variables
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
BLUE = (0, 0, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
X = 800
Y = 600
SIZE = (X,Y)
X_OFFSET = 5
RING_SIZE = X/X_OFFSET
DATA = [False for _ in xrange(RING_SIZE)]
COUNT = 0
TICK=10
screen = pygame.display.set_mode(SIZE)
pygame.display.set_caption("Test")
screen.fill((63,63,63))
pygame.display.update()
clock = pygame.time.Clock()
#MainLoop
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
DATA.append(Y/2 - randint(0,200) + 100 )
DATA.pop(0)
COUNT += 1
if COUNT == TICK:
COUNT = 0
screen.fill((63,63,63))
for i in xrange(1,RING_SIZE):
if DATA[i-1]:
pygame.draw.circle(screen,(0,255,255),[(i-1)*X_OFFSET,DATA[i-1]],3)
pygame.draw.aaline(screen, (0,255,0), [(i-1)*X_OFFSET,DATA[i-1]], [i*X_OFFSET,DATA[i]], True)
pygame.draw.circle(screen,(0,255,255),[(i)*X_OFFSET,DATA[i]],3)
pygame.display.flip()
clock.tick(TICK)