Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot/plotter: add an example for LogScales #355

Closed
sbinet opened this issue May 3, 2017 · 4 comments
Closed

plot/plotter: add an example for LogScales #355

sbinet opened this issue May 3, 2017 · 4 comments
Assignees

Comments

@sbinet
Copy link
Member

sbinet commented May 3, 2017

we should probably add an example on how to make a plot with a nice log-scale.

@sbinet sbinet self-assigned this May 3, 2017
sbinet added a commit to sbinet-gonum/plot that referenced this issue May 3, 2017
@DavidGamba
Copy link

Should this example make it to the wiki: https://github.com/gonum/plot/wiki/Example-plots ? I usually look there for examples on what can be done, I didn't know to look for them in https://github.com/gonum/plot/tree/master/plotter

Thanks!

@sbinet
Copy link
Member Author

sbinet commented May 4, 2017

@DavidGamba perhaps a better place (rather than the plotter directory) would be godoc: https://godoc.org/github.com/gonum/plot/plotter#pkg-examples

but it's true we should have a nice gallery of plots, like https://matplotlib.org/gallery.html

I vaguely recall @ctessum talking about this at some point.
but we need:

  • a nice gallery website
  • (perhaps) a way to extract examples from gonum/plot/... and push them on this gallery
  • a way to execute and test these gallery plots.

(ah! that's #118)

@sbinet
Copy link
Member Author

sbinet commented May 4, 2017

an alternative that I use for my hplot package is to put the plot examples (together with the output image) on the README page:
https://github.com/go-hep/hep/tree/master/hplot#tiles-of-1d-histograms

  • the images are linked from the repository reference images
  • the code is automatically extracted from the ExampleFooBar function (with embedmd)

@ctessum
Copy link
Contributor

ctessum commented May 10, 2017

@DavidGamba @sbinet here is what I was talking about: https://ctessum.github.io/gonum.github.io/

It's still a little buggy but the idea is that the examples are automatically extracted from the source code, presented as full programs for people that are not familiar with how go namespaces work, and are editable/runnable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants