-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
691 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Draw Annotations | ||
================ | ||
|
||
draw annotations like stimulation points, samplings point or synapses. | ||
|
||
- :download:`simple.swc<../tests/simple.swc>` | ||
|
||
|
||
Draw marks | ||
---------- | ||
.. code-block:: python | ||
import swc2vtk | ||
vtkgen = swc2vtk.VtkGenerator() | ||
vtkgen.add_swc('simple.swc') | ||
vtkgen.add_mark((1.0, 1.0, 1.0), size=0.5) | ||
vtkgen.write_vtk('simple.vtk') | ||
vtkgen.write_annotation_vtk('simple_mark.vtk') | ||
.. image:: _static/simple_annotation1.png | ||
|
||
Draw SWC compartment marks | ||
-------------------------- | ||
.. code-block:: python | ||
import swc2vtk | ||
vtkgen = swc2vtk.VtkGenerator() | ||
vtkgen.add_swc('simple.swc') | ||
vtkgen.add_swc_mark(0, 2, size=0.5) | ||
vtkgen.write_vtk('simple.vtk') | ||
vtkgen.write_annotation_vtk('simple_swc_mark.vtk') | ||
.. image:: _static/simple_annotation2.png | ||
|
||
|
||
Draw Synapses | ||
------------- | ||
|
||
.. code-block:: python | ||
import swc2vtk | ||
vtkgen = swc2vtk.VtkGenerator() | ||
vtkgen.add_swc('simple.swc') | ||
vtkgen.add_swc('simple.swc', shift_y=30) | ||
vtkgen.add_swc_connection(0, 2, 1, 1, size=0.5, data=2) | ||
vtkgen.write_vtk('simple.vtk') | ||
vtkgen.write_annotation_vtk('simple_connection.vtk') | ||
.. image:: _static/simple_annotation3.png | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ Welcome to swc2vtk's documentation! | |
examples | ||
drawmode | ||
volume | ||
annotations | ||
gallery | ||
apis/modules | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Draw Annotations | ||
================ | ||
|
||
draw annotations like stimulation points, samplings point or synapses. | ||
|
||
- :download:`simple.swc<../tests/simple.swc>` | ||
|
||
|
||
Draw marks | ||
---------- | ||
.. code-block:: python | ||
import swc2vtk | ||
vtkgen = swc2vtk.VtkGenerator() | ||
vtkgen.add_swc('simple.swc') | ||
vtkgen.add_mark((1.0, 1.0, 1.0), size=0.5) | ||
vtkgen.write_vtk('simple.vtk') | ||
vtkgen.write_annotation_vtk('simple_mark.vtk') | ||
.. image:: _static/simple_annotation1.png | ||
|
||
Draw SWC compartment marks | ||
-------------------------- | ||
.. code-block:: python | ||
import swc2vtk | ||
vtkgen = swc2vtk.VtkGenerator() | ||
vtkgen.add_swc('simple.swc') | ||
vtkgen.add_swc_mark(0, 2, size=0.5) | ||
vtkgen.write_vtk('simple.vtk') | ||
vtkgen.write_annotation_vtk('simple_swc_mark.vtk') | ||
.. image:: _static/simple_annotation2.png | ||
|
||
|
||
Draw Synapses | ||
------------- | ||
|
||
.. code-block:: python | ||
import swc2vtk | ||
vtkgen = swc2vtk.VtkGenerator() | ||
vtkgen.add_swc('simple.swc') | ||
vtkgen.add_swc('simple.swc', shift_y=30) | ||
vtkgen.add_swc_connection(0, 2, 1, 1, size=0.5, data=2) | ||
vtkgen.write_vtk('simple.vtk') | ||
vtkgen.write_annotation_vtk('simple_connection.vtk') | ||
.. image:: _static/simple_annotation3.png | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ Welcome to swc2vtk's documentation! | |
examples | ||
drawmode | ||
volume | ||
annotations | ||
gallery | ||
apis/modules | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,8 @@ Quick example | |
.. image:: _static/simple.0003.png | ||
|
||
|
||
Citation | ||
Reference | ||
--------- | ||
|
||
Citation | ||
-------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.