-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpodi_plotting.py
More file actions
55 lines (45 loc) · 1.75 KB
/
podi_plotting.py
File metadata and controls
55 lines (45 loc) · 1.75 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env python3
#
# Copyright 2012-2013 Ralf Kotulla
# kotulla@uwm.edu
#
# This file is part of the ODI QuickReduce pipeline package.
#
# If you find this program or parts thereof please make sure to
# cite it appropriately (please contact the author for the most
# up-to-date reference to use). Also if you find any problems
# or have suggestiosn on how to improve the code or its
# functionality please let me know. Comments and questions are
# always welcome.
#
# The code is made publicly available. Feel free to share the link
# with whoever might be interested. However, I do ask you to not
# publish additional copies on your own website or other sources.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
"""
This module contains all information and imports dealing with plotting
"""
#################################3
#
# Some definitions for colors
#
#################################3
# Set plotting backend to Agg to make it work in terminals without X support
import matplotlib
matplotlib.use('Agg')
import matplotlib.colors
from matplotlib.colors import LinearSegmentedColormap
colorfade_bluewhite = {'red': ((0.0, 1.0, 1.0),
(1.0, 142./255., 1.)),
'green': ((0.0, 1.0, 1.0),
(1.0, 163./255., 0.0)),
'blue': ((0.0, 1.0, 1.0),
(1.0, 218./255., 0.0))
}
cmap_bluewhite = matplotlib.colors.LinearSegmentedColormap('BlueWhite', colorfade_bluewhite)
matplotlib.colormaps.register(cmap=cmap_bluewhite)
import matplotlib.patches