Skip to content

Commit

Permalink
Update viewers
Browse files Browse the repository at this point in the history
  • Loading branch information
lidakanari committed Feb 8, 2018
1 parent df48cc6 commit d5ad47a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*~
*.pyc
*.egg-info
16 changes: 8 additions & 8 deletions view/advanced_plot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Plotting functions of neurontopology"""
"""Plotting functions of tmd"""

import numpy as _np
from neurontopology import Topology as _tm
from tmd import Topology as _tm
import view as _view
import common as _cm

Expand Down Expand Up @@ -469,7 +469,7 @@ def tree_instance(tree, new_fig=True, plane='xy', component_num=1, feature='radi
'''Subplot with ph, barcode
and tree within spheres
'''
from neurontopology import utils as _utils
from tmd import utils as _utils
from matplotlib.collections import LineCollection

if new_fig:
Expand Down Expand Up @@ -703,7 +703,7 @@ def tree_br(tree, plane='xy', feature='radial_distances', title='', diameter=Tru
'''Subplot with ph, barcode
and tree within spheres
'''
from neurontopology import utils as _utils
from tmd import utils as _utils
from matplotlib.collections import LineCollection

kwargs['output_path'] = kwargs.get('output_path', None)
Expand Down Expand Up @@ -748,7 +748,7 @@ def tree_gaussian_kernel(tree, plane='xy', feature='radial_distances', title='',
'''Subplot with ph, barcode
and tree within spheres
'''
from neurontopology import utils as _utils
from tmd import utils as _utils
from matplotlib.collections import LineCollection

kwargs['output_path'] = kwargs.get('output_path', None)
Expand Down Expand Up @@ -793,7 +793,7 @@ def tree_ph(tree, plane='xy', feature='radial_distances', title='', diameter=Tru
'''Subplot with ph, barcode
and tree within spheres
'''
from neurontopology import utils as _utils
from tmd import utils as _utils
from matplotlib.collections import LineCollection

kwargs['output_path'] = kwargs.get('output_path', None)
Expand Down Expand Up @@ -838,7 +838,7 @@ def tree_evol(tree, plane='xy', feature='radial_distances', title='', diameter=T
'''Subplot with ph, barcode
and tree within spheres
'''
from neurontopology import utils as _utils
from tmd import utils as _utils
from matplotlib.collections import LineCollection

kwargs['output_path'] = kwargs.get('output_path', None)
Expand Down Expand Up @@ -920,7 +920,7 @@ def plot_simple_tree(tr, plane='xy', new_fig=True, subplot=False, hadd=0.0, vadd
'''Generates a 2d figure of the tree.
'''
from matplotlib.collections import LineCollection
from neurontopology import utils as _utils
from tmd import utils as _utils

# Initialization of matplotlib figure and axes.
fig, ax = _view.common.get_figure(new_fig=new_fig, subplot=subplot)
Expand Down
8 changes: 4 additions & 4 deletions view/plot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Plotting functions of neurontopology"""
"""Plotting functions of tmd"""

import numpy as _np
from neurontopology import Topology as _tm
from tmd import Topology as _tm
import view as _view
import common as _cm

Expand Down Expand Up @@ -211,7 +211,7 @@ def tree_all(tree, plane='xy', feature='radial_distances', title='',
diameter=True, treecol='b', xlims=None, ylims=None, **kwargs):
'''Subplot with ph, barcode and tree
'''
from neurontopology import utils as _utils
from tmd import utils as _utils
from matplotlib.collections import LineCollection

kwargs['output_path'] = kwargs.get('output_path', None)
Expand Down Expand Up @@ -261,7 +261,7 @@ def neu_all(neuron, plane='xy', feature='radial_distances', title='',
'''Subplot with ph, barcode
and tree within spheres
'''
from neurontopology import utils as _utils
from tmd import utils as _utils
from matplotlib.collections import LineCollection

kwargs['output_path'] = kwargs.get('output_path', None)
Expand Down
2 changes: 1 addition & 1 deletion view/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import common as _cm
from matplotlib.collections import LineCollection as _LC
import numpy as _np
from neurontopology import utils as _utils
from tmd import utils as _utils


def _get_default(variable, **kwargs):
Expand Down

0 comments on commit d5ad47a

Please sign in to comment.