Mintoris Forum

Author Topic: Data Graphing Commands  (Read 4239 times)

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Data Graphing Commands
« on: Feb 11, 2011, 12:36 AM »
I am interested to know if anyone uses the data graphing commands.  If so please share some of your experiences here.

Jesse

  • Sr. Member
  • ****
  • Posts: 126
  • If life throws a planet at you, pull your ripcord‼
Re: Data Graphing Commands
« Reply #1 on: Feb 15, 2011, 03:14 AM »
I don't think I have…

lancegary

  • Full Member
  • ***
  • Posts: 24
Re: Data Graphing Commands
« Reply #2 on: Feb 15, 2011, 06:57 AM »
I am interested to know if anyone uses the data graphing commands.  If so please share some of your experiences here.

I haven't used these commands yet, but I fully intend to use them. Just a bit short of time at the moment…

Lance

kent

  • Jr. Member
  • **
  • Posts: 3
Re: Data Graphing Commands
« Reply #3 on: Jul 08, 2014, 02:48 AM »
As stated in my introduction post, its been 19 years since I last wrote any basic, so please don't pick too many holes in my first hours attempt.

I intend on using the data graphing command on this first little program I have written, I am thinking that these commands are perfect for this kind of program?

In the UK back in the very early 80's there was a TV program about learning basic, and one of the first programs was to learn to write something that would calculate how long it would take some fish to die in a fish tank that had a leak. The tank had 500 gallons of water and was losing one five hundredths of it remaining volume per hour. Once the water level reached 100 gallons all the fish would be dead, (at least I think that's how it went). I have changed the rules a little to allow for different water level etc. Again no poking holes at the rusty code :)

rem Fish Tank Leak

TextAlign 0
TextSize 24
TextColor 100,100,0
cls

input "Enter the Water Level",wl

input "Enter the water leak rate",lr

input "Enter death point water level",deathpoint

weeks=0
days=0
water=wl
warn=0
count=0

do
   leak=water/lr
   count=count+1
   water=water-leak
   if water<=(deathpoint+(deathpoint*.10)) and warn=0 then
      warn=1
      print "Critical reached at ";count;" hours"
   endif
loop until water<=deathpoint

print
Print "All the fish are dead in ";count;" hours."

if count>=168 then
   weeks=int(count/168)
   count=count-(weeks*168)
Endif

if count>=24 then
   days=int(count/24)
   count=count-(days*24)
Endif

print
print weeks;" weeks ";days;" days ";count;" hours"


I am guessing that the Data Graphing commands will make it easy to add a graph for this?
« Last Edit: Jul 08, 2014, 03:09 AM by kent »

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: Data Graphing Commands
« Reply #4 on: Jul 08, 2014, 03:52 AM »
You just need to store your data into an array and add a few graphics commands.

Check out Temperature Graph Demo

kent

  • Jr. Member
  • **
  • Posts: 3
Re: Data Graphing Commands
« Reply #5 on: Jul 08, 2014, 10:27 AM »
Thank you for that, downloaded, will take a look later.

draayer

  • Jr. Member
  • **
  • Posts: 4
Re: Data Graphing Commands
« Reply #6 on: Feb 12, 2016, 11:22 AM »
I am interested to know if anyone uses the data graphing commands.  If so please share some of your experiences here.

I am at this moment and the GRIand AXIS functions work good (expect that when i use axis labels the graph shifts outside the screen a bit and doesnot show the boundaries at the right side and top). I am struggling with the grapharea command, see the topic i have opened on this.

Arie