-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflexPlot.py
More file actions
36 lines (23 loc) · 1012 Bytes
/
flexPlot.py
File metadata and controls
36 lines (23 loc) · 1012 Bytes
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
# Function to plot correct version of VanKrevelen based on input.
from VanKrevelen import plotVanKrevelen
from VanKrevelenHeatmap import plotHeatmap
from VanKrevelenSideBySide import plotSideBySide
from VanKrevelenYourMap import plotYourMap
# This function simply routes the input to the correct plotting function
def plotVanK(ratiosList, typeOfPlot='scatter', secondaryList=None):
# makes sure case doesn't impact input
typeOfPlot = typeOfPlot.lower()
# generates plot using generic scatter method
if typeOfPlot == 'scatter':
plotVanKrevelen(ratiosList)
# generates a heatmap
elif typeOfPlot == 'heatmap':
plotHeatmap(ratiosList)
# generates a 3d (SideBySide) map
elif typeOfPlot == '3d':
plotSideBySide(ratiosList)
# Generates a heatmap using the ratiosList as the heat map input and the secondary list as the scatter input
elif typeOfPlot == 'yourmap':
plotYourMap(ratiosList, secondaryList)
else:
raise IOError