Comments (6)
Hi!
They are actually there but are being masked by the nodes.
teneto.plot.slice_plot(g_arr, nodesize=10)
Sorry about his. Will try and make some improvement so this doesn't happen again by accident (e.g. by autoscaling nodesize).
from teneto.
This is the resulting image I get
from teneto.
Thanks for prompt reply.
May I know you plot this graph?
I Tried
teneto.plot.slice_plot(g_arr, nodesize=10)
But, the compiler return an error
TypeError: slice_plot() missing 1 required positional argument: 'ax'
Amend the code to
teneto.plot.slice_plot(g_arr, nodesize=10,ax=ax)
Return an error of
AxesSubplot:xlabel='Time'
Wheras, amending the code as below
import teneto
import matplotlib.pyplot as plt
# g_arr=np.load('g_arr.npy')
plt.style.use('mpl20')
tnet = teneto.TemporalNetwork(from_array=g_arr)
ax = tnet.plot('slice_plot',nodesize=10)
ax.scatter([0,0,0], [0,1,2], s=150, color='red', zorder=50)
plt.show()
produced inconsistent node size (refer slice no 1) as below
from teneto.
Sorry, should have copy pasted what I did instead of just writing the code (incorrectly). This is what works for me
import numpy as np
import teneto
import matplotlib.pyplot as plt
fig,ax = plt.subplots(1)
g_arr=np.load('g_arr.npy')
teneto.plot.slice_plot(g_arr, ax, nodesize=10)
fig.show()
from teneto.
To fix your figure that you wrote above, you need to change:
ax.scatter([0,0,0], [0,1,2], s=150, color='red', zorder=50)
and change the size of the red scatter plots you are adding in manually
from teneto.
Thanks for the update @wiheto , really appreciate it
from teneto.
Related Issues (20)
- Closeness centrality running without interruption HOT 9
- Remove dependencies on neural-specific modules but issue a warning if a function is trying to be used that requires it HOT 21
- [Question] shortest_temporal_path HOT 6
- MemoryError while loading graph HOT 14
- Control colormap of temporal graph nodes HOT 4
- Plotting slice_plot will fail if dataframe columns in wrong order HOT 4
- Improve shortest temporal paths (speed issues) HOT 1
- [ENH] Prewhiten prior to derive_temporalnetwork
- AttributeError: module 'sqlalchemy.util' has no attribute 'dependencies' after importing TemporalNetworks() HOT 3
- wrong number of nodes from TN.N and in netshape HOT 2
- Speed up the shortest path calculation speed HOT 1
- An error: The object 'TemporalNetwork' can't import dataframe data of weighted network HOT 3
- Label node on temporalnetwork ploting HOT 1
- How to make a community slice plot HOT 2
- Calculating consensus partition in teneto HOT 2
- Possible Typo in test_communitydetection.py
- Network Properties calculation speed problem HOT 3
- Deprecated call to scipy.temporal.distance.matching
- Minor wording error in what_is_tnt.rst HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teneto.