Skip to content
Prev 69517 / 398525 Next

display two pie-charts

Lars wrote:

            
pie() calls plot.new(), thus creating a new plot. Comment out the 
plot.new call and you'll have a pie() function that splats over the 
current plot.

  Suggest you copy 'pie' to something of your own:

  > clock = pie

  Then edit the 'clock' function, removing the 'plot.new' call.

  All 'pie' does is call 'polygon' with some sine and cosine trickery - 
you may be better off writing your own graphics function to do what you 
want. Reading the 'pie' code may help!

Baz