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

« back to all changes in this revision

Viewing changes to libsrc/plot/pta-2.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
/*===========================================================================
 
2
  Copyright (C) 1995-2009 European Southern Observatory (ESO)
 
3
 
 
4
  This program is free software; you can redistribute it and/or 
 
5
  modify it under the terms of the GNU General Public License as 
 
6
  published by the Free Software Foundation; either version 2 of 
 
7
  the License, or (at your option) any later version.
 
8
 
 
9
  This program is distributed in the hope that it will be useful,
 
10
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
  GNU General Public License for more details.
 
13
 
 
14
  You should have received a copy of the GNU General Public 
 
15
  License along with this program; if not, write to the Free 
 
16
  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, 
 
17
  MA 02139, USA.
 
18
 
 
19
  Correspondence concerning ESO-MIDAS should be addressed as follows:
 
20
        Internet e-mail: midas@eso.org
 
21
        Postal address: European Southern Observatory
 
22
                        Data Management Division 
 
23
                        Karl-Schwarzschild-Strasse 2
 
24
                        D 85748 Garching bei Muenchen 
 
25
                        GERMANY
 
26
===========================================================================*/
 
27
 
 
28
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
29
.IDENTifier     pta.fc
 
30
.AUTHOR         Rein H. Warmels, ESO-IPG
 
31
.KEYWORDS       High level graphics interface, Graphics keywords
 
32
.LANGUAGE       C
 
33
.PURPOSE        Fortran to C interface for PCAXES and PCFRAMK
 
34
.COMMENTS       Module contains interfaces for PTAXES and PTFRAM 
 
35
.ENVIRONMENT    MIDAS FORTRAN and C standards
 
36
.VERSION        1.0 13-Oct-1993 RHW
 
37
 
 
38
 090611         last modif
 
39
-----------------------------------------------------------------------------*/
 
40
 
 
41
#include <proto_plt.h>
 
42
#include <stdlib.h>
 
43
#include <string.h>
 
44
 
 
45
int   mm;
 
46
 
 
47
char *ptr1, *ptr2, *ptr3;
 
48
char *loc_pntr();
 
49
char *strp_pntr();
 
50
 
 
51
/*
 
52
 
 
53
*/
 
54
        
 
55
 
 
56
ROUTINE PPP2(xmnmx,ymnmx,labelx,labely,AGLopt)
 
57
float      *xmnmx;      /* IN : minimum and maximum value along the X-axis */
 
58
float      *ymnmx;      /* IN : minimum and maximum value along the Y-axis */
 
59
 
 
60
{       
 
61
ptr1 = strp_pntr(1);         /* get stripped string of "labelx" */
 
62
ptr2 = strp_pntr(2);         /* get stripped string of "labely" */
 
63
ptr3 = strp_pntr(3);         /* get stripped string of "AGLopt" */
 
64
 
 
65
PCAXES(xmnmx,ymnmx,ptr1,ptr2,ptr3);
 
66
return 0;
 
67
}
 
68
 
 
69
 
 
70
ROUTINE PPP3(xwcfram,ywcfram)
 
71
float    *xwcfram;      /* IN : min, max, big, small axes def. of X */
 
72
float    *ywcfram;      /* IN : min, max, big, small axes def. of Y */
 
73
 
 
74
{       
 
75
ptr1 = strp_pntr(1);         /* get stripped string of "labelx" */
 
76
ptr2 = strp_pntr(2);         /* get stripped string of "labely" */
 
77
 
 
78
PCFRAM(xwcfram,ywcfram,ptr1,ptr2);
 
79
return 0;
 
80
}
 
81
 
 
82
 
 
83
 
 
84