Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,22 @@
# 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).