MakieOrg / BeautifulMakie

Web page with basic examples showing how to use makie in julia
https://beautiful.makie.org
MIT License
374 stars 27 forks source link

Example gallery-like structure to see all plots at a glance #36

Open asinghvi17 opened 1 year ago

asinghvi17 commented 1 year ago

e.g. https://texample.net does this, where you can see a preview of each example on a single page, then click on it. We used to have that in MakieGallery as well, which is still up at https://juliaplots.github.io/MakieReferenceImages/gallery !

It would be great to have something like that here, as a welcoming front page. We could also possibly incorporate the documentation example plots in here, by parsing the docs!

asinghvi17 commented 1 year ago

Here's a list of todos which should encapsulate exactly what has to happen here:

In general, examples should:

  1. Work when copy-pasted. That means that most assets should be located in the Makie monorepo, within reason, or accessed through Downloads.download.
  2. Be (mostly) backend-independent, i.e. using Makie.* instead of GLMakie.*.
  3. Not visibly call functions which affect global state, i.e., activate!, unless necessary (these should be hidden)
  4. There should be an interface where examples can declare their tags, and some autogeneration should be done, for example to show the package versions.
lazarusA commented 1 year ago

For the gallery overview I think we should follow the idea from here. Here is the issue I opened but never acted on it 😄 . As for the other points, most are already covered, I think.

asinghvi17 commented 5 months ago

DemoCards.jl should be able to do that with a few tweaks...

lazarusA commented 5 months ago

mmm... now I do have a vue component that handles the into gallery. My issue has been to get all paths and structure programmatically, maybe this could help. Or, replace it.

asinghvi17 commented 5 months ago

Oh yeah, we could definitely add a vue component style to DemoCards (it could even be done on our end so we don't have to wait for a PR there)!

I was actually looking for something like this, forgot to check BeautifulMakie :D