Example 2: 2D Plots and Selection
Benzene 2D plots and selection
Add 2D plots
- On the fly
- Start ElectroLens and load the 3D view as in Example 1
- Simply press a or + to add a 2D plot
- Adjust the X, Y axis properties and scales via the option box of the plot
- Remember to click Update Plot to reflect the changes
- Pre-defined configuration file
- Go to "ElectroLens/Examples/example_configuration_files/"
- Open the "view_setp_example2.json" file with a text editor
- Go to line 8 ("dataFilename" for "spatiallyResolvedData") and change it to the full path of that file (as in example 1)
- Go to line 14 - 17 to change the X, Y axis properties and X, Y axis scales respectively
- Start ElectroLens by typing npm start
- In "Upload Configuration File" (green box), click "Choose File" and upload "view_setp_example2.json"
2D plots Customization
- Once you have the 2D plots, you can customize them via the option boxes of each plot
- Plot Setting
- Resolution - resolution of the heat map
- Update Plot - update the 2D plot. *** MUST CLICK to reflect any changes in "Plot Setting" ***
- X - X axis property
- X - X axis scale
- Y - Y axis property
- Y - Y axis scale
- Select All - select all data points
- Deselect All - deselect all data points
- View Control: change the color scheme and point sizes of the plot
Selection
To select points on the 2D plot and show the corresponding region in the 3D view
- Deselect all datapoints, the 3D view should now be blank
- In the option box of 2D plot, go to Selection and check with plane (or press 1 for shortcut)
- Drag seletion box on the 2D plot to selection datapoints
- Try with the other option: Select with brush (press 2 for shortcut)
Example 4: 2D Plots and Selection for Molecular Data
Water cluster 2D plots and selection
Add 2D plots
- On the fly
- Start ElectroLens and load the 3D view as in Example 3
- Simply press a or + to add a 2D plot
- Adjust the X, Y axis properties and scales via the option box of the plot
- Remember to click Update Plot to reflect the changes
2D plots Customization
- Once you have the 2D plots, you can customize them via the option boxes of each plot
- Plot Setting
- Resolution - resolution of the heat map
- Update Plot - update the 2D plot. *** MUST CLICK to reflect any changes in "Plot Setting" ***
- X - X axis property
- X - X axis scale
- Y - Y axis property
- Y - Y axis scale
- Select All - select all data points
- Deselect All - deselect all data points
- View Control: change the color scheme and point sizes of the plot
Selection
To select points on the 2D plot and show the corresponding region in the 3D view
- Deselect all datapoints, the 3D view should now be blank
- In the option box of 2D plot, go to Selection and check with plane (or press 1 for shortcut)
- Drag seletion box on the 2D plot to selection datapoints
- Try with the other option: Select with brush (press 2 for shortcut)