In this opportunity I have some basics and little questions about the usage of napari
- Is possible to show ·3D axes on the canvas? At the moment, I solved this issue making a vector layer like this:
viewer = napari.Viewer(ndisplay=3) n_axes = 3 vectors = np.zeros((n_axes, 2, 3), dtype=np.float32) x_px = np.array([1, 0, 0]) y_py = np.array([0, 1, 0]) z_pz = np.array([0, 0, 1]) vectors[0, 1] = x_px vectors[1, 1] = y_py vectors[2, 1] = z_pz viewer.add_vectors(vectors, name='Axes', edge_width=3, length=50) viewer.add_points(np.zeros(3), name='Reference', size=10)
But, I think maybe there is a more straightforward method to do it
- Related to the previous question, is it possible to put text to the vectors? (for example ‘X’ ‘Y’ ‘Z’). I know I can do it with extra points layer (point layer has ‘text’ parameter), but I want to know again if there is a straightforward mechanism.