-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpartial_history_multilevel_contour_movie_invasive_carcinoma.py
57 lines (48 loc) · 2.2 KB
/
partial_history_multilevel_contour_movie_invasive_carcinoma.py
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
56
57
import sys
import matplotlib.pyplot as plt
sys.path.append(r'../python_imaging')
from image_processing_for_physicell import *
options_for_figure4_movie = {}
options_for_figure4_movie = {"output_plot" : True,
"show_plot" : False,
"produce_for_panel" : False,
"plot_ECM_anisotropy" : True,
"plot_ECM_orientation" : True,
"plot_ECM_density" : True,
"retrieve_ECM_data": True,
"load_full_physicell_data" : True,
"plot_cells_from_SVG" : True,
"load_SVG_data": True,
'plot_cells_from_physicell_data': False,
"produce_for_movie" : True,
"contour_options" : {'lowest_contour': 0.0, ### I woud like this to be cleaner - but it does work!!!
'upper_contour': 1.0,
'number_of_levels': 25,
'color_map_name': 'YlOrRd',
'color_bar': True,
'alpha': 0.5
},
}
movie_options_for_figure_4 = {}
movie_options_for_figure_4 = {'INCLUDE_ALL_SVGs': True,
'INCLUDE_FULL_HISTORY': False
}
#### Right now, if you don't have None or the full contour and quiver options, it will break in the plotting .
mf = PhysiCellPlotter()
mf.produce_movie(save_name='multi_color_movie', trail_length=6, movie_options=movie_options_for_figure_4, image_options=options_for_figure4_movie)
# generic_plotter (start, intervnal, finish, save_filename, data_path, save_path, options)
#
# All based on options/logic- function
# load_cell_positiondata
# load_uE_data_chemical
# load_uE_data_ECM
#
# process data into plots - functions
# - cell tracks (might be loaded by just be plotted???)
# - cell positions
# - ECM layer
# - chemical layer
#
# complete plot presentaiont and save (maybe functions)
# - title
# - axes