.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "11_demos\itom\plots\demo_plotTwip.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_11_demos_itom_plots_demo_plotTwip.py: Plot 2.5D/ 3D ============= The itom twipOGLFigure plot is for visualisation of 2D / 3D DataObjects and PointClouds. .. GENERATED FROM PYTHON SOURCE LINES 6-10 .. code-block:: default import numpy as np from itom import plot25 .. GENERATED FROM PYTHON SOURCE LINES 12-13 A two dimensional sinus wave is generated und plotted using the TwipOGLFigure. .. GENERATED FROM PYTHON SOURCE LINES 13-27 .. code-block:: default 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) .. rst-class:: sphx-glr-script-out .. code-block:: none (122, PlotItem(UiItem(class: TwipOGLFigure, name: plot0x0))) .. GENERATED FROM PYTHON SOURCE LINES 28-29 .. image:: ../../_static/demoPlotTwipOGL.png :width: 100% .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 1.068 seconds) .. _sphx_glr_download_11_demos_itom_plots_demo_plotTwip.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: demo_plotTwip.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: demo_plotTwip.ipynb `