Bookshelf icon indicating copy to clipboard operation
Bookshelf copied to clipboard

Dev Module: `bs.plot` for making graphs

Open SBtree-bit opened this issue 1 year ago • 1 comments

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

SBtree-bit avatar Jun 17 '24 17:06 SBtree-bit

@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!

theogiraudet avatar Jun 17 '24 17:06 theogiraudet