Python Forum
circle node with horizontal line in python graphviz
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
circle node with horizontal line in python graphviz
#1
I'm needing to create a graph have a label with line separation horizontal from nodes. The label of nodes import from 2 columns of an Excel-File. This is my Code:
import pandas as pd
from graphviz import Digraph
t = Digraph('T', filename='treegraph.gv')
df = pd.read_excel (r'D:\graphviz\datatree.xlsx')
for index, row in df.iterrows():
t.node(str(row["NodeID"]))
i do the following:
t = Digraph('T', filename='treegraph.gv',node_attr={'shape': 'record'})
for index, row in df.iterrows():
t.node(str(row["NodeID"]),label=str(row["<f0> NodeID | <f1> Variable"]))
using ‘record’ create box but i want to create circle with horizontal line.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Node Flow Generation in Python Linenloid 0 649 Feb-21-2023, 07:09 PM
Last Post: Linenloid
  How to plot seaborn heatmap on top of a background circle SriRajesh 0 1,402 Jul-09-2022, 04:00 AM
Last Post: SriRajesh
  Python Split json into separate json based on node value CzarR 1 5,576 Jul-08-2022, 07:55 PM
Last Post: Larz60+
  drawing moving circle on line with python barrai 1 3,103 Feb-25-2022, 03:33 PM
Last Post: BashBedlam
  multi-line CMD in one-line python kucingkembar 5 3,950 Jan-01-2022, 12:45 PM
Last Post: kucingkembar
  Program to move a dot towards a circle center plumberpy 10 4,157 Dec-03-2021, 12:20 PM
Last Post: BashBedlam
  Python Networkx: Visualize an edge weight with a bubble/circle uvw 0 1,990 Sep-01-2021, 06:26 AM
Last Post: uvw
  Draw circle from GPS coords, and get GPX file? Winfried 0 2,172 Mar-29-2021, 07:19 PM
Last Post: Winfried
  how to detect horizontal dotted lines in an image using OpenCV pframe 0 4,854 Apr-15-2020, 08:53 PM
Last Post: pframe
  Pyplot and circle Reldaing 0 1,468 Apr-01-2020, 10:44 AM
Last Post: Reldaing

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020