-
Notifications
You must be signed in to change notification settings - Fork 4
Improve visualization tools #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| # draw graph | ||
| _, ax = plt.subplots(figsize=(10, 10)) | ||
| nx.draw(_graph, _pos, edge_color=colors, with_labels=True, ax=ax) | ||
| _, ax = plt.subplots() |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Variable name "ax" doesn't conform to snake_case naming style Warning
| """ | ||
|
|
||
| import networkx as nx | ||
| import pandas as pd |
Check warning
Code scanning / Prospector (reported by Codacy)
Unable to import 'pandas' (import-error) Warning
| from tqdm import tqdm | ||
| from PIL import Image, ImageFont | ||
| import pandas as pd | ||
| import geopandas as gpd |
Check warning
Code scanning / Prospector (reported by Codacy)
Unable to import 'geopandas' (import-error) Warning
| from PIL import Image, ImageFont | ||
| import pandas as pd | ||
| import geopandas as gpd | ||
| import contextily as ctx |
Check warning
Code scanning / Prospector (reported by Codacy)
Unable to import 'contextily' (import-error) Warning
| # draw graph | ||
| _, ax = plt.subplots(figsize=(10, 10)) | ||
| nx.draw(_graph, _pos, edge_color=colors, with_labels=True, ax=ax) | ||
| _, ax = plt.subplots() |
Check warning
Code scanning / Pylint (reported by Codacy)
Variable name "ax" doesn't conform to snake_case naming style Warning
| title="Select the adjacency matrix file", | ||
| filetypes=[("DAT files", "*.dat")], | ||
| ) | ||
| adj = np.loadtxt(RESPONSE, skiprows=1) |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "adj" doesn't conform to UPPER_CASE naming style Warning
| RESPONSE = askopenfilename( | ||
| title="Select the coordinates file", filetypes=[("CSV files", "*.csv")] | ||
| ) | ||
| coord = pd.read_csv(RESPONSE, sep=";") |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "coord" doesn't conform to UPPER_CASE naming style Warning
| title="Select the coordinates file", filetypes=[("CSV files", "*.csv")] | ||
| ) | ||
| coord = pd.read_csv(RESPONSE, sep=";") | ||
| coord = coord.set_index("nodeId") |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "coord" doesn't conform to UPPER_CASE naming style Warning
| # df = df.set_index('time') | ||
| # # remove last column | ||
| # df = df.iloc[:,:-1] | ||
| df = pd.read_csv(RESPONSE, sep=";") |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "df" doesn't conform to UPPER_CASE naming style Warning
| ############################################ | ||
|
|
||
| adj = np.loadtxt("../examples/data/matrix.dat", skiprows=1) | ||
| n = len(adj) |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "n" doesn't conform to UPPER_CASE naming style Warning
| adj = np.loadtxt("../examples/data/matrix.dat", skiprows=1) | ||
| n = len(adj) | ||
| # read the coordinates | ||
| coord = pd.read_csv("../examples/data/coordinates.csv", sep=";") |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "coord" doesn't conform to UPPER_CASE naming style Warning
| n = len(adj) | ||
| # read the coordinates | ||
| coord = pd.read_csv("../examples/data/coordinates.csv", sep=";") | ||
| coord = coord.set_index("nodeId") |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "coord" doesn't conform to UPPER_CASE naming style Warning
| coord = pd.read_csv("../examples/data/coordinates.csv", sep=";") | ||
| coord = coord.set_index("nodeId") | ||
| # create a directed graph | ||
| G, edges, pos = create_graph_from_adj(adj, coord) |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "pos" doesn't conform to UPPER_CASE naming style Warning
| coord = pd.read_csv("../examples/data/coordinates.csv", sep=";") | ||
| coord = coord.set_index("nodeId") | ||
| # create a directed graph | ||
| G, edges, pos = create_graph_from_adj(adj, coord) |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "edges" doesn't conform to UPPER_CASE naming style Warning
gifter.pyscript for generic networks #213