-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Space between Node and It's label #196
Labels
Comments
Could you please show me your codes? I'll test it on my machine. |
mingrammer
added
question
Further information is requested
status/need-to-review
Need to review
labels
Jun 9, 2020
Try adding a |
@sree-cgit |
Does this help? from diagrams import Diagram, Cluster
from diagrams.custom import Custom
from diagrams.onprem.database import Druid
from diagrams.onprem.analytics import Hive
from diagrams.gcp.analytics import Bigquery
from diagrams.saas.social import Facebook
graph_attr = {
"fontsize": "60",
"compund": "True",
"splines":"spline",
}
cluster_attr = {
"fontsize": "40",
}
node_attr = {
"fontsize": "25",
"height": "10.6",
}
edge_attr = {
"minlen": "4.0",
"penwidth":"3.0",
"concentrate": "true"
}
with Diagram("Custom Architecture", show=False,
graph_attr=graph_attr, edge_attr=edge_attr, node_attr=node_attr) as diag:
with Cluster("Source", graph_attr=cluster_attr):
facebook = Facebook("\nExternal")
aol = Custom("\nAol\nLegacy", "aol.png")
with Cluster("Storage", graph_attr=cluster_attr):
druid = Druid("\nDruid")
hive = Hive("\nHive")
big_query = Bigquery("\n\nBig\nQuery")
with Cluster("Visualize", graph_attr=cluster_attr):
hue = Custom("Hue", "hue.png")
looker = Custom("MAW\nExplorer", "looker.png")
marvel = Custom("\nMarvel", "marvel.png")
[facebook, aol] >> hive >> big_query >> [looker, marvel, hue]
hive >> druid >> [looker, marvel, hue]
diag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Hi, I am trying to figure out a way to increase the space between node and it's label. I am importing custom image icon with Custom class and that made the label hide under the icon. I tried height but that didn't work. I converted the image to 256 pixes but still has the same issue
So, Is there any way to increase the space between node and label
The text was updated successfully, but these errors were encountered: