[UP]


Manual Reference Pages  - plots (3)

NAME

plots(3f) - [M_calcomp:basic] initialize the CALCOMP package (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Example
License

SYNOPSIS

subroutine plots(0.0,10.0,0.0,10.0)

DESCRIPTION

Subroutine PLOTS is used to initialize the CALCOMP package. It must be called once and only once before any other CALCOMP calls are used in the application program.

OPTIONS

XMIN,XMAX,YMIN,YMAX
  The bounds of the original inch units bounding box. Draws outside of this area are an error. If not specified, defaults are: 0.0,10.0,0.0,10.0) The environment variables CALCOMP_XMIN, CALCOMP_XMAX, CALCOMP_YMIN,CALCOMP_XMIN can be used to override the values.

EXAMPLE

Sample program:

   program demo_plots
   use M_calcomp, only : plots, plot, newpen, width, rect
   use M_calcomp, only : black ,red ,green ,yellow
   use M_calcomp, only : purple ,magenta ,cyan ,white
   use M_calcomp, only : MOVE, DRAW, END
   implicit none
   call plots(0.0,10.0,0.0,10.0)          ! initialize graphics
   call width(80)
   call rect(0.0,0.0,10.0,10.0,0.0,GREEN) ! outline plot area
   call plot(5.0,5.0,-3)                  ! set origin
   call newpen(RED)                       ! make X across area
   call plot(-5.0,-5.0, MOVE)
   call plot( 5.0, 5.0, DRAW)
   call plot(-5.0, 5.0, MOVE)
   call plot( 5.0,-5.0, DRAW)
   call plot( 0.0, 0.0, END)
   end program demo_plots

LICENSE

Public Domain


plots (3) March 11, 2021
Generated by manServer 1.08 from 93851576-354e-4604-8963-1085d189ac62 using man macros.