plot.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 #coding=utf-8
3 
4 import numpy as np
5 import matplotlib.pyplot as plt
6 
7 def draw():
8  data1 = np.loadtxt('/home/wxyzd/axbot_ws/src/xbot_talker/cache/test1.txt')
9  print(type(data1))
10  print(data1)
11  x = np.linspace(0,825,826)
12  plt.plot(x, data1, c='r', ls='--',marker='o')
13  plt.xlabel('number')
14  plt.ylabel('u')
15  plt.title('LM')
16  plt.show()
17 
18 
19 if __name__ == '__main__':
20  draw()
21 
def draw()
Definition: plot.py:7


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:53