Gunivers / Bookshelf

📚 Bookshelf is a modular library datapack designed to simplify complex systems in Minecraft maps. Ideal for mapmakers looking for easy-to-implement tools.
http://bookshelf.docs.gunivers.net
Mozilla Public License 2.0
39 stars 12 forks source link

Dev Module: `bs.plot` for making graphs #223

Open SBtree-bit opened 3 months ago

SBtree-bit commented 3 months ago

Usually in development, you have to deal with a lot of numbers. It would be great if there was a way to make a graph of these values to make sure everything works fine. It could have many functions, such as:

data modify bs:in plot.data.x [0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f]
data modify bs:in plot.data.y [0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f]

function #bs.plot:create_scatter <- For a scatter plot
function #bs.plot:create_line <- For a line plot
function #bs.plot:create_bar <- For a bar graph
theogiraudet commented 3 months ago

@Leirof approved ahah We had this plot in the old Bookshelf version (see the screenshots on the documentation), but we lost it during the transition from Gunivers-Lib to Bookshelf. In my opinion, this should not be a Bookshelf Dev feature but more a Bookshelf World feature. Bookshelf World is the datapack linked to the map of this repository. This map is useful to present system/demo or to test some feature that require the world, without impacting the Bookshelf Dev datapack itself.

But yeah, this could be an excellent feature to have again!