Object Profile

Object Profile

Compartir

http://objectprofile.com -- Object Profile is a think tank for data visualization and software execution profiling. We are reinventing the meaning of visualization data by employing smart agile visualization methods.

27/04/2018

Here is another script of the day. Today we illustrate the Sunburst visualization. Handy to represent hierarchy. The script visualizes the Pharo collection class library (Array classes vs Set classes vs Hash classes)

-=-=-=-=-=-=-=-=-=-=-=-=
p := RTPalette c3.
b := RTSunburstBuilder new.
b layout sunburstWithRadius: 100.
b
angularSpacing: 1;
radialSpacing: 5.
b shape
color: [ p first ];
if: [ :cls | '*Array*' match: cls name ] color: [ p second ];
if: [ :cls | '*Set*' match: cls name ] color: [ p third ];
if: [ :cls | '*Hash*' match: cls name ] color: [ p fourth ]
.

b explore: Collection using: .
b build.

lb := RTLegendBuilder new.
lb view: b view.
lb addText: 'Visualizing the collection Pharo collection class library'.
lb addColor: p second text: 'Array-like classes'.
lb addColor: p third text: 'Set-like classes'.
lb addColor: p fourth text: 'Hash-classes classes'.
lb build.

b view.
-=-=-=-=-=-=-=-=-=-=-=-=
More info on http://AgileVisualization.com and the Discord channel (http://pharo.org/community)

26/04/2018

Here is another script of the day. Today we show how to draw dashed arrowed line. More information on http://AgileVisualization.com

-=-=-=
v := RTView new.

sb := RTShapeBuilder new.
sb ellipse; size: 20.
sb withText.
elements := sb elementsOn: (1 to: 10).
v addAll: elements.

eb := RTEdgeBuilder new.

eb shape styledLine dashedLine arrowHead.

eb view: v.
eb connectFrom: [ :value | value // 2 ].

RTTreeLayout on: elements.
v
-=-=-=

24/04/2018

Here is another script of the day. Today we illustrate the RTLegendBuilder. It is useful to add a legend to a visualization.
-=-=-=-=-=-=-=-=-=-=-=-=
b := RTMondrian new.
b shape rectangle
width: [ :c | c numberOfVariables * 5 ];
height: .
b nodes: RTShape withAllSubclasses.
b edges connectFrom: .
b layout tree.
b normalizer
normalizeColor: using: (Array with: Color lightGray with: Color red).
b build.

lb := RTLegendBuilder new.
lb onDemand: '+Info'.
lb view: b view.

lb addText: 'System complexity view'.
lb addRectanglePolymetricWidth: 'number of methods' height: 'Line of code' box: 'a Pharo class'.
lb build.

b view
-=-=-=-=-=-=-=-=-=-=-=-=

More info on http://AgileVisualization.com and the Discord channel (http://pharo.org/community)

09/03/2018

Interaction between classes and their metaclasses. Classes are in blue, and metaclasses are in red.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
classes := Object withAllSubclasses.

b := RTMondrian new.
b shape circle
color: Color blue trans;
if: color: Color red trans.
b nodes: classes.
b shape line color: Color gray trans.
b edges moveBehind; connectToAll: .
b layout force.
b normalizer
normalizeSize: using: ;
alphaColor: 0.6.
b
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Photos from Object Profile's post 05/08/2017

Visual Navigation of Software Heritage . https://www.softwareheritage.org

Photos 18/05/2017

Method call graph of Astropy

¿Quieres que tu empresa sea el Servicio De Computación Y Electrónica mas cotizado en Santiago?
Haga clic aquí para reclamar su Entrada Patrocinada.

Teléfono

Dirección


Avenida Apoquindo 2827
Santiago