You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Would it be possible to control the color of the temporal graph nodes when using tnet.plot()? For example give an array [0, 10] then the nodes color will change from light to dark from left to light. Thanks.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Other than the option of providing an array, current nodes' cmap transmits vertically within each time series, would it be possible to across the time dimension, i.e., horizontally, instead?
As you note, the cmap value only is for vertical values.
The plotting code is due for updating (it was some of the first python code I ever wrote) and I will make sure this is added at the update.
A workaround to solve the problem at the moment: the matplotlib ax object is returned from the plotting function which you can still modify. Here is an example:
import teneto
import matplotlib.pyplot as plt
# Create network object
tnet = teneto.TemporalNetwork()
# Generate some random data
tnet.generatenetwork('rand_binomial', prob=0.5, size=(3,4))
# Plot and return matplotlib axis
ax = tnet.plot('slice_plot')
# For the 1st time point (x=0) replot all nodes as red
ax.scatter([0,0,0], [0,1,2], s=100, color='red', zorder=100)
plt.show()
Is your feature request related to a problem? Please describe.
Would it be possible to control the color of the temporal graph nodes when using tnet.plot()? For example give an array [0, 10] then the nodes color will change from light to dark from left to light. Thanks.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: