This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Symmetryc's profile picture

[Grapher] CC Graphing Utility

Started by Symmetryc, 04 December 2013 - 07:00 PM
Symmetryc #1
Posted 04 December 2013 - 08:00 PM
Grapher is a graphing utility in CC. It supports multiple functions, it has a nice UI, it has integrated help, and more! (Relevant info below). Please post any bugs you find with it below. (I know the buffer part is poorly coded, I just copied it from another program I made because I was fed up with debugging the graphing code :P/>)

Features:
- Supports up to 99 different functions on the same plane
- Colorful and Nice-looking UI
- In-Program Help
- Lua Math Library support
- Support for Grid Movement and Zoom

Video:
[media]https://www.youtube.com/watch?v=qc_DaSZfHYk[/media]

Download:
http://pastebin.com/F1McprVL

Enjoy!
Edited on 05 December 2013 - 03:23 PM
apemanzilla #2
Posted 04 December 2013 - 08:02 PM
Video link appears to be broken.
Symmetryc #3
Posted 04 December 2013 - 08:05 PM
Video link appears to be broken.
Hmmm that's weird, can you try it again please? What does it say in specific?
Xenthera #4
Posted 04 December 2013 - 08:07 PM
This is awesome!
Symmetryc #5
Posted 04 December 2013 - 08:11 PM
This is awesome!
Wow, thanks :)/>!
oeed #6
Posted 04 December 2013 - 10:31 PM
This is awesome, I briefly tried something like this a while back but couldn't get it to work. Well done!
theoriginalbit #7
Posted 05 December 2013 - 01:44 AM
good job, a few plots missing in the video, but looks very nice :)/>
Symmetryc #8
Posted 05 December 2013 - 08:51 AM
Thanks guys :)/>. What do you mean by some plots being gone?
Engineer #9
Posted 05 December 2013 - 10:26 AM
This really looks nice, but Im not quite sure how to use the shortcuts. Do I have to literally write ^H in a function or something? I dont get it.
Also, I wanted get into help because I couldnt get any of my graphs drawn :l
Lyqyd #10
Posted 05 December 2013 - 10:48 AM
Moved to APIs and Utilities.
Symmetryc #11
Posted 05 December 2013 - 12:42 PM
This really looks nice, but Im not quite sure how to use the shortcuts. Do I have to literally write ^H in a function or something? I dont get it.
Also, I wanted get into help because I couldnt get any of my graphs drawn :l
The "^" means Ctrl. The help that shows up when you start up the program is the same help that will show up with ^+H though. You hit enter to draw a graph. Thanks!
Symmetryc #12
Posted 06 December 2013 - 07:50 PM
I've been trying to get implicit equations to work, but I'm not really sure. Anyone math savvy who would like to join forces?
TheOddByte #13
Posted 07 December 2013 - 08:18 AM
Wow, This is really cool/awesome! +1 for this amazing work! :D/>
Wobbo #14
Posted 07 December 2013 - 08:28 AM
If you mean this: http://en.wikipedia.org/wiki/Implicit_function kind of implicit function, that looks like a constraint satisfaction problem to me. In that case, I know of some algorithms to solve this.
If that is what you meant, I would like to join forces. I know quite a bit about math as well.
Symmetryc #15
Posted 07 December 2013 - 10:18 AM
If you mean this: http://en.wikipedia....plicit_function kind of implicit function, that looks like a constraint satisfaction problem to me. In that case, I know of some algorithms to solve this.
If that is what you meant, I would like to join forces. I know quite a bit about math as well.
Yup, that's exactly what I'm talking about. Alright, I'll send you a PM :)/>.
Wobbo #16
Posted 09 December 2013 - 02:27 PM
I took some time to play with it, and noticed that ^+s is a bad combination to move around the plane, my computer keeps shutting down.

Also, it would be nice if there would be a grapher API that would display graphs on the screen. I could see a gnuplot like program that would use this as a plotting device.
theoriginalbit #17
Posted 09 December 2013 - 07:16 PM
I took some time to play with it, and noticed that ^+s is a bad combination to move around the plane, my computer keeps shutting down.
Then don't hold it in, just press it! With the way programs like this detect you pressing ^+s you could actually just press ^ then S a few milliseconds later, CC won't detect it as a 3 second hold for shutdown, but the program will still detect it.
Edited on 09 December 2013 - 06:17 PM
Symmetryc #18
Posted 09 December 2013 - 07:29 PM
I took some time to play with it, and noticed that ^+s is a bad combination to move around the plane, my computer keeps shutting down.
Then don't hold it in, just press it! With the way programs like this detect you pressing ^+s you could actually just press ^ then S a few milliseconds later, CC won't detect it as a 3 second hold for shutdown, but the program will still detect it.
I think he meant it was a bad design choice, which will be corrected in the future.
theoriginalbit #19
Posted 09 December 2013 - 08:15 PM
I think he meant it was a bad design choice, which will be corrected in the future.
I knew what he meant. I still don't think its a bad design choice.
Symmetryc #20
Posted 09 December 2013 - 09:02 PM
I think he meant it was a bad design choice, which will be corrected in the future.
I knew what he meant. I still don't think its a bad design choice.
It can be confusing for people who don't realize though, so I think I'm just going to replace it with Shift + WASD. That way people can also go into "move only mode" by hitting Caps Lock :P/>.