Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: regarding 2d image and boundary

Ramesh:

> So I really need help. My question is actually illustrated better following your > suggested modification. All the contours are filled, but why is there a huge boundary > surrounding the image. Is there any way the image could occupy the entire space. I was

Since you're already using ProjectionControl, you can do something like the following (taken from subs.py in Jython-land) to adjust the percentage of space in the display you want the 'box' to occupy. The default is ~ 65% (.65).

    pc=self.getProjectionControl()
    if (not snap) or (self.pcMatrix == None):
      self.pcMatrix=pc.getMatrix()

    if len(self.pcMatrix) > 10:  # 3-D case
      self.pcMatrix[0]=percent
      self.pcMatrix[5]=percent
      self.pcMatrix[10]=percent
    else:  # 2-D case
      self.pcMatrix[0]=percent/.64
      self.pcMatrix[3]=-percent/.64

    pc.setMatrix(self.pcMatrix)

Hope that helps.

tom

--
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Phone/VoiceMail: 608.262.2759


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: