4a432c5225262f26517776aa865c4c8428d808ad,pynets/plotting/plot_graphs.py,,plot_conn_mat,#Any#Any#Any#Any#Any#Any#,17
Before Change
except RuntimeWarning:
print("Connectivity matrix too sparse for plotting...")
if len(labels) > 150:
tick_interval = int(np.around(len(labels)/50))
else:
tick_interval = int(np.around(len(labels)))
plt.axes().yaxis.set_major_locator(mticker.MultipleLocator(tick_interval))
plt.axes().xaxis.set_major_locator(mticker.MultipleLocator(tick_interval))
plt.savefig(out_path_fig, dpi=dpi_resolution)
plt.close()
After Change
with open(
pkg_resources.resource_filename("pynets", "runconfig.yaml"), "r"
) as stream:
hardcoded_params = yaml.load(stream)
try:
labeling_atlas = hardcoded_params["plotting"]["labeling_atlas"][0]
except KeyError:
print(
"ERROR: Plotting configuration not successfully extracted from"
" runconfig.yaml"
)
sys.exit(0)
stream.close()
labels = [i[0][labeling_atlas] for i in labels]
try:
plot_matrix(
conn_matrix_plt,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: dPys/PyNets
Commit Name: 4a432c5225262f26517776aa865c4c8428d808ad
Time: 2020-07-22
Author: dpisner@utexas.edu
File Name: pynets/plotting/plot_graphs.py
Class Name:
Method Name: plot_conn_mat
Project Name: azavea/raster-vision
Commit Name: 9f31fde984bac09cfcaf03639f7e86eb09e1f5d1
Time: 2017-10-06
Author: lewfish@gmail.com
File Name: src/detection/rv/commands/make_tf_record.py
Class Name:
Method Name: create_tf_example
Project Name: dPys/PyNets
Commit Name: 4a432c5225262f26517776aa865c4c8428d808ad
Time: 2020-07-22
Author: dpisner@utexas.edu
File Name: pynets/plotting/plot_graphs.py
Class Name:
Method Name: plot_community_conn_mat