> I am trying to get some picture of map by using ncar graphics. But I
> can not figure out how to cut off these blanks not used by the map, and
> how to define the exact ratio of width and hight of the map. can anyone
> help me out?
The definition of each projection implies a particular aspect ratio for a
given map; by default, EZMAP insists on using that aspect ratio. Still,
there's a way to do what you want, as shown in the program attached below.
The program produces two frames. The first shows a cylindrical equidistant
view of the globe (using default settings of all EZMAP parameters), and the
second shows the same view of the globe, but distorted in such a way as to
fill most of the plotter frame.
Enjoy ...
Dave Kennison
Program follows:
PROGRAM TESTIT
C
C Open GKS.
C
CALL OPNGKS
C
C Draw a map, using all the EZMAP default settings.
C
CALL MAPDRW
C
C Advance the frame.
C
CALL FRAME
C
C Draw the same map, but replace the call to MAPDRW with lower-level
C calls and, in between the call to MAPINT and the others, change the
C definition of the viewport so the map fits in a square that almost
C fills the plotter frame.
C
CALL MAPINT
CALL GETSET (XVPL,XVPR,YVPB,YVPT,XWDL,XWDR,YWDB,YWDT,LNLG)
CALL SET ( .05, .95, .05, .95,XWDL,XWDR,YWDB,YWDT,LNLG)
CALL MAPGRD
CALL MAPLBL
CALL MAPLOT
CALL FRAME
C
C Close GKS.
C
CALL CLSGKS
C
C Stop.
C
STOP
C
END
This archive was generated by hypermail 2b29 : Wed Jun 28 2000 - 09:45:34 MDT