Back to Browse

How to Change Node Shape (PyVis and Python Tutorial 05)

6.3K views
Apr 15, 2020
8:59

In this video, we learn how to change the node shape in PyVis. Here is the relevant information in the documentation: For the json file, either visit my post on pythonhumanities.com: https://pythonhumanities.com/python-and-pyvis-for-data-visualization/ Or download it directly at: https://drive.google.com/file/d/1KBxDosVMzALXkOmY9NYlV03pqiicnEtz/view "shape (str (optional)) – The shape defines what the node looks like. There are two types of nodes. One type has the label inside of it and the other type has the label underneath it. The types with the label inside of it are: 1) ellipse 2) circle 3) database 4) box 5) text The ones with the label outside of it are: 1) image 2) circularImage 3) diamond 4) dot 5) star 6) triangle 7) triangleDown 8) square 9) icon size (num (optional)) – The size is used to determine the size of node shapes that do not have the label inside of them. These shapes are: image, circularImage, diamond, dot, star, triangle, triangleDown, square and icon." (p. 10 in the docs 🠚 https://readthedocs.org/projects/pyvis/downloads/pdf/latest/) If you enjoy this video, please subscribe. I provide all my content at no cost. If you want to support my channel, please donate via PayPal: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=AZ73QW52SUX8N&currency_code=USD&source=url Patreon: https://www.patreon.com/WJBMattingly (its my www.themedievalworld.com account as well). If there's a specific video you would like to see or a tutorial series, let me know in the comments and I will try and make it. If you liked this video, check out www.PythonHumanities.com, where I have Coding Exercises, Lessons, on-site Python shells where you can experiment with code, and a text version of the material discussed here.

Download

0 formats

No download links available.

How to Change Node Shape (PyVis and Python Tutorial 05) | NatokHD