~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to libsrc/plot/ptb-1.fc

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)ptb.fc   19.1 (ES0-DMD) 02/25/03 13:54:12 */
 
2
/*===========================================================================
 
3
  Copyright (C) 1995 European Southern Observatory (ESO)
 
4
 
 
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.
 
9
 
 
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.
 
14
 
 
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, 
 
18
  MA 02139, USA.
 
19
 
 
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 
 
26
                        GERMANY
 
27
===========================================================================*/
 
28
 
 
29
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
30
.COPYRIGHT      (c) 1993 European Southern Observatory
 
31
.IDENTifier     ptb.fc
 
32
.AUTHOR         Rein H. Warmels, ESO-IPG
 
33
.KEYWORDS       High level graphics interface, Graphics keywords
 
34
.LANGUAGE       C
 
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>
 
41
#include <ftoc.h>
 
42
#include <midas_def.h>
 
43
        
 
44
 
 
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 */
 
53
 
 
54
{       
 
55
PCDATA(*stype,*ltype,*binmod,x_data,y_data,*y_off,*nrdata);
 
56
return 0;
 
57
}
 
58
 
 
59
 
 
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 */
 
65
 
 
66
{       
 
67
PCHIST(*nbins,cl,rfr,fopt);
 
68
return 0;
 
69
}
 
70
 
 
71
 
 
72
 
 
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) */
 
80
 
 
81
{       
 
82
PCTEXT(STRIPPED_STRING(text),*xc,*yc,*angle,*chsiz,*ipos);
 
83
return 0;
 
84
}
 
85
 
 
86
 
 
87
 
 
88
 
 
89
 
 
90
 
 
91
 
 
92
 
 
93
 
 
94