02_user_tutorials:plotting:plotting-data
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 02_user_tutorials:plotting:plotting-data [2025/12/10 13:14] – removed - external edit (Unknown date) 127.0.0.1 | 02_user_tutorials:plotting:plotting-data [2026/03/20 17:51] (current) – Tim | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~NOTOC~~ | ||
| + | {{howhard> | ||
| + | ====== Plots inside GroIMP ====== | ||
| + | |||
| + | GroIMP has the ability to visualize datasets in different plots. | ||
| + | |||
| + | |||
| + | ===== ===== | ||
| + | To learn more about datasets visit the [[02_user_tutorials: | ||
| + | |dataset tutorial]]. | ||
| + | |||
| + | |||
| + | To visualize a dataset in GroIMP the chart() function is used: | ||
| + | <code java> | ||
| + | | ||
| + | </ | ||
| + | |||
| + | in a full example like this: | ||
| + | |||
| + | <code java Plot_example.rgg> | ||
| + | module A(float len) extends Sphere(0.1) | ||
| + | { | ||
| + | {setShader(GREEN); | ||
| + | } | ||
| + | DatasetRef diagram = new DatasetRef(" | ||
| + | |||
| + | protected void init () | ||
| + | [ | ||
| + | Axiom ==> A(1); | ||
| + | { | ||
| + | diagram.setTitle(" | ||
| + | |||
| + | diagram.clear(); | ||
| + | | ||
| + | chart(diagram, | ||
| + | |||
| + | } | ||
| + | ] | ||
| + | |||
| + | public void run () | ||
| + | |||
| + | [ | ||
| + | A(x) ==> F(x) [RU(30) RH(90) A(x*0.8)] [RU(-30) RH(90) A(x*0.8)]; | ||
| + | { | ||
| + | diagram.addRow().set(0, | ||
| + | |||
| + | } | ||
| + | ] | ||
| + | |||
| + | </ | ||
