File tree Expand file tree Collapse file tree 10 files changed +20
-15
lines changed Expand file tree Collapse file tree 10 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 1111# All configuration values have a default; values that are commented out
1212# serve to show the default.
1313
14- import sys
1514import os
15+ import sys
16+
1617import sphinx_rtd_theme
1718
1819# If extensions (or modules to document with autodoc) are in another directory,
Original file line number Diff line number Diff line change 1- import svgutils .transform as sg
21import sys
32
3+ import svgutils .transform as sg
4+
45# create new SVG figure
56fig = sg .SVGFigure ("16cm" , "6.5cm" )
67
Original file line number Diff line number Diff line change 2222rcParams .update (params )
2323
2424
25- import numpy as np
2625import matplotlib .pyplot as plt
26+ import numpy as np
2727
2828
2929def sigmoid (x ):
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22# coding=utf-8
33
4- import numpy as np
54import matplotlib .pyplot as plt
5+ import numpy as np
66
7- from svgutils .transform import from_mpl
87from svgutils .templates import VerticalLayout
8+ from svgutils .transform import from_mpl
99
1010layout = VerticalLayout ()
1111
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22# coding=utf-8
33
4+ from svgutils .templates import ColumnLayout , VerticalLayout
45from svgutils .transform import fromfile
5- from svgutils .templates import VerticalLayout , ColumnLayout
6-
76
87layout = ColumnLayout (5 )
98
Original file line number Diff line number Diff line change 1- from . import transform , compose
1+ from . import compose , transform
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22# coding=utf-8
33
4- from svgutils .transform import SVGFigure , GroupElement
4+ from svgutils .transform import GroupElement , SVGFigure
55
66
77class BaseTemplate (SVGFigure ):
Original file line number Diff line number Diff line change 1- from lxml import etree
2- from copy import deepcopy
31import codecs
2+ from copy import deepcopy
3+
4+ from lxml import etree
45
56try :
67 from StringIO import StringIO
Original file line number Diff line number Diff line change 1+ import codecs
2+ import hashlib
3+
4+ from nose .tools import assert_almost_equal , ok_
5+
16import svgutils .compose as sc
27from svgutils .compose import *
3- from nose .tools import ok_ , assert_almost_equal
48from svgutils .transform import SVG , XLINK
5- import codecs
6- import hashlib
79
810
911def test_embedded_svg ():
Original file line number Diff line number Diff line change 22# coding=utf-8
33from tempfile import NamedTemporaryFile
44
5+ from nose .tools import ok_
6+
57from svgutils import transform
68from svgutils .compose import Unit
7- from nose .tools import ok_
89
910circle = """<?xml version="1.0" standalone="no"?>
1011<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
You can’t perform that action at this time.
0 commit comments