Skip to content

Commit

Permalink
added todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed Nov 16, 2023
1 parent f611576 commit 217c301
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion viziphant/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ def plot_patterns(spiketrains, patterns, circle_sizes=(3, 50, 70),
axes.yaxis.set_label_coords(-0.01, 0.5)
return axes

# TODO: add a parameter node_size
def plot_patterns_hypergraph(patterns, num_neurons=None):
"""
Hypergraph visualization of spike patterns.
Expand Down Expand Up @@ -461,7 +462,7 @@ def plot_patterns_hypergraph(patterns, num_neurons=None):
bst.rescale('ms')
patterns = cell_assembly_detection(bst, max_lag=2)
fig = viziphant.patterns.plot_patterns_hypergraph(patterns)
viziphant.patterns.plot_patterns_hypergraph(patterns)
plt.show()
"""
Expand Down
8 changes: 4 additions & 4 deletions viziphant/patterns_src/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def __init__(self, hypergraphs, title=None):
# Which color of the color map to use next
self.current_color = 1

# Size of the vertices
self.node_radius = 0.2
# Size of the vertices TODO: add as parameter
self.node_radius = .2

# Selected title of the figure
self.title = title
Expand Down Expand Up @@ -225,8 +225,8 @@ def show(self,
plot = self.dynamic_map * self.dynamic_map_edges
# Set size of the plot to a square to avoid distortions
self.plot = plot.redim.range(x=(-1, 11), y=(-1, 11))

axes = hv.render(plot, backend="matplotlib").axes[0]
# TODO: how to get axes? currently figure
axes = hv.render(plot, backend="matplotlib")
return axes

def draw_hyperedges(self,
Expand Down

0 comments on commit 217c301

Please sign in to comment.