Skip to content

Commit

Permalink
Change the cells to be plotted when using the butterfly plot
Browse files Browse the repository at this point in the history
  • Loading branch information
bergolho committed Apr 2, 2019
1 parent bd68722 commit 8a3c2a1
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 38 deletions.
7 changes: 4 additions & 3 deletions scripts/butterfly_plot/butterfly_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def main ():
for k in range(2):

# Iterate over each cell
for i in range(100):
for i in range(0,10000,100):

# Get the transmembrane potential from the current simulation for the current cell
if (k == 0):
Expand All @@ -209,8 +209,9 @@ def main ():
else:
plt.plot(t, vms, label="Vm", c="red", linewidth=1.0)

plt.show()
#plt.savefig("output/butterfly.pdf")
#plt.show()
plt.savefig("output/butterfly.pdf")
print("[+] Output file saved at 'output/butterfly.pdf'")


if __name__ == "__main__":
Expand Down
Binary file modified scripts/butterfly_plot/output/butterfly.pdf
Binary file not shown.
Binary file removed scripts/butterfly_plot/output/butterfly.png
Binary file not shown.
34 changes: 0 additions & 34 deletions scripts/butterfly_plot/output/cells_positions_100.vtp

This file was deleted.

34 changes: 34 additions & 0 deletions scripts/butterfly_plot/output/cells_positions_butterfly.vtp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/cell_positions_calculator/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void write_control_volumes_middle_positions_to_vtp (struct tissue *the_tissue)
vtkSmartPointer<vtkAppendPolyData> appendFilter = vtkSmartPointer<vtkAppendPolyData>::New();

// For each control volume create a sphere
for (uint32_t i = 0; i < 100; i++)
for (uint32_t i = 0; i < nv; i += 100)
//for (uint32_t i = 0; i < nv; i++)
{
printf("[main] Working on control volume %u\n",i);
Expand Down

0 comments on commit 8a3c2a1

Please sign in to comment.