12.1.10.5.1. Plot 2.5D/ 3DΒΆ

The itom twipOGLFigure plot is for visualisation of 2D / 3D DataObjects and PointClouds.

import numpy as np
from itom import plot25

A two dimensional sinus wave is generated und plotted using the TwipOGLFigure.

N = 1024
amplitude = 128.0
periodes = 3

xs = np.linspace(-periodes*np.pi, periodes*np.pi, N)
ys = np.linspace(-periodes*np.pi, periodes*np.pi, N)

tau, phi = np.meshgrid(xs, ys)

amp = np.sin(tau+phi)


plot25(amp)
(122, PlotItem(UiItem(class: TwipOGLFigure, name: plot0x0)))
../../../_images/demoPlotTwipOGL.png

Total running time of the script: ( 0 minutes 1.068 seconds)