POV-Ray : Newsgroups : povray.general : Creating Graphs with POV-Ray Server Time
2 Aug 2024 02:22:42 EDT (-0400)
  Creating Graphs with POV-Ray (Message 1 to 7 of 7)  
From: Reuben Pearse
Subject: Creating Graphs with POV-Ray
Date: 19 Jan 2005 05:36:43
Message: <41ee383b@news.povray.org>
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


Post a reply to this message

From: Tom Melly
Subject: Re: Creating Graphs with POV-Ray
Date: 19 Jan 2005 07:18:39
Message: <41ee501f$1@news.povray.org>
"Reuben Pearse" <reu### [at] pearsecouk> wrote in message
news:41ee383b@news.povray.org...
> Hi all,

Hmm, I once used pov for graphing a particular dataset that, for some reason
I can't remember, was impossible to graph in the way I wanted in Excel.

I'll see if I can find the code, but don't hold your breath....


Post a reply to this message

From: Reuben Pearse
Subject: Re: Creating Graphs with POV-Ray
Date: 19 Jan 2005 08:22:40
Message: <41ee5f20$1@news.povray.org>
Tom Melly wrote:
> "Reuben Pearse" <reu### [at] pearsecouk> wrote in message
> news:41ee383b@news.povray.org...
> 
>>Hi all,
> 
> 
> Hmm, I once used pov for graphing a particular dataset that, for some reason
> I can't remember, was impossible to graph in the way I wanted in Excel.
> 
> I'll see if I can find the code, but don't hold your breath....
> 
> 

That would be great...

I've got exactly the same problem. The graphs that I want I can't do in 
Excel. Doing some searching around I found this link to pov-plot:

http://sthigpen.freeshell.org/pov-plot.html

But it looks rather Linux/Unix specific?

Reuben


Post a reply to this message

From: Tom Melly
Subject: Re: Creating Graphs with POV-Ray
Date: 19 Jan 2005 11:48:15
Message: <41ee8f4f$1@news.povray.org>
"Reuben Pearse" <reu### [at] pearsecouk> wrote in message
news:41ee5f20$1@news.povray.org...
>
> That would be great...
>

Sorry - I've searched everywhere I can think of, but nada.


Post a reply to this message

From: Sebastian H 
Subject: Re: Creating Graphs with POV-Ray
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

From: Gilles Tran
Subject: Re: Creating Graphs with POV-Ray
Date: 19 Jan 2005 13:00:42
Message: <41eea04a$1@news.povray.org>

news:41ee383b@news.povray.org...
> 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!

I have some POV-Ray code that reads a data file (text) created by an Access
database and then renders a cloud of points in 2D or 3D, with axis, ticks,
coordinates and a regression line (or regression plane for the 3D version).
I've produced thousands of graphs with it for my day job.
In any case it's not very difficult to code, just a little boring...

G.

-- 

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Shurakai
Subject: Re: Creating Graphs with POV-Ray
Date: 20 Jan 2005 06:40:00
Message: <web.41ef9869b2bdf8724ccd982c0@news.povray.org>
Reuben Pearse <reu### [at] pearsecouk> wrote:
> 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

Try this, taken found at Dr. A. Filler's homepage :

http://www.ph-heidelberg.de/wp/filler/

#declare Font1="cyrvetic.ttf";
#declare ks5 =
   union{                          // X-Achse
     cylinder{-x*8,x*7.5,.1}
     cone{ x*8.5,0, x*7.5,.25}
     #declare Count=-8;
     #while (Count < 8)
        sphere {<Count,0,0>, .20}
        #declare Count=Count+1;
     #end
      cylinder{-y*8,y*7.5,.1}
      cone{ y*8.5,0, y*7.5,.25}
      #declare Count=-8;
      #while (Count < 8)
        sphere {<0,Count,0>, .20}
      #declare Count=Count+1;
      #end
      cylinder{-z*8,z*7.5,.1}
      cone{ z*8.5,0, z*7.5,.25}
      #declare Count=-8;
      #while (Count < 8)
        sphere {<0,0,Count>, .20}
      #declare Count=Count+1;
      #end
      text{ttf Font1 "x",0.1,0 scale <1.5,1.5,1.5> translate <7.9,-1.2,0>}
      text{ttf Font1 "y",0.1,0 scale <1.5,1.5,1.5> translate <-1,7.7,0>}
      text{ttf Font1 "z",0.1,0 scale <1.5,1.5,1.5> translate <-1,-0.2,7.8>}
      texture {
      pigment { rgb<0.1,0.1,0.5> }
      finish { ambient 0.1 diffuse 0.4 reflection 0.2 brilliance 1 specular
0.3 roughness 0.2 }
      }
     no_shadow
     }
ks5


Post a reply to this message

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