https://github.com/scijava/scijava-plot
Create plots in SciJava user interfaces
https://github.com/scijava/scijava-plot
Last synced: 7 months ago
JSON representation
Create plots in SciJava user interfaces
- Host: GitHub
- URL: https://github.com/scijava/scijava-plot
- Owner: scijava
- License: bsd-2-clause
- Created: 2017-07-05T11:49:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-04T01:39:07.000Z (10 months ago)
- Last Synced: 2025-04-14T13:13:59.820Z (9 months ago)
- Language: Java
- Homepage:
- Size: 112 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://github.com/scijava/scijava-plot/actions/workflows/build-main.yml)
# SciJava PlotService
UI-independent framework for creating scientific plots.
# Usage and Demos
Run the following Groovy snippet from the [Script Editor](https://github.com/scijava/script-editor):
```groovy
#@ UIService uiService
#@ PlotService plotService
plot = plotService.newXYPlot()
plot.setTitle("XY Plot")
series = plot.addXYSeries()
series.setLabel("Series 1")
series.setValues([1,2,3], [7,3,9])
uiService.show(plot)
```
Several Java demos (XY, BoxPlot, Category plots, etc.) are available in [scijava-ui-swing](https://github.com/scijava/scijava-ui-swing/tree/909e16b5cbf1b92e1d8ccce96a3521050c93174a/src/test/java/org/scijava/ui/swing/viewer/plot).