Channles velcoity

[1]:
import nexus as nx
import numpy as np
import matplotlib.pyplot as plt
[2]:
velocity = nx.data.ChannelsToVelocity(num_channels = 512, velocity = 8, offset = 0, mode = "constant")

plt.plot(velocity, label = "8 mm/s")

velocity = nx.data.ChannelsToVelocity(num_channels = 512, velocity = 8, offset = 0.2, mode = "constant")

plt.plot(velocity, label = "8 mm/s + 0.2 mm/s")

velocity = nx.data.ChannelsToVelocity(num_channels = 512, velocity = 8, mode = "sinus")

plt.plot(velocity, label = "sinus 8 mm/s")
plt.xlabel("cahnnel")
plt.ylabel("velocity (mm/s)")
plt.legend()
plt.show()
../../_images/tutorial_data_nb_channels_velocity_2_0.png