Package: napari-plot
napari-plotPlugin providing support for 1d plotting in napari.This plugin is in very early stages of development and many things are still in a state of disarray. New features and bug fixes
will be coming over the coming months.Notenapari-plotprovides several custom icons and stylesheets to take advantage of theQtbackend. Since it would be a bit busy to add multiple layer lists,
I opted to include a toolbar that quickly pulls the layer list whenever requested. Simple use the toolbar to access several commonly accessed elements.UsageYou can usenapari-plotalongsidenapariwhere it is embedded as a dock widget. If using this option, controls are relegated to toolbar
where you can adjust layer properties like you would do innapari.Or as a standalone app where only one-dimensional plotting is enabled. In this mode, controls take central stage and reflectnapari'sown
behaviour where layer controls are embedded in the main application.Roadmap:This is only provisional list of features that I would like to see implemented. It barely scratches the surface of what plotting tool should cover so as soon as the basics are covered,
focus will be put towards adding more exotic features. If there are features that you certainly wish to be included,
please modify the list below or create anew issueSupport for new layer types. Layers are based onnapari'sLayer, albeit in a two-dimensional setting. Supported and planned layers:Line Layer - simple line plot.Scatter Layer - scatter plot (similar tonapari's Pointslayer).Centroids/Segments Layer - horizontal or vertical line segments.InfLine Layer - infinite horizontal or vertical lines that span over very broad range. Useful for defining regions of interest.Region Layer - infinite horizontal or vertical rectangular boxes that span over very broad range. Useful for defining regions of interest.Shapes Layer -napari'sownShapeslayerPoints Layer -napari'sownPointslayerMulti-line Layer - more efficient implementation ofLinelayer when multiple lines are necessary.Bar - horizontal and vertical barchart (TODO)Proper interactivity of each layer type (e.g. movingRegionorInfLine, adding points, etc...)Intuitive interactivity.napari-plotwill provide excellent level of interactivity with the plotted data. We plan to support several types ofToolsthat permit efficient interrogation of the data. We currently provide severalzoomandselecttools and hope to add few extras in the future.Box-zoom - standard zooming rectangle. Simplyleft-mouse + drag/releasein the canvas on region of interestHorizontal span - zoom-in only in the y-axis byCtrl + left-mouse + drag/releasein the canvas.Vertical span - span-in only in the x-axis byShift + left-mouse + drag/releasein the canvas.Rectangle select - rectangle tool allowing sub-selection of data in the canvas. Similar to theBox-zoombut without the zooming part.Polygon select - polygon tool allowing sub-selection of data in the canvas.Lasso select - lasso tool allowing sub-selection of data in the canvas.Interactive plot legendCustomizable axis visuals.Plot axis enabling customization of tick/label size and colorSupport for non-linear scaleAdd convenient plotting interface:Add.plotfunctionalityAdd.scatterfunctionalityAdd.hbarand.vbarfunctionalityAdd.imshowfunctionalityThisnapariplugin was generated withCookiecutterusing with@napari'scookiecutter-napari-plugintemplate.InstallationYou can installnapari-plotdirectly from PyPI via:pipinstallnapari-plotor from the git repo:gitclonehttps://github.com/lukasz-migas/napari-1d.gitcdnapari-1dpipinstall-e'.[all]'ContributingContributions are very welcome. Tests can be run withtox, please ensure
the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theBSD-3license,
"napari-plot" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.