Commit 7cd45d3e authored by Theo Steininger's avatar Theo Steininger
Browse files

Fixed typo in import. Moved matplotlib_init.py to nifty.config.

parent 20a1e800
Pipeline #11725 failed with stage
in 3 minutes and 47 seconds
......@@ -16,6 +16,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import matplotlib_init
import os
import numpy as np
......
from matplotlib_init import *
from descriptors import *
from plots import *
from figures import *
......
# -*- coding: utf-8 -*-
import os
__all__ = []
try:
import matplotlib
except ImportError:
pass
else:
try:
display = os.environ['DISPLAY']
except KeyError:
matplotlib.use('Agg')
else:
if display == '':
matplotlib.use('Agg')
# -*- coding: utf-8 -*-
from nifty import dependency_injector as gdi
from heat_map import HeatMap
from heatmap import Heatmap
pylab = gdi.get('pylab')
healpy = gdi.get('healpy')
class Mollweide(HeatMap):
class Mollweide(Heatmap):
def __init__(self, data, label='', line=None, marker=None, webgl=False,
smoothing=False): # smoothing 'best', 'fast', False
if 'pylab' not in gdi:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment