<jupyter_start><jupyter_text>Avatar Trajectory Plot* Version: '0.0.4'* Date: 2021-0422* Author: <NAME>* Description: Example how to plot avatar instance trajectory in 3d space  Import lib and check version<jupyter_code>import avatarpy
from avatarpy import Avatar, dataset
print(avatarpy.__version__)<jupyter_output>0.0.4<jupyter_text>Avatar with sample dataset<jupyter_code># check available dataset
for k, v in dataset.items():
    print(k, v)
csv_path = dataset['freely_moving']
avatar = Avatar(csv_path, frame_rate=20) # frame_rate default is 20. frame_rate = recording speed of acquisition camera<jupyter_output><empty_output><jupyter_text>Plot 2D trajectory with chest nodeAvatar instance has default 9 nodes. Among these I'll use `chest` node to plot 2D trajectory.<jupyter_code>import seaborn as sns
import matplotlib.pyplot as plt
# Available node list
avatar.nodes.keys()
# Format of data
avatar['chest'].head()
sns.set('talk')
sns.set_style('white')
g = sns.jointplot(data=avatar['chest'], x='x', y='y', kind='scatter', marker="+", s=10, color='orange')
g.plot_joint(sns.kdeplot, cmap='magma', zorder=0, thresh=0, levels=100, fill=True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12244897959183673, 'fraction_numerical': 0.02465986394557823, 'mean_word_length': 7.288732394366197, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '284218', 'license': 'MIT', 'n_tokens_mistral': 431, 'n_tokens_neox': 406, 'n_words': 111, 'path': 'jupyter/avatar_2D_trajectory_plot.ipynb', 'repo_name': 'jeakwon/avatar', 'size': '1178'}