program main c*********************************************************************72 c cc DISLIN_EX07 demonstrates 3D bar graphs and pie charts. c c Modified: c c 05 September 2005 c implicit none character*80 cbuf integer ic1ray(5) integer ic2ray(5) real xray(5) real y1ray(5) real y2ray(5) data xray / 2.0, 4.0, 6.0, 8.0, 10.0 / data y1ray / 0.0, 0.0, 0.0, 0.0, 0.0 / data y2ray / 3.2, 1.5, 2.0, 1.0, 3.0 / data ic1ray / 50, 150, 100, 200, 175 / data ic2ray / 50, 150, 100, 200, 175 / write ( *, '(a)' ) ' ' write ( *, '(a)' ) 'DISLIN_EX07:' write ( *, '(a)' ) ' FORTRAN77 version' write ( *, '(a)' ) ' Demonstrate the creation of 3D bar ' write ( *, '(a)' ) ' and pie charts.' c c Specify the format of the output file. c call metafl ( 'PNG' ) c c Specify the name of the output graphics file. c call setfil ( 'dislin_ex07.png' ) call setpag ( 'DA4P' ) call disini call pagera call hwfont call titlin ( '3-D Bar Graph / 3-D Pie Chart', 2 ) call htitle ( 40 ) call shdpat ( 16 ) call axslen ( 1500, 1000 ) call axspos ( 300, 1400 ) call barwth ( 0.5 ) call bartyp ( '3DVERT' ) call labels ( 'SECOND', 'BARS' ) call labpos ( 'OUTSIDE', 'BARS' ) call labclr ( 255, 'BARS' ) call graf ( 0.0, 12.0, 0.0, 2.0, 0.0, 5.0, 0.0, 1.0 ) call title call color ( 'RED' ) call bars ( xray, y1ray, y2ray, 5 ) call endgrf call shdpat ( 16 ) call labels ( 'DATA', 'PIE' ) call labclr ( 255, 'PIE' ) call chnpie ( 'NONE' ) call pieclr ( ic1ray, ic2ray, 5 ) call pietyp ( '3D' ) call axspos ( 300, 2700 ) call piegrf ( cbuf, 0, y2ray, 5 ) call disfin write ( *, '(a)' ) ' ' write ( *, '(a)' ) 'DISLIN_EX07:' write ( *, '(a)' ) ' Normal end of execution.' stop end