1
/* @(#)ptb.fc 19.1 (ES0-DMD) 02/25/03 13:54:12 */
2
/*===========================================================================
3
Copyright (C) 1995 European Southern Observatory (ESO)
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License as
7
published by the Free Software Foundation; either version 2 of
8
the License, or (at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public
16
License along with this program; if not, write to the Free
17
Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
20
Corresponding concerning ESO-MIDAS should be addressed as follows:
21
Internet e-mail: midas@eso.org
22
Postal address: European Southern Observatory
23
Data Management Division
24
Karl-Schwarzschild-Strasse 2
25
D 85748 Garching bei Muenchen
27
===========================================================================*/
29
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30
.COPYRIGHT (c) 1993 European Southern Observatory
32
.AUTHOR Rein H. Warmels, ESO-IPG
33
.KEYWORDS High level graphics interface, Graphics keywords
35
.PURPOSE Fortran to C interface for PCAXES and PCFRAMK
36
.COMMENTS Module contains interfaces for PCDATA, PCHIST, and PCTEXT
37
.ENVIRONMENT MIDAS FORTRAN and C standards
38
.VERSION 1.0 13-Oct-1993 RHW
39
-----------------------------------------------------------------------------*/
40
#include <proto_plt.h>
42
#include <midas_def.h>
45
ROUTINE PTDATA(stype,ltype,binmod,x_data,y_data,y_off,nrdata)
46
fint2c *stype; /* IN: symbol type only plotted if ltype equal zero */
47
fint2c *ltype; /* IN: line type only plotted if ltype equal zero */
48
fint2c *binmod; /* IN: bin mode OFF = 1; ON = 0 */
49
float *x_data; /* IN: x values of the data points */
50
float *y_data; /* IN: y values of the data points */
51
float *y_off; /* IN: y offset of the data */
52
fint2c *nrdata; /* IN: number of data points */
55
PCDATA(*stype,*ltype,*binmod,x_data,y_data,*y_off,*nrdata);
60
ROUTINE PTHIST(nbins,cl,rfr,fopt)
61
fint2c *nbins; /* IN: number of bins */
62
float *cl; /* IN: values along the x axis */
63
float *rfr; /* IN: number of data points in bin */
64
float *fopt; /* IN: [1] hist. sel; [2] interl. space; [3] angle */
67
PCHIST(*nbins,cl,rfr,fopt);
73
SUBROUTINE PTTEXT(text,xc,yc,angle,chsiz,ipos)
74
CHARACTER text; /* IN: text string to be drawn */
75
float *xc; /* IN: string position in x */
76
float *yc; /* IN: string position in y */
77
float *angle; /* IN: text angle, in degrees */
78
float *chsiz; /* IN: text expansion factor */
79
fint2c *ipos; /* IN: centering expansion factor (0, 1, 2) */
82
PCTEXT(STRIPPED_STRING(text),*xc,*yc,*angle,*chsiz,*ipos);