Skip to content

Commit

Permalink
docs: format gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Sep 24, 2024
1 parent 3631d1b commit 6e19005
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/examples/0_io/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### Import / Export
## Import / Export

These tutorials will illustrate how to load and save your data:
2 changes: 1 addition & 1 deletion docs/examples/1_plotting/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### Plotting
## Plotting

These tutorials will show you how to visualize your neurons:
11 changes: 6 additions & 5 deletions docs/examples/1_plotting/tutorial_plotting_06_cortex.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
# %%
# ## Part I: Loading and Aligning Neurons
#
# First we need to load the neurons. Here, we will take them straight from their FTP server but you can of course download them first
# and load then from disk!
# First we need to load the neurons. Here, we will take them straight from their FTP server
# but you can of course download them first and then load from disk!

import navis

Expand Down Expand Up @@ -190,7 +190,8 @@ def plot_neurons(to_plot, color="purple", axon_color="magenta", offset=500):
fig, ax = plot_neurons(nl)

# %% [markdown]
# Next, let's calculate the distribution of cable lengths:
# That looks close enough. The last bit is to add the little KDE plots for the depth-distribution of
# cable length:
#
# We're going to be cheap here and simply generate a histogram over the node positions.
# To make this representative, we should make sure that the number of nodes per unit of cable
Expand All @@ -216,12 +217,12 @@ def plot_neurons(to_plot, color="purple", axon_color="magenta", offset=500):
nodes.head()

# %%
# Now we can plot the distribution of cable lengths for the neurons of the type we're interested in:
# Now we can plot the distribution of cable lengths for our neurons:

import seaborn as sns
from mpl_toolkits.axes_grid1 import make_axes_locatable

# Plot the neurons using the function we defined earlier
# Plot the neurons again, re-using the function we defined above
fig, ax = plot_neurons(nl)

# Add a new axis to the right of the main plot
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/2_morpho/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### Morphology
## Morphology

These tutorials will show you how to analyse and manipulate your neurons' morphology:
2 changes: 1 addition & 1 deletion docs/examples/3_interfaces/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### Interfaces
## Interfaces

These tutorials cover interfaces between {{ navis }} and external tools:
2 changes: 1 addition & 1 deletion docs/examples/4_remote/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### Remote Data Sources
## Remote Data Sources

These tutorials will show you how to load data from remote data sources:
2 changes: 1 addition & 1 deletion docs/examples/5_nblast/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### NBLAST
## NBLAST

These tutorials will teach you how to run NBLASTs to compare neuron morphology.
2 changes: 1 addition & 1 deletion docs/examples/6_misc/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
### Misc
## Misc

0 comments on commit 6e19005

Please sign in to comment.