vis.graph_view — Graph Visualization¶
The vis.graph_view module supports visualization of candidate graph
objects, nodes, and edges. This is basic visualization functionality
that is monkey patched in to the graph objects. This is not intended to be
low level diagnostic visualization
New in version 0.1.0.
- autocnet.vis.graph_view.cluster_plot(graph, ax=None, cmap='Spectral')[source]¶
- Parameters
graph (object) – A networkX or derived graph object
ax (object) – A MatPlotLib axes object
cmap (str) – A MatPlotLib color map string. Default ‘Spectral’
- Returns
ax – A MatPlotLib axes object that was either passed in or a new axes object
- Return type
object
- autocnet.vis.graph_view.plot_edge(edge, ax=None, clean_keys=[], image_space=100, downsampling=1, scatter_kwargs={}, line_kwargs={}, image_kwargs={})[source]¶
Plot the correspondences for a given edge
- Parameters
edge (object) – A graph edge object
ax (object) – A MatPlotLIb axes object
clean_keys (list) – of strings of masking array names to apply
image_space (int) – The number of pixels to insert between the images
downsample (bool) –
scatter_kwargs (dict) – of MatPlotLib arguments to be applied to the scatter plots
line_kwargs (dict) – of MatPlotLib arguments to be applied to the lines connecting matches
image_kwargs (dict) – of MatPlotLib arguments to be applied to the image rendering
- Returns
ax – A MatPlotLib axes object. Either the argument passed in or a new object
- Return type
object
- autocnet.vis.graph_view.plot_graph(graph, ax=None, cmap='Spectral', labels=False, font_size=12, clusters=None, **kwargs)[source]¶
- Parameters
graph (object) – A networkX or derived graph object
ax (objext) – A MatPlotLib axes object
cmap (str) – A MatPlotLib color map string. Default ‘Spectral’
- Returns
ax – A MatPlotLib axes object. Either the argument passed in or a new object
- Return type
object
- autocnet.vis.graph_view.plot_node(node, ax=None, clean_keys=[], index_mask=None, downsampling=1, **kwargs)[source]¶
Plot the array and keypoints for a given node.
- Parameters
node (object) – A Node object from which data is extracted
ax (object) – A MatPlotLIb axes object
clean_keys (list) – of strings of masking array names to apply
kwargs (dict) – of MatPlotLib plotting options
- Returns
ax – A MatPlotLib axes object. Either the argument passed in or a new object
- Return type
object