2,037
edits
Changes
From Gramps
no edit summary
Download [http://gramps.svn.sourceforge.net/viewvc/*checkout*/gramps/trunk/gramps2/example/gramps/example.gramps?revision=7186 example.gramps], create a new database in GRAMPS called example.grdb, and import the example.gramps data into it.
If not the case, set the active person to ''Garner, Lewis Anderson ''.
To make a descendant chart with the relationship report, choose the menu item
In the dialog, set the format to .png and chose the following in the tabs available:
[[Image:RelationshipChartAncestors.png|right|thumb|350px|An ancestor chart, click for details-'''Large file-853kb!''']]
Download and open the example.gramps file as in Example 1
Set ''Warner, Carl Thomas '' to be the active person.
Repeat the process in example 1, but choose the filter ''Ancestors of Warner, Carl Thomas'' this time. You can see the result to the right. This is already an extremely large graph. It can only be readily viewed in a good image viewer. For printing you need to resort to printing on several pages, or you need access to a large plotter.
== Example 2: A chart with ancestors, descendants and their families ==
== Example 3, Generating the graph by using the Graphviz command line tool ==
=== Preperation with GRAMPS ===
Use this only as a way to work around problems like setting the paper size.
Choose the filter you want to use, and set also as many of the other options as possible to the desired values (as explained in example 1), but the format should be "Graphviz (dot)". Click Ok. You should now have a file of type ".dot".
This file is a text file, so it can be opened in any text-editor.
=== Manual changes ===The dot file is a text file with a well explained structure, for extra info: [http://www.graphviz.org/Documentation.php www.graphviz.org] You can optimize the layout by making changes in the file. *For paper size, look around line 36-37 for two lines that define the "page" (paper size) and "size" (area of paper to use), and change these to '''some large values'''. This is important as otherwise the figure will be wrongly scaled giving bad picture quality (eg unreadable text). *You can also change the font by adding a font family. Look for the lines
node [style=filled fontsize="12"];
:and change that into eg
node [style=filled fontsize="12" fontname="Sans"];
:to use the Sans font. On the command line you will see which ttf font Graphviz finds on your PC (using the verbose flag, see below).
===Generation of the Image===Save the modified file under the name ''report.dot'', and run the command
dot -Ppng -oreport.png report.dot
This should use the graphviz "dot" tool to generate the .png file containing the report.
To see information messages (like font) use the -v flag. You can also output other image formats, eg, for jpeg with verbose output:
dot -Tjpg -oreport.jpg report.dot -v
== Troubleshooting ==