Python script to Draw graphs using 'matplotlib' python library
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
mq_b = plt.plot([100, 500, 1000, 1500, 2000], [0.2016934, 0.2231232, 0.2216977, 0.2204249, 0.2327638], label='system v Message queue blocking')
uds_b = plt.plot([100, 500, 1000, 1500, 2000], [0.1519922, 0.1948927, 0.2551158, 0.3197282, 0.3855664], label='unix domain socket blocking')
mq_nb = plt.plot([100, 500, 1000, 1500, 2000], [0.1766409, 0.1740136, 0.1810920, 0.1730314, 0.1773601], label='system v message queue non blocking no sleep')
uds_nb = plt.plot([100, 500, 1000, 1500, 2000], [0.1290171, 0.1749498, 0.2390165, 0.2885354, 0.3574085], label='unix domain socket non blocking no sleep')
plt.axis([0, 3000, 0, 0.5])
# Place a legend to the right of this smaller subplot.
plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
plt.ylabel('send time difference between message 1 and message 50000(in secs)' )
plt.xlabel('message size (in bytes)')
plt.show()