plots(3f) - [M_calcomp:basic] initialize the CALCOMP package (LICENSE:PD)
Synopsis
Description
Options
Examples
License
subroutine plots(0.0,10.0,0.0,10.0)
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.
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.
Sample program:
program demo_plots use M_calcomp, only : plots, plot, newpen, width, rect !use M_calcomp, only : black ,red ,green ,yellow, purple ,magenta ,cyan ,white use M_calcomp, only : green, red 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
Public Domain
Nemo Release 3.1 | plots (3) | February 23, 2025 |