<s> """<STR_LIT>""" <EOL> import numpy as np <EOL> import numpy . testing as npt <EOL> from nitime . timeseries import TimeSeries <EOL> from nitime . analysis import CorrelationAnalyzer <EOL> from nitime . viz import drawmatrix_channels , drawgraph_channels , plot_xcorr <EOL> try : <EOL> import networkx <EOL> no_networkx = False <EOL> no_networkx_msg = '<STR_LIT>' <EOL> except ImportError as e : <EOL> no_networkx = True <EOL> no_networkx_msg = e . args [ <NUM_LIT:0> ] <EOL> roi_names = [ '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT:c>' , '<STR_LIT:d>' , '<STR_LIT:e>' , '<STR_LIT:f>' , '<STR_LIT:g>' , '<STR_LIT:h>' , '<STR_LIT:i>' , '<STR_LIT>' ] <EOL> data = np . random . rand ( <NUM_LIT:10> , <NUM_LIT> ) <EOL> T = TimeSeries ( data , sampling_interval = np . pi ) <EOL> T . metadata [ '<STR_LIT>' ] = roi_names <EOL> C = CorrelationAnalyzer ( T ) <EOL> def test_drawmatrix_channels ( ) : <EOL> fig01 = drawmatrix_channels ( C . corrcoef , roi_names , size = [ <NUM_LIT> , <NUM_LIT> ] , color_anchor = <NUM_LIT:0> ) <EOL> def test_plot_xcorr ( ) : <EOL> xc = C . xcorr_norm <EOL> fig02 = plot_xcorr ( xc , <EOL> ( ( <NUM_LIT:0> , <NUM_LIT:1> ) , <EOL> ( <NUM_LIT:2> , <NUM_LIT:3> ) ) , <EOL> line_labels = [ '<STR_LIT:a>' , '<STR_LIT:b>' ] ) <EOL> @ npt . dec . skipif ( no_networkx , no_networkx_msg ) <EOL> def test_drawgraph_channels ( ) : <EOL> fig04 = drawgraph_channels ( C . corrcoef , roi_names ) </s>
