The Workspace in Detail

As it has been seen in A Quick Presentation of the Tulip Perspective, the workspace is where all the visualization views, or panels, take place.

Manage the panels

When working on Tulip, you will need several panels to see all the information you need. In order to easily compare or sort your results, you can find at the bottom of the workspace a toolbar containing three groups of buttons :

  • icon_workspace_macros: here, only the first button, Expose, requires our attention. Clicking on it allows us to see icons representing every panel currently open.
_images/i_workspace_expose.png

You can then double-click on a panel icon to open it, click on the cross in the top-right corner of the icon to delete it, or click again on the Expose button to return to the previously selected view.

  • icon_panel_arrow: You can simply change the currently displayed panels by clicking on the arrows.
  • icon_panels: These icons appear depending of the number of opened panels. Clicking on one of those change the tiling of the workspace according to the icon.
_images/i_workspace_6panels.png

In the title bar of a workspace panel, you will find different buttons:

  • icon_list_graph: Clicking on this button will display a list of opened graphs. The name of the current one is displayed using a bold font. Choosing an other graph will modify the current panel and update the visualized information.
  • icon_unlink: When this icon is displayed, it indicates that the selection of the current graph in this workspace panel, is not synchronized with the selection of the active graph in the Graphs panel. Clicking on the button displaying this icon will enable the synchronization.
  • icon_link: When this icon is displayed, it indicates that the selection of the current graph in this workspace panel, is synchronized with the selection of the active graph in the Graphs panel. This means that when selecting a graph in the Graphs panel, it will be automatically the current one in this workspace panel if it is the active panel. Clicking on the button displaying this icon will disable the synchronization.
  • icon_move_panel: When using the tiled display, you can press on this icon to move a panel and exchange its place with the one of another displayed panel.
  • icon_close_panel: Clicking on this icon will delete the current panel.

The title bar of the currently active workspace panel is highlited with a top green line.

The creation of panels have already been presented in the previous section. Consult Workspace view for more information.

Spreadsheet view

This panel displays the properties of the nodes and edges of the graph.

_images/i_workspace-spreadsheet.png

Main window

Properties are an important concept in Tulip, they are used to store information about each node and edge. By convention, the properties used by the rendering engine begin with the “view” prefix but it is possible to define an unlimited number of additional properties to your convenience.

Here is the list of all the rendering properties (e: used with edges, n: used with nodes):

  • viewBorderColor: border color (e/n).
  • viewBorderWidth: border width (e/n).
  • viewColor: color (e/n).
  • viewFont: font used to render the label (e/n).
  • viewFontSize: font size of the label (e/n).
  • viewLabel: label (e/n).
  • viewLabelColor: label color (e/n).
  • viewLabelPosition: label position (center, top, bottom, left, right) (e/n).
  • viewLayout: position (x,y,z) of a node, or vector of the bends positions of an edge (e/n).
  • viewMetric: property used by the algorithms (e/n).
  • viewRotation: rotation (n)
  • viewSelection: true if the element is selected, false if not (e/n).
  • viewShape: shape of a node (circle, square, cube, sphere...) or an edge (Bezier curve, polyline...) (e/n).
  • viewSize: size of a node (height, width, depth) and for an edge, the width at source, width at end, and arrow size. The edge size interpolation must be disabled for this property to be consider (e/n).
  • viewSrcAnchorShape: shape of the source anchor of the edge. For this setting to take effect, the option Show arrow must be enabled (e).
  • viewSrcAnchorSize: size (along the x, y, z axis) of the source anchor (e).
  • viewTexture: texture, an image file, to replace the color (e/n).
  • viewTgtAnchorShape: size (along the x, y, z axis) of the target anchor (e).
  • viewTgtAnchorSize: size (along the x, y, z axis) of the target anchor (e).

The spreadsheet view allows you to select the elements you want to watch by choosing Nodes or Edges in the Show combo box. A filter is available to pick elements depending of their selection in the node link diagram, or to match a given pattern in a specific column. The set of displayed columns can be restricted to those whose the name matches a given pattern.

The value stored in the table can be modified by several ways. A double click on one of the cells will offers to enter the value for one property and one element (edge or node). A right click in one of the cells opens the following menu :

_images/i_workspace_rclick_elements.png

Two types of action can be done, the ones concerning the property values and the ones concerning the selection of the element. The property values can be set for all nodes or edges (having the property or belonging to the current graph), the ones selected (where viewSelection = true) or the ones corresponding to the highlighted rows (current element and the ones clicked on while maintaining Ctrl pushed). The values of the current property (corresponding to the current cell column) can also be copied into viewLabel in order to display them in the graph.

A right click in the column header will open the following menu :

_images/i_workspace_rclick_header.png

The first set of actions in that menu allows to add a new property or to manage the current property; the Copy action allows to copy the property values into an already existing property or a new one, the Delete and Rename actions cannot be applied to “view” prefixed properties. As for the previous contextual menu, the second set allows to manage the property values.

Properties

In the top right of the panel, you can find the tab Properties.

_images/i_workspace_properties.png

Here you can manage the properties. The eye-shaped check boxes make visible/not visible the properties in the table in the main window. The [+ Add new] button allows to create new properties.

A right click will open a contextual menu :

_images/i_workspace_rclick_properties.png

The first menu actions allows to create new properties (same as [+ Add new] button) and to Copy, Delete or Rename existing ones. As for the previous menus, the second set of actions allows to manage the property values.

Adjacency matrix view

This view gives you a general glimpse of the adjacency matrix of your graph.

_images/i_adjacency_matrix.png

Settings

By clicking on the tab in the top right corner, you can open the display settings panel.

_images/i_adjacency_settings.png

Several parameters such as the background color, the node ordering, the grid or edges visibility can be customized.

Geographic view

_images/i_geographic_main.png

Map modes

The geographic view provides six differents map modes. You can switch between them by clicking on the button in the top left corner. Test them in order to customize the visualization background to your need.

  • Roadmap:
_images/i_geographic_main_roadmap.png
  • Satellite:
_images/i_geographic_main_satellite.png
  • Terrain:
_images/i_geographic_main_terrain.png
  • Hybrid:
_images/i_geographic_main_hybrid.png
  • Polygon:
_images/i_geographic_main_polygon.png
  • Globe:
_images/i_geographic_main_globe.png

Toolbar

The tools available in this view represent a subset of those introduced in the Node-Link Diagram view earlier. You can recall the following:

  • icon_wst_navigate_graph: navigate in graph.
  • icon_wst_get_edit_info: get/edit node or edge information.
  • icon_wst_select_rect: select nodes/edges in a rectangle.
  • icon_wst_move_reshape: move/reshape rectangle selection.
  • icon_wst_add_nodes_edges: add nodes/edges.
  • icon_wst_edit_edge_bends: edit edges bends.

Otherwise, the toolbar should be used as usual, the left side containing the tool definition and the instructions on how to use it, whereas the rightside display a list of all the opened graphs. Just click on one to load it in the concerned view.

Geolocation

_images/i_geographic_geoloc.png

A geolocation tool has been embedded in the view, exploiting the Google Maps web service. It can appropriatly place the nodes on the map.

You can choose among two methods to place the elements, either by providing a valid address for each node, stored in a property you will select, or by using the already computed latitude and longitude values, each contained in their respective properties.

The previous Europe map snapshots, for example, have been build in such a way, by giving to each node a city name.

Once the service is being queried, you will have to specify the corresponding town/address for the ambiguous choices. You can choose to keep the result values obtained in latitude/longitude properties to ease a possible next use of your data.

The node placement should be instantaneous otherwise, close and reopen the view to update the new layout.

Options

_images/i_geographic_options.png

The polygon map shape can be switched to your convenience with another one. Choose if you want to use the default shape, or a new one imported through a csv or a poly file. The help button displays additional information about the file format and the available source addresses.

Scene

The settings displayed in this panel are completely similar to the ones in the Node-Link Diagram’s scene rendering panel. Report to the Scene dedicated section if you need additional information.

Layers

As for the scene panel, the layers settings behave like the one in the Node Link Diagram view. More information Layers dedicated section.

Histogram view

To illustrate the use of this view, we need an example. You can create one by importing a new grid approximation with 500 nodes and a maximum degree of 40. You then add two new properties using the spreadsheet view (use the Add property button in the Properties tab): Degree and Betweenness Centrality. Then, use the appropriate algorithms to fill the properties with the needed information. A pre configured document can be found here.

Upon opening the file, you will find something similar to the following screenshot:

_images/i_histogram_main.png

The view displays several histograms at the same time, double clicking onto one of them make the view to focus on it:

_images/i_histogram_main1.png

When creating the example yourself, a few additional steps must be followed in order to obtain such result, let us see how to do so.

Properties

In a similar way to what we have seen before, you can find tabs in the top right corner offering further options:

_images/i_histogram_properties.png

In this panel, you can select the properties you are interested in. The nodes or edges presenting identical features will then be grouped, creating one new histogram for each property selected. This panel is only available when you are in the view presenting every histogram, the fields will be disabled otherwise.

Options

The second tab offers options to customize the histogram. It can only be used when viewing a specific histogram :

_images/i_histogram_options.png

These settings will alter the initial histogram by customizing the discrete intervals used.

  • Background color: changes the background color.
  • Uniform quantification: adapts the intervals on the X axis to obtain a uniform quantification on the Y axis.
  • Cumulative frequencies histogram: cumulates the values obtained from one interval to the next.
  • Number of histogram bins: controls in how many intervals the X axis repartition is distributed.
  • Resulting bin width: indicates the width of the small intervals on the X axis.
  • Show graph edges above histogram: displays the edges existing between each bin.
  • X axis - tick count: indicates the number of tick marks displayed along the X axis
  • X axis - use custom range: indicates a specific range of values along the X axis
  • X axis - use log scale: applies a logarithm scale on the X axis.
  • Y axis - tick step: indicates the step between 2 tick marks along the Y axis
  • Y axis - use custom range: indicates a specific range of values along the Y axis
  • Y axis - use log scale: applies a logarithm scale on the Y axis.

Toolbar

The view provides two exclusive tools, only available when viewing a sole histogram:

  • icon_his_statistics: The statistics tool displays augmented markings above the histogram. A few customization can be done in the settings:

    _images/i_histogram_statistics.png
    • Mean and standard deviation: Tulip computes the mean and the standard deviation and displays these values on the histogram.
    • Select nodes in range: choose the lower and upper bound and select the nodes in between.
    • Density estimation: Tulip will display a curve representing the distribution according to a given function (Uniform, Gaussian, Triangle, Epanechnikov, Quartic, Cubic or Cosine).

    Do not forget to click on Apply to commit your changes.

  • icon_his_metric_mapping: this interactor allows to perform a metric mapping on nodes colors, nodes borders colors, nodes sizes, nodes borders widths or nodes glyphs in a visual way. To select the mapping type, do a right click on the scale located at the left of the histogram vertical axis and pick the one wanted in the popup menu which appears.

    _images/i_histogram_mappingtype.png

    To configure the metric mapping, double click on the scale located at the left of the histogram vertical axis and use the dialog which appears. More detailed instructions about the tool configuration can be found in the tool documentation panel.

Parallel coordinates view

To present this view, we will use a dataset containing car specifications such as the city and highway autonomy, the engine displacement, the retail price, the physical dimensions... This document can be opened in Tulip as a project, available here, or can be imported with the original CSV file. The original file can be found on this site.

More information about the CSV import tool and mechanism can be found in the section CSV Import.

_images/i_parallel_main.png

Once the view is created, you will need to specify the properties you want to compare, to do so, use the Properties tab.

Properties

This panel provides the list of properties which can be analyzed, in the previous example, we choose the three shown in the following screenshot:

_images/i_parallel_properties.png

You can specify whether you want to use nodes or edges, but also, you can sort the properties according to your needs.

Draw

The second tab displays advanced options to customize the drawing of the view:

_images/i_parallel_draw.png
  • General draw parameters: set the background color and the height of the axis
  • Lines colors alpha values: select whether you want to use the usual viewColor property or new one, common for each node.
  • Draw nodes on axis: enable the nodes (and their labels) to be displayed or not
  • viewSize Mapping configuration: specify the minimum and maximum axis node sizes
  • Apply texture on lines: select your own texture or choose the one provided by default.

Toolbar

The parallel coordinates view provides a few exclusive tools which can be used to manipulate the axis and to highlight the correspondance between the properties:

  • icon_par_axis_box_plot: axis boxplot
  • icon_par_axis_sliders: axis sliders
  • icon_par_axis_swapper: axis swapper
  • icon_par_highlight_elements: highlight elements
  • icon_par_modify_space_axis: modify spaces between consecutive axis

Further information about each of these tools can be found in their own help/configuration panel.

Special menus

A right click anywhere but on the axis in the view will display the standard contextual menu seen before but with additional options related to the current view. Two items, View Setup and Options, are available:

  • View Setup:

    _images/i_parallel_main_rightclick.png
    • Layout type: choose between the classic layout, where the axis are disposed in parallel, and the circular layout, where the axis are spread regularly over the radius of a circle.
    • Lines type: switch between the classic straight lines and the curved Catmull-Rom Spline.
    • Lines thickness: proposed to map the lines to the viewSize property or use a standard thin line.
  • Options: the sole option Tooltips allows to display directly some information like the id of the hovered node.

When you perform a right click on one of the axis, Tulip proposes to either Remove [the] axis or to enter a configuration panel:

_images/i_parallel_main_axis_conf.png

Here you will be able to specify, among others, the number of tick marks, the axis order and the use of a logarithm scale.

Pixel oriented view

The pixel oriented view gives you four different solutions to sort your nodes depending of the values on a given property. To illustrate its use and its capabilities, we will use the dataset introduced previously, which can be downloaded here in its Tulip project form, or here, in its CSV form.

_images/i_pixel_main.png

Properties

In order to use this view, you have to choose first the properties you want to analyze. To do so, open the Properties panel and select the appropriate data:

_images/i_pixel_properties.png

Pixel oriented tools usually exploit a layout algorithm, moving the nodes into a specific configuration, following a space-filling curve, and ordering them according to one of the properties. The second parameter will be used to perform a color mapping, similar to the one shown in our example, aiming at underlining the correlation between the two properties.

Options

This second tab proposes to choose among four space-filling curve implementations.

_images/i_pixel_options.png

The nodes disposition will be arranged to match the chosen representation.

Scatter plot 2D view

The pixel oriented and the parallel coordinates views both aim to underline the correlation between two properties, the first one by displaying a tendency noticable with a coloration, and the second one by showing the relation between two properties for the same element.

The scatterplot view can be used in a similar way. As a list of properties is selected, a plot for each couple of distinct properties will be created.

_images/i_scatterplot_main.png

The data distribution allows to visually estimate and to formally compute a correlation coefficient.

Properties

The Properties tab works like in the previously presented view. You have to select a list of properties to analyze. You can sort them with the upwards and downwards arrows on the right.

_images/i_scatterplot_properties.png

Options

_images/i_scatterplot_options.png

In this tab, you can select the scene and the scatterplots background color. By default, the second one uses a color scale to indicate whether the plot correlation coefficient detects a link between the two current properties or not. You can customize the colorscale with a click on the -1, 0 and 1 buttons to specify which color to use for each value.

The size mapping options will adapt the size rendering in the plots depending on the initial node size.

The next check box allow to display the edges above the scatterplot.

Then you can customize the range of values to display along the X/Y axes.

In the end, by performing different mapping types on different properties, you can estimate the correlation between up to four properties (two depending of the plot axis, one with a color mapping and a last one with a size mapping).

Self Organizing Map view

As explain in the scatterplot view, we are blocked by the number of perceptible dimensions and the existing mapping when we are looking for a correlation between several properties.

This is where the SOM view comes to our help.

_images/i_som_main.png

The self organizing map (or Kohonen map) is useful to visualize high-dimensional data in a low-dimensional representation.

Dimensions

_images/i_som_dimensions.png

In a similar way to what we have already performed with the pixel oriented tool or with the scatterplot 2D view, the panel called Dimensions can allow you to select the properties to use for building the self organizing maps.

Options

_images/i_som_options.png

Beside offering the capability to work on high-dimensionnal data, the self organizing maps are able to use competitive learning.

Example: Coloring a graph

We can apply some of these new knowledges to a small example aiming at coloring a graph. First we need to open the panels Node Link Diagram and Spreadsheet View, presented earlier in this chapter. To do so :

  • Create a random graph by clicking on icon_import. The default Grid Approximation, under the Graph category will be fine.

    _images/tutorial_color-graph_grey.png
  • By default, new Spreadsheet and Node Link Diagram panels will automatically open upon each graph import. If you are using a previously created graph, you can open these by clicking on icon_add or icon_addsmall Add panel and selecting the appropriate panel types.

  • In the algorithm panel, search under the category Measure, subcategory Graph, the Betweenness Centrality button.

  • Before launching it, check the settings by clicking on the gear on the left of the icon. The parameters should appear as follows:

    tutorial_color-betweeness_settings

Once those are correctly set, you can launch the algorithm.

  • In the spreadsheet view, you can notice that the viewMetric column values have changed.
  • In the algorithms, under the category Coloring, find the Color Mapping. The parameters should be viewMetric in the input property, a linear progression, the nodes as target and any color scale. The computed colors must be sored into the viewColor property. Once everything is set, you can launch the color mapping.
  • Now, we just have to enable the edge color interpolation by clicking on icon_wsm_edge_color_interpol_dis in the Node Link Diagram panel.
  • The result should be similar to:
_images/tutorial_color-graph_color.png
  • You can use different color scale to identify easily the progression, here is two examples using 7 and 13 custom colors instead of the 5 by default :

tutorial_color-graph_color2 tutorial_color-graph_color3

  • Let us try now to modify the labels. In the algorithms, under the category Measure, subcategory Misc, select the Id button. The computed measure values must be stored into the viewMetric property.
  • In the Spreadsheet view, perform a right click on the viewMetric column and select To labels of → All nodes.
  • Back in the Node Link Diagram panel, you should now obtain a graph similar to this:
_images/tutorial_color-graph_label.png

If you do not see the labels, verify the parameters in the tab Scene or that the button icon_wsm_label_visible_dis is not toggled.

  • From here, you can redo a Color Mapping. By selecting viewMetric or viewLabel as the source, you will obtained a coloration following the Id of the nodes.

Do not hesitate to try different combinations of algorithm to further discover the application.

Complements about the workspace

We have said a few words about the toolbar located at the bottom of the workspace in:ref:workspace_panel but we have not yet explained the use of the buttons 2 and 3: Search and Python.

Python REPL

_images/i_workspace_python.png

The Python REPL console provides an interactive mean to inspect/manage your data. Consult the Python documentation for more information.