Open devankestel opened 3 years ago
Create a method for adding a label to each dot. It should take the coordinates of the dot as an (x, y) pair and an orientation of where the text should be placed in relation to the dot. e.g. above, below, left, right.
Example with drawSVG library.
# Create hyperlink hlink = Hyperlink('https://www.python.org', target='_blank', transform='skewY(-30)') # Add child elements hlink.append(draw.Circle(0,0,0.5, fill='green')) hlink.append(draw.Text('Hyperlink',0.2, 0,0, center=0.6, fill='white'))
Create a method for adding a label to each dot. It should take the coordinates of the dot as an (x, y) pair and an orientation of where the text should be placed in relation to the dot. e.g. above, below, left, right.
Example with drawSVG library.