TableLayer

class pywwt.layers.TableLayer(**kwargs: Any)[source]

Bases: HasTraits

A layer where the data is stored in an Table

Attributes Summary

alt_att

The column to use for the altitude (str)

alt_type

The type of altitude (str)

alt_unit

The units to use for the altitude (Unit)

cmap

The Matplotlib colormap (matplotlib.colors.ListedColormap)

cmap_att

The column to use for the colormap (str)

cmap_vmax

The maximum level of the colormap.

cmap_vmin

The minimum level of the colormap.

color

The color of the markers (str or tuple)

coord_type

Whether to give the coordinates in spherical or rectangular coordinates

far_side_visible

Whether markers on the far side of a 3D object are visible (bool)

lat_att

The column to use for the latitude (str)

lon_att

The column to use for the longitude (str)

lon_unit

The units to use for longitude (Unit)

marker_scale

Whether the scale is defined in world or pixel coordinates (str)

marker_type

The type of marker (str)

opacity

The opacity of the markers (str)

selectable

Whether sources in the layer are selectable (bool)

size_att

The column to use for the marker size (str)

size_scale

The factor by which to scale the size of the points (float)

size_vmax

The maximum point size.

size_vmin

The minimum point size.

time_att

The column to use for time (str)

time_decay

How long a time series point takes to fade away after appearing (0 if never) (Quantity)

time_series

Whether the layer contains time series elements (bool)

x_att

The column to use for the x coordinate

xyz_unit

The units to use for the x/y/z positions

y_att

The column to use for the y coordinate

z_att

The column to use for the z coordinate

Methods Summary

remove()

Remove the layer.

update_data([table])

Update the underlying data.

Attributes Documentation

alt_att

The column to use for the altitude (str)

alt_type

The type of altitude (str)

alt_unit

The units to use for the altitude (Unit)

cmap

The Matplotlib colormap (matplotlib.colors.ListedColormap)

cmap_att

The column to use for the colormap (str)

cmap_vmax

The maximum level of the colormap. Found automagically once cmap_att is set (float)

cmap_vmin

The minimum level of the colormap. Found automagically once cmap_att is set (float)

color

The color of the markers (str or tuple)

coord_type

Whether to give the coordinates in spherical or rectangular coordinates

far_side_visible

Whether markers on the far side of a 3D object are visible (bool)

lat_att

The column to use for the latitude (str)

lon_att

The column to use for the longitude (str)

lon_unit

The units to use for longitude (Unit)

marker_scale

Whether the scale is defined in world or pixel coordinates (str)

marker_type

The type of marker (str)

opacity

The opacity of the markers (str)

selectable

Whether sources in the layer are selectable (bool)

size_att

The column to use for the marker size (str)

size_scale

The factor by which to scale the size of the points (float)

size_vmax

The maximum point size. Found automagically once size_att is set (float)

size_vmin

The minimum point size. Found automagically once size_att is set (float)

time_att

The column to use for time (str)

time_decay

How long a time series point takes to fade away after appearing (0 if never) (Quantity)

time_series

Whether the layer contains time series elements (bool)

x_att

The column to use for the x coordinate

xyz_unit

The units to use for the x/y/z positions

y_att

The column to use for the y coordinate

z_att

The column to use for the z coordinate

Methods Documentation

remove()[source]

Remove the layer.

update_data(table=None)[source]

Update the underlying data.