# About creating an add on to draw graphs in p5

**URL:** <https://discourse.processing.org/t/about-creating-an-add-on-to-draw-graphs-in-p5/12613>\
**Category:** Project Guidance\
**Created:** [July 9, 2019, 8:21am UTC](https://discourse.processing.org/t/about-creating-an-add-on-to-draw-graphs-in-p5/12613 "2019-07-09T08:21:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jithin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jithin/32/122_2.png) [@Jithin](https://discourse.processing.org/u/Jithin)\
**Post date:** [July 9, 2019, 8:21am UTC](https://discourse.processing.org/t/about-creating-an-add-on-to-draw-graphs-in-p5/12613/1 "2019-07-09T08:21:45Z")

</div>

I’m thinking of creating a library for drawing graphs in p5 sketch. We may provide options like where the origin is, dimensions of the graph, width of each unit in each axes, labels, function to be plotted etc. A graph will be created with the function plotted in the sketch according to these values. Are there any other libraries that exist already for this purpose?

---

<div class="post-metadata">

**Author:** ![Tiemen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tiemen/32/5477_2.png) [@Tiemen](https://discourse.processing.org/u/Tiemen)\
**Post date:** [July 9, 2019, 9:24am UTC](https://discourse.processing.org/t/about-creating-an-add-on-to-draw-graphs-in-p5/12613/2 "2019-07-09T09:24:24Z")

</div>

A little while back @NeilTheSeal shared his program for [visualising vectors](https://discourse.processing.org/t/look-what-i-made-6-months-ago-i-had-no-javascript-experience/12350). He mentions the Graphica.js library, perhaps that’s something to look into.

---

<div class="post-metadata">

**Author:** ![NeilTheSeal](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@NeilTheSeal](https://discourse.processing.org/u/NeilTheSeal)\
**Post date:** [July 10, 2019, 3:27pm UTC](https://discourse.processing.org/t/about-creating-an-add-on-to-draw-graphs-in-p5/12613/3 "2019-07-10T15:27:58Z")

</div>

Yes, Grafica.js is on the [p5js.org](http://p5js.org) website. I use it, but it hasn’t been actively maintained for a while, so I would recommend forking the library and using it as a basis to make your own. Also, message me if you have any questions, since I’ve worked with it quite a bit.
