Author Topic: Circle Graphs  (Read 25113 times)

0 Members and 2 Guests are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Circle Graphs
« Reply #15 on: September 03, 2010, 01:41:22 am »
I meant more like this :P


Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Circle Graphs
« Reply #16 on: September 03, 2010, 01:46:39 am »
I still like my idea ;) :P But that'd be a pretty cool thing to do.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Circle Graphs
« Reply #17 on: September 03, 2010, 01:48:19 am »
Heh if your teacher asks for an exploding graph, you know what to do ;)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Circle Graphs
« Reply #18 on: September 03, 2010, 01:54:28 am »
I meant more like this :P


yeah I know. I mean it would be much harder to draw I think, unless you make your own circle routine, which would be slower in BASIC

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Circle Graphs
« Reply #19 on: September 03, 2010, 03:30:15 pm »
I meant more like this :P


yeah I know. I mean it would be much harder to draw I think, unless you make your own circle routine, which would be slower in BASIC

Yeah, it is slow (first screenshot is original at 6MHz, second is exploded at 6MHz, third is original at 15 MHz, fourth is exploded at 15MHz):

Quote from: BASIC Code
:ZStandard
:ZInteger
:AxesOff
:Degree
:SortA L1
:DelVar BDelVar D25→E
:For(Z,1,dim(L1
:B+360L1(Z)/sum(L1→F
:25sin(F→G
:25cos(F→H
:5sin(.5(B+F→I
:5cos(.5(B+F→J
:Line(I,J,D+I,E+J
:Line(I,J,G+I,H+J
:For(θ,B,F,2
:Pt-On(I+25sin(θ),J+25cos(θ
:End
:F→B
:G→D
:H→E
:End
Generated by SourceCoder, © 2005-2010 Cemetech

Code: (SourceCoder-friendly TI-BASIC) [Select]
:ZStandard
:ZInteger
:AxesOff
:Degree
:SortA({L1}
:DelVar BDelVar D25→E
:For(Z,1,dim({L1}
:B+360{L1}(Z)/sum({L1}→F
:25sin(F→G
:25cos(F→H
:5sin(.5(B+F→I
:5cos(.5(B+F→J
:Line(I,J,D+I,E+J
:Line(I,J,G+I,H+J
:For(θ,B,F,2
:Pt-On(I+25sin(θ),J+25cos(θ
:End
:F→B
:G→D
:H→E
:End
« Last Edit: September 03, 2010, 04:13:29 pm by Deep Thought »




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Circle Graphs
« Reply #20 on: September 03, 2010, 05:46:30 pm »
That's still pretty cool though, regardless the speed :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Circle Graphs
« Reply #21 on: September 03, 2010, 05:47:16 pm »
That's still pretty cool though, regardless the speed :)

Thanks!

Actually, here's a better one ;D

EDIT: Well, meishe91, you asked for it :D
« Last Edit: September 03, 2010, 06:17:29 pm by Deep Thought »




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Circle Graphs
« Reply #22 on: September 03, 2010, 06:01:48 pm »
Actually, here's a better one ;D

EDIT: Well, meishe91, you asked for it :D

YES!!!!!!! No timer string though :P

The only thing about your exploded one is that when you get to less than ten elements in the list then the offset of the chart is really noticeable.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Circle Graphs
« Reply #23 on: September 03, 2010, 06:03:29 pm »
Yeah, the small ones are really close together because I'm not accounting for the space between the pieces, like most computer-made exploded pie charts do. They all start five pixels away from the center.




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Circle Graphs
« Reply #24 on: September 03, 2010, 06:11:16 pm »
Oh, no. I'm not talking about that. I'm talking about how if you have like {38,95,99→L1 it will look like the thirty-eight piece is sticking out further than the others.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Circle Graphs
« Reply #25 on: September 03, 2010, 06:16:01 pm »
Eh? Really?

EDIT: Oh yeah, because there's more of a bump since it's smaller, and should technically have a smaller radius.
« Last Edit: September 03, 2010, 06:16:36 pm by Deep Thought »




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Circle Graphs
« Reply #26 on: September 03, 2010, 06:19:42 pm »
Ya, that's what I thought. Just thought I'd let ya know.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Circle Graphs
« Reply #27 on: September 03, 2010, 06:21:29 pm »
Ya, that's what I thought. Just thought I'd let ya know.

Can't really do anything about it :P At least it's better than before, when I simply connected the two bars with a straight line. Fast, but not exactly pi-like pie-like.
« Last Edit: September 03, 2010, 06:21:51 pm by Deep Thought »




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Circle Graphs
« Reply #28 on: September 03, 2010, 06:29:03 pm »
What do you mean exactly?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Circle Graphs
« Reply #29 on: September 03, 2010, 06:30:36 pm »
At first, instead of having a little routine to draw the curve of each section, I just used a straight line :D It looked more like shards of glass than like an exploded pie.