read_arrays*args)[source] [edit on github]

Create a dataset from multiple arrays.

The return value defaults to a instance, but this can be changed by supplying the required class as the last argument (anything that is derived from


*args – There must be at least one argument. The number of arguments depends on the data type being read in. The supported argument types depends on the I/O backend in use (as supported by the get_column_data routine provided by the backend).



Return type:

a derived object


The following examples do not contain argument types specific to a particular I/O backend.

Create a instance from the data in the arrays x and y (taken to be the independent and dependent axes respectively):

>>> d = read_arrays(x, y)

As in the previous example, but explicitly declaring the data type:

>>> d = read_arrays(x, y,

Create a instance with the independent axes x0 and x1, and dependent axis y:

>>> d = read_arrays(x0, x1, y,