POV-Ray : Newsgroups : povray.general : Creating Graphs with POV-Ray : Re: Creating Graphs with POV-Ray Server Time
2 Aug 2024 04:22:41 EDT (-0400)
  Re: Creating Graphs with POV-Ray  
From: Sebastian H 
Date: 19 Jan 2005 11:50:29
Message: <41ee8fd5@news.povray.org>
Reuben Pearse schrieb:
> Hi all,
> 
> I was wondering if anyone had used POV-Ray to create graphs or charts 
> (bar graphs and pie charts). I would like to be able to automate the 
> creation graph images on a webserver. I know there are lots of graphing 
> tools out there which provide this kind of functionality (i.e. 
> ploticus), but creating graphs in POV-Ray would be so much cooler!
> 
> Thanks in advance
> 
> Reuben
> reu### [at] pearsecouk

Just do it?

In the end you have to adapt every plot script or program
to your needs anyway.

For the ticks one have to write a loop that places cylinders
or something similar along a longer cylinder which is the x-axis
for example. The same loop can be used to place number under the ticks
and so on.

For pie charts one must calculate the angles for the pieces
and do some intersection or difference operations, like

#declare piece1=
difference {
	cylinder {0, <0,0.1,0>}
	prism {... linear_sweep linear_spline }
	... Don't know the exact syntax right now ...
}

It's not that hard and making it by yourself is even cooler
than using a toolkit.
(And after doing it one knows how to handle the toolkit the right way... 
;-) )

Sebastian


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.