Skip to content
Snippets Groups Projects
Select Git revision
  • 24f2de4af93591780fdaa9c05aaf6e966ac3d345
  • main default protected
  • feature/VA-100_Modbus_RTU
  • develop
  • stepperControl
5 results

test_loadCell.vi

Blame
  • VAR2 plot.py 382 B
    import matplotlib.pyplot as plt
    import numpy as np
    
    x = np.arange(1,21) 
    
    y1 = np.array([1,2,3,4,5])
    y1 = np.tile(y1,4)
    y2 = np.array([10,12,14,16])
    y2 = np.repeat(y2, 5)
    
    plt.step(x,y1, where='post',label ='VAR1')
    plt.step(x,y2,where = 'post',label = 'VAR2')
    
    plt.xticks([])
    plt.yticks([])
    
    plt.xlabel('time')
    plt.ylabel('value')
    plt.legend()
    plt.title("How VAR2 Works")
    plt.show()