image

Custom node shapes

I would like to create and use custom shapes that can be modified with node attr. (e.g. penwidth to modify the custom node lines width) I am trying an already working example from http://rhodesmill.org/brandon/2007/a-database-symbol-for-graphviz/ to experiment and create such kind of nodes, but without much success.

Example 1, the generic example works:
$ dot -Tps2 -l DatabaseShape.ps sample.dot -o sample.ps
$ ps2pdf sample.ps sample.pdf

Example 2:
$ dot -Tps2 -l DatabaseShape.ps sample.dot -Tpng -o sample-ps.png
$ feh sample-ps.png

Help with embedding svg files

Hello everyone,

I'm trying to create a graph that has svg images embedded within it, and then output the whole thing as an svg image, and I've been running into some issues.

I'm using graphviz version 2.30.1

Here is a small example of the type of dot file that I'm creating that reproduces the problem for me.

digraph "Kegg_egfr_TEST6.dot" {
graph [bgcolor=transparent, fontcolor=black, ratio=fill, splines=TRUE, rank=same, size="6.99,6.99", rankdir=TB];
node [label="\N", shape = none, fillcolor=transparent, fontcolor=black, fontsize=16, height="1.5", width="1.0", labelloc=b];

Embed http image

Hi all,
I'm trying to insert an image in a node, but when I execute dot I get this error:
Warning: Invalid argument while opening https://www.google.it/images/srpr/logo4w.png
Warning: No or improper image="https://www.google.it/images/srpr/logo4w.png" for node "b"

The dot source is this:
digraph legend {
a [image="d:\temp\out.gif"]
b [image="https://www.google.it/images/srpr/logo4w.png"]
}

In the resulting graph I see the node with the local image correctly, but the 'b' node doesn't have any image.

I'm behind a proxy, but I don't think this is the problem.

Embed a image on the web

Hi,
I wanted to add an image that resides in the web to a node, but when I try to create my svg image dot says that:
Warning: Invalid argument while opening https://www.google.it/images/srpr/logo4w.png
Warning: No or improper image="https://www.google.it/images/srpr/logo4w.png" for node "imgnode"

This is my dot source file:
digraph G {
imgnode[image="https://www.google.it/images/srpr/logo4w.png", label=""];
imgnode2[image="D:\temp\out.gif", label=""];
}

The imgnode2 display the image correctly.

I'm behind a proxy, is it possible that this is the problem?

Data URI

Hi,
Is it possible to use the [image] tag to embed a data URI string?
i.e. simple.dot: (should display a red dot image)
 

Recent comments

Syndicate content