Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Graph3d: move Filter into DataGroup #3159

Merged
merged 7 commits into from
Jul 21, 2017

Conversation

wimrijnders
Copy link
Contributor

@wimrijnders wimrijnders commented Jun 11, 2017

This is the next iteration for the implementation of multi-graphs in Graph3d.

The Filter instance within Graph3d is intimately connected to the graph data,
contained in a DataGroup instance. As such, it needs to be placed within DataGroup.

A consequence of this is that, in the final case of multiple graphs, each graph can be
animated separately. I regard this as an advantage, even though it will means more
initialization for the graphs (you have to initialize each separately for an animation).

An effort has been made to decouple Graph3d and Filter as much as possible. There
are still some relationships present, but it's more bother than it's worth to dissolve these.

In addition to moving the Filter instance, the following has been done:

  • Added variable style to DataGroup
  • Moved certain data-specific methods from Graph3d to DataGroup
  • cleaned up some code and commenting

These changes have been tested with the following examples:

  • graph3d/10_styling
  • graph3d/03_filter_data
  • graph3d/04_animation

The `Filter` instance within `Graph3d` is intimately connected to the graph data,
contained in a `DataGroup` instance. As such, it needs to be placed within `DataGroup`.

A consequence of this is that, in the final case of multiple graphs, each graph can be
animation separately. I regard this as an advantage, even though it will means more
initialization for the graphs (you have to initialize each separately for an animation.

An effort has been made to decouple `Graph3d` and `Filter` as much as possible. There
are still some relationships present, but it's more bother than it's worth to dissolve these.

In addition to moving the `Filter` instance, the following has been done:

- Added variable `style` to `DataGroup`
- Moved certain data-specific methods from `Graph3d` to `DataGroup`
- cleaned up some code and commenting

These changes have been tested with the following examples:

- `graph3d/10_styling`
- `graph3d/03_filter_data`
- `graph3d/04_animation`
@yotamberk yotamberk merged commit b9aec48 into almende:develop Jul 21, 2017
@wimrijnders wimrijnders deleted the graph3dDataFiter branch July 22, 2017 05:21
primozs pushed a commit to primozs/vis that referenced this pull request Jan 3, 2019
* Graph3D: move Filter into DataGroup

The `Filter` instance within `Graph3d` is intimately connected to the graph data,
contained in a `DataGroup` instance. As such, it needs to be placed within `DataGroup`.

A consequence of this is that, in the final case of multiple graphs, each graph can be
animation separately. I regard this as an advantage, even though it will means more
initialization for the graphs (you have to initialize each separately for an animation.

An effort has been made to decouple `Graph3d` and `Filter` as much as possible. There
are still some relationships present, but it's more bother than it's worth to dissolve these.

In addition to moving the `Filter` instance, the following has been done:

- Added variable `style` to `DataGroup`
- Moved certain data-specific methods from `Graph3d` to `DataGroup`
- cleaned up some code and commenting

These changes have been tested with the following examples:

- `graph3d/10_styling`
- `graph3d/03_filter_data`
- `graph3d/04_animation`

* Add changes to filter
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants