Search Unity

Free Simple Graph Plotting Utility

Discussion in 'Scripting' started by Zaddo67, Jan 6, 2013.

  1. Zaddo67

    Zaddo67

    Joined:
    Aug 14, 2012
    Posts:
    489
    I created a simple Graph Plotting Utility to visually measure/compare values over time. This is useful for seeing whats happening in Physics models or other rapidly changing states.

    I am making this publicly available as it might save someone else a few hours creating there own graph plotter.

    The utility allows multiple graphs to be created and displayed at once. Child graphs can be added to parents so that data can be overlaid.

    A sample scene has been included to get you started.

    To use the utility:
    - Just add the Plotter prefab to your scene.
    - Call the PlotCreate function for each new graph.
    eg: PlotManager.Instance.PlotCreate("MouseX", 0, 2000, Color.green, new Vector2(100,100));
    - Call the PlotAdd function to add data to be graphed.
    eg: PlotManager.Instance.PlotAdd("MouseX", Input.mousePosition.x);

    The graphs are displayed in the OnGui of the plotter prefab.



    Download Package
     
    Last edited: Jan 6, 2013
  2. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    Cool, thank you.
     
  3. lockbox

    lockbox

    Joined:
    Feb 10, 2012
    Posts:
    519
    Thanks for sharing this! Works as advertised.

    Please check the sample scene. ;)
     
  4. Zaddo67

    Zaddo67

    Joined:
    Aug 14, 2012
    Posts:
    489
    :eek:oops: I must have built package before saving scene. A new package has been uploaded via link in original post.
     
    Last edited: Jan 10, 2013
  5. bkachmar

    bkachmar

    Joined:
    Mar 15, 2013
    Posts:
    43
    Thank you !!!
    You saved my time =)
     
  6. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,620
    That's awesome. Thanks for sharing!
     
  7. HenryStrattonFW

    HenryStrattonFW

    Joined:
    Jul 27, 2012
    Posts:
    18
    I recently thought it would be nice to have the kind of graph plotting done on wolfram-alpha bundled into a nice little unity editor extension so i don't have to fire up chrome every time i want to try and design a new curve for whatever purpose. This looks like it could be a really great start to getting me there. I look forward to trying it out. Thanks for making it available.
     
  8. sarahchong

    sarahchong

    Joined:
    Mar 11, 2014
    Posts:
    2
    Thank you so much! :)
     
  9. sarahchong

    sarahchong

    Joined:
    Mar 11, 2014
    Posts:
    2
    Hi there,

    Is there anyway I can contact you? do you have an email address? I have some enquiries on the graph that I would like to ask you :) If you don't mind can you give me your email address? This would mean a lot to me. Thank you so much!
     
  10. kadirfu

    kadirfu

    Joined:
    Oct 3, 2013
    Posts:
    6
    How do you add multiple data in different colors as indicated in the given figures?

    OK, found it. Just add a new child plot for an instantiated parent plot. Add data as in the same way you add to a parent plot.
     
    Last edited: Nov 18, 2014
  11. kInG_jUlLian_85

    kInG_jUlLian_85

    Joined:
    Dec 7, 2012
    Posts:
    5
    Really appreciate this. Thank you so much :)
     
  12. eaglespy_21

    eaglespy_21

    Joined:
    Jan 20, 2016
    Posts:
    1
    Thanks! I was looking for exactly something like this. It's surprising unity doesn't have one built in.
     
  13. insanity-interactive

    insanity-interactive

    Joined:
    Mar 11, 2015
    Posts:
    2
  14. DerDicke

    DerDicke

    Joined:
    Jun 30, 2015
    Posts:
    292
    really need something like that, even if it doesn't work in recent Unity anymore... but link is dead.
     
    AGaballo likes this.
  15. HMiri

    HMiri

    Joined:
    Sep 4, 2017
    Posts:
    3
    I cannot download this package. Could you please tell us where we can get it from?
     
    AGaballo and JonasPersson like this.