Silverfrost Logo About Us | Contact Us
 

Plotting a bar chart

The following code is extracted from program simdem48 in the Simdem package, and it illustrates how easy it is to plot a matrix, declared as double precision x(nmax,ncol), as a bar chart.


c
c initialise essential arguments for default bar chart
c
      do j = 1, ncol
         do i = 1, nrow
            x(i,j) = dble(i + j)
         enddo
      enddo
      titles(1) = 'Demonstrating a Simfit bar chart'
      titles(2) = 'Rows'
      titles(3) = 'Columns'
      titles(4) = blank
c
c isend = 1: call bcplot in default mode
c
      isend = 1
      call bcplot (isend, ncol, nrmax, nrow, x, labels, titles)

The following plot is then displayed and can be edited to add further features, printed, or archived as a graphics file. It is possible to edit the bar labels, keys, and titles, and to perform additional operations like 3D perspective, and side panel re-positioning.

 

 

Copyright © 1999-2017 Silverfrost Limited