Functions | Variables
demo2 Namespace Reference

Functions

def animate (i)
 
def generate_quaternion ()
 
def init ()
 

Variables

 anim
 
 ax = fig.add_axes([0, 0, 1, 1], projection='3d')
 
list colors = ['r', 'g', 'b']
 
 endpoints = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]])
 
 fig = plt.figure()
 
 lines
 
 quaternion_generator = generate_quaternion()
 
 startpoints = np.array([[0, 0, 0], [0, 0, 0], [0, 0, 0]])
 

Detailed Description

This file is part of the pyquaternion python module

Author:         Kieran Wynn
Website:        https://github.com/KieranWynn/pyquaternion
Documentation:  http://kieranwynn.github.io/pyquaternion/

Version:         1.0.0
License:         The MIT License (MIT)

Copyright (c) 2015 Kieran Wynn

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

demo.py - Demo of pyquaternion using matplotlib

Function Documentation

def demo2.animate (   i)

Definition at line 94 of file demo2.py.

def demo2.generate_quaternion ( )

Definition at line 46 of file demo2.py.

def demo2.init ( )

Definition at line 86 of file demo2.py.

Variable Documentation

demo2.anim
Initial value:
1 = animation.FuncAnimation(fig, animate, init_func=init,
2  frames=500, interval=30, blit=False)

Definition at line 117 of file demo2.py.

demo2.ax = fig.add_axes([0, 0, 1, 1], projection='3d')

Definition at line 60 of file demo2.py.

list demo2.colors = ['r', 'g', 'b']

Definition at line 67 of file demo2.py.

demo2.endpoints = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]])

Definition at line 74 of file demo2.py.

demo2.fig = plt.figure()

Definition at line 59 of file demo2.py.

demo2.lines
Initial value:
1 = sum([ax.plot([], [], [], c=c)
2  for c in colors], [])

Definition at line 70 of file demo2.py.

demo2.quaternion_generator = generate_quaternion()

Definition at line 56 of file demo2.py.

demo2.startpoints = np.array([[0, 0, 0], [0, 0, 0], [0, 0, 0]])

Definition at line 73 of file demo2.py.



pyquaternion
Author(s): achille
autogenerated on Sun Mar 15 2020 03:13:33