Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Need ghistogram #196

Open
BruceSherwood opened this issue Feb 23, 2019 · 0 comments
Open

Need ghistogram #196

BruceSherwood opened this issue Feb 23, 2019 · 0 comments

Comments

@BruceSherwood
Copy link
Owner

The graphing package should include a ghistogram option (in lib/glow/graph.js). This could perhaps be similar to matplotlib:

https://matplotlib.org/examples/statistics/histogram_demo_cumulative.html
n, bins, patches = ax.hist(x, n_bins, normed=1, histtype='step',
                       cumulative=True, label='Empirical')

Another possibility is the form of ghistogram in VPython 6:

https://vpython.org/contents/docs/graph.html

There is an example of making a histogram using the existing graphing options:

https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/HardSphereGas-VPython
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant