    

 ## On this page

  

 

 # get\_data

 Last update: 16.07.2025 

<a id="compolyx.plot_data.FieldDefinitionData.get_data"></a>

#### FieldDefinitionData.get\_data(visible=None, selected=None)

Get data of plot.

- **Parameters:**
    - visible: Object(s) defining visible scope
    - selected: Selected object(s) for ply-wise evaluations.
- **Returns:**Resulting n-dimensional array with plot data for each selected object. The scope of the data is evaluated identically as for get\_element\_xx functions as the intersection of 
    - data\_scope of plot
    - visible\_scope defined by visible
    - selection\_scope defined by selected

Data is returned independent of update status of plot, but only if results for the current plot configuration are available, else an empty array is returned.

Examples: : Get data for current ply-wise plot with visible scope set to element set “All\_Elements” and with ply1 and ply2 selected:

```default
&gt;&gt;&gt; data = my_plot.get_data(visible=db.active_model.element_sets['All_Elements'], selected=[ply1, ply2])

```

   
 Get data for current element-wise plot with visible scope equal to all objects visible in current scene:   
 ```default &gt;&gt;&gt; data = my_plot.get_data(visible=db.active_model.active_scene.active_set.entities) ```