text: import sys
  import msgpack
  import zlib
  import numpy as np
  import datetime
  import matplotlib.pyplot as plt
  import matplotlib.dates as md
  
  # import files from src
  sys.path.insert(0, "src")
  import example_helper as eh
  
  # define the location of the input file
  filename_augmento_topics = "data/example_data/augmento_topics.msgpack.zlib"
  filename_augmento_data = "data/example_data/augmento_data.msgpack.zlib"
  filename_bitmex_data = "data/example_data/bitmex_data.msgpack.zlib"
  
  # load the example data
  all_data = eh.load_example_data(filename_augmento_topics,
                               filename_augmento_data,
                               filename_bitmex_data)
  aug_topics, aug_topics_inv, t_aug_data, aug_data, t_price_data, price_data = all_data
  
  # get the signals we're interested in
  aug_signal_a = aug_data[:, aug_topics_inv["Bullish"]]
  aug_signal_b = aug_data[:, aug_topics_inv["Bearish"]]
  
  # set up the figure
  fig, ax = plt.subplots(2, 1, sharex=True, sharey=False)
  
  # initialise some labels for the plot
  datenum_aug_data = [md.date2num(datetime.datetime.fromtimestamp(el)) for el in t_aug_data]
  datenum_price_data = [md.date2num(datetime.datetime.fromtimestamp(el)) for el in t_price_data]
  
  # plot stuff
  ax[0].grid(linewidth=0.4)
  ax[1].grid(linewidth=0.4)
  ax[0].plot(datenum_price_data, price_data, linewidth=0.5)
  ax[1].plot(datenum_aug_data, aug_signal_a, color="g", linewidth=0.5)
  ax[1].plot(datenum_aug_data, aug_signal_b, color="r", linewidth=0.5)
  
  # label axes
  ax[0].set_ylabel("Price")
  ax[1].set_ylabel("Seniments")
  ax[1].legend(["Bullish", "Bearish"])
  
  # generate the time axes
  plt.subplots_adjust(bottom=0.2)
  plt.xticks( rotation=25 )
  ax[0]=plt.gca()
  xfmt = md.DateFormatter('%Y-%m-%d %H:%M')
  ax[0].xaxis.set_major_formatter(xfmt)
  
  # show the plot
  plt.show()
  
  
  