-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_test_movies_cells_and_environment_Painter.py
74 lines (55 loc) · 3.13 KB
/
simple_test_movies_cells_and_environment_Painter.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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" : 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,
'plot_cell_histogram': True,
"produce_for_movie" : True,
'cell_alpha': 0.25,
"quiver_options" : {"scale_quiver": False,
"mask_quiver": False},
"histogram_options" : {"num_bins": 40,
"vmax": 80,
"alpha_value": 1.0,
"color_bar": True,
"make_inset": True}
}
movie_options_for_figure_4 = {}
movie_options = {'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 ... 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 ...
# if histogram_options is None:
# num_bins = 40
# vmax = 100
# alpha_value = 1.0
# mf = PhysiCellPlotter()
# make_inset_flag = sys.argv[1] # just use as a string - its easier and more explicit
# if make_inset_flag == 'make_inset':
# options_for_figure2d['histogram_options']['make_inset'] = True
# elif make_inset_flag == 'dont_make_inset':
# options_for_figure2d['histogram_options']['make_inset'] = False
# mf.generic_plotter(starting_index=600, number_of_samples=1, options=options_for_figure2d, file_name='still_contour_and_cells', )
mf = PhysiCellPlotter()
mf.produce_movie(save_name='multi_color_movie', trail_length=1, movie_options=movie_options, image_options=options_for_figure2d)
# image_list_for_figure2d = []
# image_list_for_figure2d = [int(sys.argv[1]), int(sys.argv[2])]
# # image_list_for_figure2d = [150, 417]
# options_for_figure2d['plot_cell_histogram'] = False
# options_for_figure2d['plot_cells_from_SVG'] = True
# mf.generic_plotter(starting_index=699, number_of_samples=1, options=options_for_figure2d, file_name='still_cells')
# options_for_figure2d['load_full_physicell_data'] = False
# for number in image_list_for_figure2d: #### You'll have to update this in teh raw code!!!
# mf.generic_plotter(starting_index=number, number_of_samples=number, options=options_for_figure2d, file_name='still_' + str(number))