Format: application/x-python-code
1 o
2
3 ��h�- � @ sT d Z ddlmZ ddlmZ ddlZe�d�Ze�d� ddl m
4 Z
5 ddlmZ dd l
6 mZ ddlZdd
7 lmZ ddlmZ ddlmZmZ d
8 dlmZ ddlmZ dd� Zdd� Ze� d�dd� �Z!dd� Z"dddddd�Z#dd� Z$d d!� Z%d"d#� Z&d$d%� Z'd&d'� Z(G d(d)� d)e)�Z*d*d+� Z+d,d-� Z,ej-�.d.g d/��d0d1� �Z/d2d3� Z0d4d5� Z1dS )6zTests for pylab tools module.
9 � )�
10 a2b_base64)�BytesION�
11 matplotlibZAgg)�Figure)�pyplot)�backend_inline)�get_ipython)�InteractiveShell)�_PNG�_JPEG� )�
12 pylabtools)�
13 decoratorsc C sz t �� } t�| d�d u sJ �t �d� t �� } | �ddd�}|�g d�� t �� t�| d�d d� �� }d|v s;J �d S )N�svg�all� �r r � �d zdoctype svg) �plt�figure�pt�print_figure�close�add_subplot�plot�draw�lower)�fig�axr � r �Xc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/core/tests/test_pylabtools.py�test_figure_to_svg s
14 r"