C Library Functions  - plots (3)

NAME

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

CONTENTS

Synopsis
Description
Options
Examples
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.

EXAMPLES

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


Nemo Release 3.1 plots (3) June 29, 2025
Generated by manServer 1.08 from c7d3d3bc-eb55-450a-b820-83af60c27214 using man macros.