-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_test_movies_cells_only.py
52 lines (37 loc) · 2.2 KB
/
simple_test_movies_cells_only.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
import sys
import matplotlib.pyplot as plt
sys.path.append(r'../python_imaging')
from image_processing_for_physicell import *
options_for_figure2d = {} # should be the same as 2b and 2c
options_for_figure2d = {"output_plot" : True,
"show_plot" : False,
"produce_for_panel" : False,
"plot_ECM_anisotropy" : False,
"plot_ECM_orientation" : False,
"retrieve_ECM_data": False,
"load_full_physicell_data" : False,
"plot_cells_from_SVG" : True,
"load_SVG_data": True,
'plot_cells_from_physicell_data': False,
"produce_for_movie" : True,
"quiver_options" : {"scale_quiver": False,
"mask_quiver": False}
}
movie_options_for_figure_2d = {}
movie_options_for_figure_2d = {'INCLUDE_ALL_SVGs': True,
'INCLUDE_FULL_HISTORY': True
}
#### Right now, if you don't have None or the full contour and quiver options, it will break in the plotting ... I wonder if there
#### is a better/more robust way to do it (kwargs???, lots of "trapping"??) but this will be handled later ... and I can ask Randy etc
### What is up with scaling - hum ...
# oof - I got different results on the two runs when I did and didn't scale by anistoropy ... yikes! How do I manage that!!
mf = PhysiCellPlotter()
mf.produce_movie(save_name='simple_test_cells', movie_options=movie_options_for_figure_2d, image_options=options_for_figure2d)
# mf.generic_plotter(starting_index=0, number_of_samples=1, options=options_for_figure2d, file_name='circular_ECM_w_chemical_cue_0')
# image_list_for_figure2d = [150, 417]
# options_for_figure2d['plot_ECM_orientation'] = False
# options_for_figure2d['retrieve_ECM_data'] = False
# options_for_figure2d['load_full_physicell_data'] = False
# mf.produce_movie()
# for number in image_list_for_figure2d:
# mf.generic_plotter(starting_index=0, number_of_samples=number, options=options_for_figure2d, file_name='circular_ECM_w_chemical_cue_' + str(number))