Skip to main content

napari-layer-table

License: GPL v3 PyPI version napari hub Python OS tests codecov

A plugin to display a layer as a table.

This will work well with point layers. We are debugging shapes and labeled layers, come back to check on that!


This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Installation

You can install napari-layer-table via pip:

pip install napari-layer-table

To install latest development version :

pip install git+https://github.com/mapmanager/napari-layer-table.git

Using the Plugin

You can use the napari-layer-table plugin to display points layer as a table.

  • Open a napari viewer with a Points layer
  • Add the plugin to the napari viewer from Plugins menu -> Add dock widget -> napari-layer-table: Points Table
  • The selected layer is displayed in the table.
  • The table has columns for:
    • Point symbol with face color
    • Point coordinates (x,y,z)
    • If the layer has properties, they are also shown as columns

Plugin Features

  • Bi-directional selection between layer and table.
  • Bi-directional deletion between layer and table.
  • Points added to the layer are added to the table.
  • Points moved in the layer are updated in the table.
  • Multiple points selected in the layer are also selected in the table
  • Changes to face color and symbol in the layer are updated in the table.
  • Ability to sort individual columns from low to high or high to low
  • Refresh button to manually refresh the table data
  • btf button to manually bring the layer whose table data is being shown to front

Right-click for context menu to:

  • Toggle table columns on/off.
  • Toggle shift+click to add a point to the layer (no need to switch viewer mode)
  • Copy table to clipboard

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the GNU GPL v3.0 license, "napari-layer-table" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari-layer-table-0.0.12.tar.gz (57.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_layer_table-0.0.12-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

Details for the file napari-layer-table-0.0.12.tar.gz.

File metadata

  • Download URL: napari-layer-table-0.0.12.tar.gz
  • Upload date:
  • Size: 57.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for napari-layer-table-0.0.12.tar.gz
Algorithm Hash digest
SHA256 b63bdac950e18cc21339c5b6a541d65e30e3c8c68b5a0416394ad6e5d7be28f6
MD5 9ca4ec1ffe95afe7951e1fa151ca4a8a
BLAKE2b-256 ec6a8ffa986e3704980d355f042f75fc5253288df89766295713e8023546b2c3

See more details on using hashes here.

File details

Details for the file napari_layer_table-0.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_layer_table-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ce096c99fff73f1116cea6f1b20f106330f7e2699d47db1abda022a18a4e0239
MD5 1bc4a23d4ec5c2c7043a25d940e375df
BLAKE2b-256 72f1e9771c47ca75cf37ac3268d5f507657510056796d56fd9dfeda27b39b94f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page