ecell / ecell4

An integrated software environment for multi-algorithm, multi-timescale, multi-spatial-representation simulation of various cellular phenomena
https://ecell4.e-cell.org/
GNU General Public License v3.0
17 stars 9 forks source link

Refactor multiple plot functions #37

Closed kaizu closed 4 years ago

kaizu commented 8 years ago

viz module supports multiple plot functions such as:

>>> dir(viz)
[...
 'plot_dense_array',
 'plot_movie',
 'plot_movie2d_with_matplotlib',
 'plot_movie_of_trajectory',
 'plot_movie_of_trajectory2d_with_matplotlib',
 'plot_movie_of_trajectory_with_matplotlib',
 'plot_movie_with_attractive_mpl',
 'plot_movie_with_elegans',
 'plot_movie_with_matplotlib',
 'plot_number_observer',
 'plot_number_observer_with_matplotlib',
 'plot_number_observer_with_nya',
 'plot_trajectory',
 'plot_trajectory2d_with_matplotlib',
 'plot_trajectory_with_elegans',
 'plot_trajectory_with_matplotlib',
 'plot_world',
 'plot_world2d_with_matplotlib',
 'plot_world_with_attractive_mpl',
 'plot_world_with_elegans',
 'plot_world_with_matplotlib',
...]

Those functions have similar interface and implementation. We need to refactor the code.

kaizu commented 4 years ago

See ecell4.plotting. ecell4.util.viz would be deprecated.