Exemplo n.º 1
0
def main():

    # Initialize room object
    room = Room()

    # Filename for room
    filename = 'room2015-12-06.pckl'

    # Read in room object from text file
    room.load_room(filename)

    # Print out info
    print "Loading Room from: " + filename
    room.describe()

    # Initialize Figure
    fig, ax = plt.subplots()

    # Define plot parameters
    # plt.xlim(-5, 5)
    # plt.ylim(-5, 5)
    plt.xlabel('X')
    plt.xlabel('Y')

    # Plot the areas and moves within each room
    for area in room.areas:
        plot_area(area, ax)

    plt.show()