This is a sample to show how Elegans.Particles works.
Click here to learn more about Elegans.
| <!DOCTYPE html> | |
| <html lang="en"> | |
| ... | |
| <script> | |
| function hover_province(var state_num){ | |
| // when hovering a state on the right map, show the chart relating to it. | |
| $("#income_graph").load("graph/"+state_num); | |
| } |
| models = [{"attributes": | |
| {"data_source":{"type":"ColumnDataSource","id":"3c6d2ed9-dcfc-4b9f-8d9b-0c26a0272ccc"} | |
| "doc":null, | |
| "id":"3c6d2ed9-dcfc-4b9f-8d9b-0c26a0272ccc" | |
| }. | |
| "type":"Glyph", | |
| "id":"3c6d2ed9-dcfc-4b9f-8d9b-0c26a0272ccc" | |
| }, | |
| {"attributes": | |
| {"column_names":["fill_color","line_color","shape","x","y"], |
| require 'plotrb' | |
| N = 1000 | |
| x_arr = NVector.linspace(0, 5 * Math::PI, N) | |
| y_arr = NMath.sin(x_arr) | |
| line = Line.new(x: x_arr, y: y_arr) do | |
| axis_titles(x: "x", y: "y") | |
| legend(title: "sin") | |
| end |
| require 'plotrb' | |
| values = [] | |
| for x in -5..5 | |
| for z in -5..5 | |
| values.push({x: x, y: (x*x+z*z)/5, z: z}) | |
| end | |
| end |
This is a sample to show how Elegans.Particles works.
Click here to learn more about Elegans.
This is a sample to show how Elegans.Line works. This shows a sample solution in the Lorenz attractor, when p=10, r=28, b=8/3.
Click here to learn more about Elegans.
This is a sample to show how Elegans.Scatter works.
Click here to learn more about Elegans.
This is a sample to show how Elegans.Wireframe works. This shows a graph of the equetion below:
Click here to learn more about Elegans.
This is a sample to show how to generate a single plot with Elegans.
Click here to learn more about Elegans.
This is a sample to show how to generate a multiple plot with Elegans.
Click here to learn more about Elegans.