| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/__pycache__/ |
Upload File : |
o
�:�a&{ � @ s� d Z ddlZddlZddlmZmZmZmZ m
Z
mZm
Z ddlmZmZmZmZ ddlmZ ddlmZ ddlmZ d d
� Zdd� Zd
d� ZG dd� dej�Zd?dd�ZG dd� de
j �Z!d?dd�Z"d?dd�Z#d?dd�Z$d?dd�Z%d?dd�Z&G d d!� d!e�Z'd?d"d#�Z(G d$d%� d%e�Z)G d&d'� d'e)�Z*d(d)� Z+d?d*d+�Z,d?d,d-�Z-G d.d/� d/e�Z.G d0d1� d1e�Z/d@d3d4�Z0G d5d6� d6e�Z1d?d7d8�Z2d9d:� Z3d;d<� Z4d=d>� Z5dS )Azx
Module containing 3D artist code and functions to convert 2D
artists into 3D versions which can be added to an Axes3D.
� N)�_api�artist�cbook�colors�lines�text�path)�LineCollection�PolyCollection�PatchCollection�PathCollection)� Normalize)�Patch� )�proj3dc C � | d d } | dkr| d } | S )z?Return the given angle normalized to -180 < *a* <= 180 degrees.ih � � ��ar r �</usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/art3d.py�_norm_angle � r c C r )z=Return the given angle normalized to -90 < *a* <= 90 degrees.r �Z r r r r r �_norm_text_angle r r c C sp | dkr t �d�S | dkrt �d�S | dkrt �d�S | du r$t �d�S t �| �r4t| �d kr4t �| �S td
��)a�
Return a direction vector.
Parameters
----------
zdir : {'x', 'y', 'z', None, 3-tuple}
The direction. Possible values are:
- 'x': equivalent to (1, 0, 0)
- 'y': equivalent to (0, 1, 0)
- 'z': equivalent to (0, 0, 1)
- *None*: equivalent to (0, 0, 0)
- an iterable (x, y, z) is converted to a NumPy array, if not already
Returns
-------
x, y, z : array-like
The direction vector.
�x)r r r �y)r r r �z)r r r N)r r r � z2'x', 'y', 'z', None or vector of length 3 expected)�np�array�iterable�len�
ValueError��zdirr r r �get_dir_vector( s
r&