Re: [graphviz-interest] dot -> fig -> pic = annoying border line, how to remove?

Anton Shterenlikht <[email protected]> Tue, 03 Nov 2015 07:18:53 -0800 (PST)
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
>From [email protected] Tue Nov  3 13:57:08 2015
>Content-Transfer-Encoding: 7bit
>
>Anton,
>
>As I recall, .fig doesn't (or didn't) have a way to represent 
>transparency.    If it does now then this would be a reasonable 
>enhancement for graphviz.

John, thank you.

I'm not sure whether .fig are transparent or not.

However, I did some more digging.
It seems the .fig files created by
graphviz have white rectangles the
size of the whole image.
I can manually remove this rectangle
in Xfig and then I no longer have the bounding
line problem.

If I set
 bgcolor = blue
or another non-while colour, I get a filled rectangle
of the same colour in .fig.

I'm not sure it's the same as transparency issue,
perhaps not.

>I tried -Tpic directly and got:
>
>work:~$ dot -Tpic test.gv | gpic
>.lf 1 -
>.\"  Creator: graphviz version 2.39.20150720.1238 (20150720.1238)
>.\"  Title:
>.\"  save point size and font
>.nr .S \n(.s
>.nr DF \n(.f
>.lf 6
>gpic:<standard input>:12: width specified for picture with zero width
>gpic:<standard input>:12: height specified for picture with zero height
>.PS 0.000i 0.000i 1.50000 2.34722
>.\" 0 0 0 0
>.\" 0.000i 0.000i 0.000i 0.000i
>.nr 00 \n(.u
>.nf
>.nr 0x 1
>\h'0.000i'
>.sp -1
>.lf 7
>.\"  to change drawing size, multiply the width and height on the .PS 
>line above and the number on the two lines below (rounded to the nearest 
>integer) by a scale factor
>.lf 8
>.nr SF 1500
>.lf 10
>.\"  don't change anything below this line in this drawing
>.lf 11
>.\"  non-fatal run-time pic version determination, version 2
>\D't -1.000p'\h'1.000p'
>.sp -1
>.sp 0.000i+1
>.if \n(00 .fi
>.br
>.nr 0x 0
>.lf 12
>.PE
>gpic:<standard input>:12: syntax error before `.'
>gpic:<standard input>:12: giving up on this picture
>.lf 74
>.\"  restore point size and font
>.ps \n(.S
>.ft \n(DF
>
>
>Is that what you see?   I don't know pic well enough to tell you what is 
>going wrong here...

Yes, these are the errors I see.
I also don't know what's wrong.


>Is pic essential for what you are trying to do?  Or could you use pdf, 
>or svg, or eps?

yes, kind of essential.
It's a large groff document with hundreds of pic files,
some are originally from graphviz, others are
created manually in Xfig.

Many thanks

Anton
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest