Re: If and how to control the margin between canvas and plot borders

Thanks, I will look into the Javadoc issue. I've been trying to keep the javadoc jar file in sync with the releases but I must have a mistake in my "build" procedure.

Regarding the box size, here is the code snippet from the that does this -- you'll have to cast it into Java, though...unless you're using Jython!

  def setBoxSize(self, percent=.70, clip=1, showBox=1, snap=0):
    Set the size of the VisAD 'box' for the <display> as a percentage
    (fraction). The default is .70 (70%).   If <clip> is true, the
    display will be clipped at the border of the box; otherwise, data
    displays may spill over.  If <showBox> is true, the wire-frame will
    be shown; otherwise, it will be turned off.  If <snap> is true, the
    box will be reoriented to an upright position.
    if (not snap) or (self.pcMatrix == None):

    if len(self.pcMatrix) > 10:

    dr = self.getDisplayRenderer();

    if __ok3d:
         if isinstance(dr, DisplayRendererJ3D):
           dr.setClip(0, clip,  1.,  0.0,  0.0, -1.);
           dr.setClip(1, clip, -1.,  0.0,  0.0, -1.);
           dr.setClip(2, clip,  0.0,  1.,  0.0, -1.);
           dr.setClip(3, clip,  0.0, -1.,  0.0, -1.);
           #dr.setClip(4, 1,  0.0,  0.0,  1., -1.);
           #dr.setClip(5, 1,  0.0,  0.0, -1., -1.);
         elif isinstance(dr, DisplayRendererJ2D):
           if clip:
             dr.setClip(-1., 1., -1., 1.)



rybatzki wrote:

if a similar message from me is always on the list then it is a mistake, but as I can't see it, I will ask this question a second time. For my current project I have to compose pictures from different plots to generate a video from them. The off screen rendering works fine. The only problem is that the images from the off screen displays have a large empty border around the plots. So the question is, how can I reduce this border programmatically?


PS: I suggest to repackage the Javadoc jar file. I have noticed the email from tom that there is a new build of VisAD. The size of the docs jar file is far to high. It contains the documentation twice under a folder called docs. One time as the documentation itself ordered into different sub folders and the second time as a jar file of these folders.

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

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