-
-
Notifications
You must be signed in to change notification settings - Fork 7
Multiple plots
kojix2 edited this page Jun 16, 2020
·
5 revisions
x = Numo::DFloat.linspace(0, 10, 1001)
y1 = Numo::NMath.sin(x)
y2 = Numo::NMath.cos(x)
GR.plot([x, y1], [x, y2])
x = Numo::DFloat.linspace(0, 10, 101)
y1 = Numo::NMath.sin(x)
y2 = Numo::NMath.cos(x)
GR.plot([x, y1, spec: 'o'], [x, y2, spec: 'g+'])
GR.plot(
[x, y1, 'go'], [x, y2, 'r*'],
title: "Multiple plot example",
xlabel: "x",
ylabel: "y",
ylim: [-1.2, 1.2],
labels: ["sin(x)", "cos(x)"],
location: 11,
figsize: [8,4]
)
User's Guide
Simple, matlab-style API
- Plotting functions
- Plot attributes
- Multiple plots
- Multiple subplots
- Save Plot to a file
- Jupyter Notebook
GR Native functions
For developers