New Graphviz Report interface

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

New Graphviz Report interface

Brian Matherly
Hey Everyone,

Graphviz is a very powerful graph layout program that we use for some reports. I was inspired to make a new report that uses Graphviz to generate an hourglass report. I decided to make a generic Graphviz report interface so that others can use it to make Graphviz reports. I think the long term goal would be for the existing Relationship Graph and Familylines reports to use this new interface. It should help to clean things up. Have a look:

http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042

There is obviously a lot of ways that it could be enhanced. Comments and suggestions are welcome. Or, feel free to start hacking.

~Brian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

Stéphane Charette-2
In bug report (feature request) #1194, I recently added this comment:

----------------------------------------------

"Instead, I've been thinking it might make sense to create a new
standard group of options specifically for Graphviz. The first 8
options are specific to all Graphviz graphs and not just for
FamilyLines:
1) Width
2) Height
3) DPI
4) Row spacing
5) Column spacing
6) Graph direction
7) Ratio
8) Use subgraphs
Affecting the first 5 options would be a ninth toggle switch for
metric/imperial."

----------------------------------------------

Is this basically what you've done here, is made a standard interface
for all GraphViz-based reports?

Stéphane

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

jgsack
In reply to this post by Brian Matherly
Brian Matherly wrote:

> Hey Everyone,
>
> Graphviz is a very powerful graph layout program that we use for some reports. I was inspired to make a new report that uses Graphviz to generate an hourglass report. I decided to make a generic Graphviz report interface so that others can use it to make Graphviz reports. I think the long term goal would be for the existing Relationship Graph
> and Familylines reports to use this new interface. It should help to
> clean things up. Have a look:
>
> http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042
>
> There is obviously a lot of ways that it could be enhanced. Comments and suggestions are welcome. Or, feel free to start hacking.
>

Seems to need a teeny typo-fix..


Index: ReportBase/_GraphvizReportDialog.py
===================================================================
--- ReportBase/_GraphvizReportDialog.py (revision 9042)
+++ ReportBase/_GraphvizReportDialog.py (working copy)
@@ -154,7 +154,7 @@
 #-------------------------------------------------------------------------------
 class GVDotDoc(GVDocBase):
     def close(self):
-        GVDoc.close(self)
+        GVDocBase.close(self)

         # Make sure the extension is correct
         if self.filename[-4:] != ".dot":


..otherwise, looks pretty neat to me.

Regards,
..jim

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

Brian Matherly
In reply to this post by Brian Matherly
Stephane,

Yep! That's exactly that I have in mind. But most of those still need to be implemented.

~Brian

----- Original Message ----
From: Stéphane Charette <[hidden email]>
To: Brian Matherly <[hidden email]>
Cc: [hidden email]
Sent: Sunday, September 30, 2007 12:34:35 AM
Subject: Re: [Gramps-devel] New Graphviz Report interface

In bug report (feature request) #1194, I recently added this comment:

----------------------------------------------

"Instead, I've been thinking it might make sense to create a new
standard group of options specifically for Graphviz. The first 8
options are specific to all Graphviz graphs and not just for
FamilyLines:
1) Width
2) Height
3) DPI
4) Row spacing
5) Column spacing
6) Graph direction
7) Ratio
8) Use subgraphs
Affecting the first 5 options would be a ninth toggle switch for
metric/imperial."

----------------------------------------------

Is this basically what you've done here, is made a standard interface
for all GraphViz-based reports?

Stéphane

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

Brian Matherly
In reply to this post by Brian Matherly
Thanks! Fixed.

----- Original Message ----
From: James G. Sack (jim) <[hidden email]>
To: Brian Matherly <[hidden email]>
Cc: [hidden email]
Sent: Sunday, September 30, 2007 1:12:07 AM
Subject: Re: [Gramps-devel] New Graphviz Report interface

Brian Matherly wrote:

> Hey Everyone,
>
> Graphviz is a very powerful graph layout program that we use for some reports. I was inspired to make a new report that uses Graphviz to generate an hourglass report. I decided to make a generic Graphviz report interface so that others can use it to make Graphviz reports. I think the long term goal would be for the existing Relationship Graph
> and Familylines reports to use this new interface. It should help to
> clean things up. Have a look:
>
> http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042
>
> There is obviously a lot of ways that it could be enhanced. Comments and suggestions are welcome. Or, feel free to start hacking.
>

Seems to need a teeny typo-fix..


Index: ReportBase/_GraphvizReportDialog.py
===================================================================
--- ReportBase/_GraphvizReportDialog.py (revision 9042)
+++ ReportBase/_GraphvizReportDialog.py (working copy)
@@ -154,7 +154,7 @@
 #-------------------------------------------------------------------------------
 class GVDotDoc(GVDocBase):
     def close(self):
-        GVDoc.close(self)
+        GVDocBase.close(self)

         # Make sure the extension is correct
         if self.filename[-4:] != ".dot":


..otherwise, looks pretty neat to me.

Regards,
..jim

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

jerome
In reply to this post by Brian Matherly
Hi,


By using docgen framework, hourglass report produces nice output with
currents formats (.jpg, .png, .pdf, .svg).

Thanks :)



Brian Matherly a écrit :

>
> Hey Everyone,
>
> Graphviz is a very powerful graph layout program that we use for some
> reports. I was inspired to make a new report that uses Graphviz to
> generate an hourglass report. I decided to make a generic Graphviz
> report interface so that others can use it to make Graphviz reports. I
> think the long term goal would be for the existing Relationship Graph
> and Familylines reports to use this new interface. It should help to
> clean things up. Have a look:
>
> http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042
> <http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042>
>
> There is obviously a lot of ways that it could be enhanced. Comments and
> suggestions are welcome. Or, feel free to start hacking.
>
> ~Brian
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gramps-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

Piotr Czubaszek-2
I have a question: is Hourglass only added temporarily as a way to
exploit the new graphviz interface? Because it seems to me that I can
get the same output using the Relationship graph report and then I
don't really see a point to split them into two separate reports.

Piotrek

On 10/26/07, Jérôme <[hidden email]> wrote:

> Hi,
>
>
> By using docgen framework, hourglass report produces nice output with
> currents formats (.jpg, .png, .pdf, .svg).
>
> Thanks :)
>
>
>
> Brian Matherly a écrit :
> >
> > Hey Everyone,
> >
> > Graphviz is a very powerful graph layout program that we use for some
> > reports. I was inspired to make a new report that uses Graphviz to
> > generate an hourglass report. I decided to make a generic Graphviz
> > report interface so that others can use it to make Graphviz reports. I
> > think the long term goal would be for the existing Relationship Graph
> > and Familylines reports to use this new interface. It should help to
> > clean things up. Have a look:
> >
> > http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042
> > <http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042>
> >
> > There is obviously a lot of ways that it could be enhanced. Comments and
> > suggestions are welcome. Or, feel free to start hacking.
> >
> > ~Brian
> >
> >
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Gramps-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gramps-devel
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Gramps-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

jerome
> Because it seems to me that I can get the same output using the Relationship graph report

There is Max descendants/ascendants user-options on Hourglass report,
which produces a new type of report.
I agree, user may generate new filters.

But the primary improvement is the new interface. I like it :)
thanks



Piotr Czubaszek a écrit :

> I have a question: is Hourglass only added temporarily as a way to
> exploit the new graphviz interface? Because it seems to me that I can
> get the same output using the Relationship graph report and then I
> don't really see a point to split them into two separate reports.
>
> Piotrek
>
> On 10/26/07, Jérôme <[hidden email]> wrote:
>> Hi,
>>
>>
>> By using docgen framework, hourglass report produces nice output with
>> currents formats (.jpg, .png, .pdf, .svg).
>>
>> Thanks :)
>>
>>
>>
>> Brian Matherly a écrit :
>>> Hey Everyone,
>>>
>>> Graphviz is a very powerful graph layout program that we use for some
>>> reports. I was inspired to make a new report that uses Graphviz to
>>> generate an hourglass report. I decided to make a generic Graphviz
>>> report interface so that others can use it to make Graphviz reports. I
>>> think the long term goal would be for the existing Relationship Graph
>>> and Familylines reports to use this new interface. It should help to
>>> clean things up. Have a look:
>>>
>>> http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042
>>> <http://gramps.svn.sourceforge.net/viewvc/gramps?view=rev&revision=9042>
>>>
>>> There is obviously a lot of ways that it could be enhanced. Comments and
>>> suggestions are welcome. Or, feel free to start hacking.
>>>
>>> ~Brian
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Gramps-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Gramps-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

Brian Matherly
In reply to this post by Brian Matherly
Piotr,

>I have a question: is Hourglass only added temporarily as a way to
>exploit the new graphviz interface? Because it seems to me that I can
>get the same output using the Relationship graph report and then I
>don't really see a point to split them into two separate reports.

You are correct. If someone makes a custom filter that includes ancestors and descendants of a given person, they can get pretty much the same report using the "Relationship Graph". The hourglass report would be most useful to people who are not inclined to create custom filters. Also, since the hourglass report doesn't use filters, I think you will find that it more closely respects sibling order.

I guess for the long run I would be inclined to leave it in unless people complain.

~Brian



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

jerome
Brian,


Does cairo/GTK allow this new output natives formats (gif, png, svg,
pdf) on user-dialog ?  or is it docgen framework ? or my graphviz config ?




Brian Matherly a écrit :

> Piotr,
>
>> I have a question: is Hourglass only added temporarily as a way to
>> exploit the new graphviz interface? Because it seems to me that I can
>> get the same output using the Relationship graph report and then I
>> don't really see a point to split them into two separate reports.
>
> You are correct. If someone makes a custom filter that includes ancestors and descendants of a given person, they can get pretty much the same report using the "Relationship Graph". The hourglass report would be most useful to people who are not inclined to create custom filters. Also, since the hourglass report doesn't use filters, I think you will find that it more closely respects sibling order.
>
> I guess for the long run I would be inclined to leave it in unless people complain.
>
> ~Brian
>
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: New Graphviz Report interface

Brian Matherly
In reply to this post by Brian Matherly
Jerome,

When generating Graphviz reports, all available formats are generated by the Graphviz program named "dot". The only exception is that for PDF, we use "dot" to generate a PS file, and then use ghostscript to convert it to PDF. Gramps/cairo/GTK doesn't generate any of the formats.

~Brian

----- Original Message ----
From: Jérôme <[hidden email]>
To: Brian Matherly <[hidden email]>
Cc: [hidden email]
Sent: Friday, October 26, 2007 7:50:16 AM
Subject: Re: [Gramps-devel] New Graphviz Report interface


Brian,


Does cairo/GTK allow this new output natives formats (gif, png, svg,
pdf) on user-dialog ?  or is it docgen framework ? or my graphviz
 config ?




Brian Matherly a écrit :
> Piotr,
>
>> I have a question: is Hourglass only added temporarily as a way to
>> exploit the new graphviz interface? Because it seems to me that I
 can
>> get the same output using the Relationship graph report and then I
>> don't really see a point to split them into two separate reports.
>
> You are correct. If someone makes a custom filter that includes
 ancestors and descendants of a given person, they can get pretty much the
 same report using the "Relationship Graph". The hourglass report would be
 most useful to people who are not inclined to create custom filters.
 Also, since the hourglass report doesn't use filters, I think you will
 find that it more closely respects sibling order.
>
> I guess for the long run I would be inclined to leave it in unless
 people complain.
>
> ~Brian
>
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel