Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ndlib_Marker_Viz
Adding a Marker To Ndlib Graph Viz
Adding marker to Ndlib ComparisonViz and DiffusionViz to distinguish multiple lines and improve visual understanding.
NDlib is a Python software package that allows to describe, simulate, and study diffusion processes on complex networks. The package was design and documentation by Giulia Rossetti you can find examples, tutorials and a complete reference here ndlib.
Matplotlib Marker: a basic matplotlib Marker plot, this shows a few optional features, like defining legend labels, legend size, and maker size.
Below are some basic example plots for markers (‘*’, ‘o’ , ’v’ , ‘+’) respectively.
Assign a unique marker for each plot
Form Solution 4in StackOverflow, which answer the question of how to us unique markers for each plot in matplotlib. the solution uses ‘itertools.cycle’ to iterate over a list or tuple indefinitely which picks markers randomly for you. The answer below.
Python 2.x
Python 3.x
To find the set of All possible markers you can visit matplotlib.markers[2] in matplotlib website (https://matplotlib.org/3.1.0/api/markers_api.html).
Ndlib Graph Viz
From the documentation of Ndlib, it shown that the model uses matplotlib and bakeh to visualize the diffusion/spreading process and did a good job but Adding markers to a line can be a useful way to distinguish multiple lines or to highlight particular data points. So above solution to add unique markers to all lines.
Instead of visualizing the diffusion process like this:
It can be visualize like this: