12 lines
365 B
Python
12 lines
365 B
Python
# -*- coding: utf-8 -*-
|
|
import matplotlib
|
|
from matplotlib.projections import register_projection
|
|
|
|
from .smithaxes import SmithAxes
|
|
|
|
# check version requierment
|
|
if matplotlib.__version__ < '1.2':
|
|
raise ImportError("pySmithPlot requires at least matplotlib version 1.2")
|
|
|
|
# add smith projection to available projections
|
|
register_projection(SmithAxes)
|