forked from Spinmob/spinmob
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
39 lines (27 loc) · 1.07 KB
/
__init__.py
File metadata and controls
39 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os as _os
import matplotlib as _mpl
import pylab
# ignore warnings by default
import warnings
warnings.simplefilter("ignore")
# Start the QApplication. Not sure why it has to be done this way.
import PyQt4.QtCore as _qtc
import PyQt4.Qt as _qt
# make sure we have a valid qt application for dialogs etc...
_qtapp = _qtc.QCoreApplication.instance()
if not _qtapp: _qtapp = _qt.QApplication(_os.sys.argv)
#_qtapp = _qt.qApp
#if _qtapp == None:
# print "Creating QApplication"
# _qtapp = _qt.QApplication(_os.sys.argv)
import _settings
settings = _settings.settings()
# some defaults
_mpl.rcParams['figure.facecolor']='w'
import _plot as plot ; plot._settings = settings
import _data as data ; data._settings = settings
import _dialogs as dialogs ; dialogs._settings = settings
import _pylab_tweaks as tweaks ; tweaks._settings = settings
import _functions as fun ; fun._settings = settings
plot.tweaks._pylab_colormap._settings = settings
instaprint = tweaks.instaprint