Loading ...
Sorry, an error occurred while loading the content.
 

'crop' doesn't work

Expand Messages
  • Tim Cera
    I thought I had this figured out, but for the life of me the image isn t cropped. I am trying to make a series of eps plots. Here is the .pl file... //
    Message 1 of 2 , Apr 30, 2006
      I thought I had this figured out, but for the life of me the image isn't
      cropped. I am trying to make a series of eps plots.

      Here is the .pl file...

      // Created by 02_x10_make_pls.py

      #proc page
      dopagebox: no
      backgroundcolor: transparent
      pagesize: 8.000000 3.666667
      landscape: no
      crop: 0.000000 0.000000 8.000000 3.666667
      tightcrop: yes
      #endproc

      #proc areadef
      box: 8.000000 3.666667
      location: 0.000000 0.000000
      xrange: 750031971.500000 753551920.676471
      yrange: 0.000000 1613310.370000
      #endproc

      #proc drawcommands
      file: lins_files/Jupiter_lins.txt
      #endproc

      #proc getdata
      #intrailer
      #endproc

      #proc xaxis
      axisline: width=0.1
      stubs: inc 25000000 km
      location: min-1
      stubformat: %6.1fE7 km
      stubmult: 1E-7
      #endproc

      #proc line
      linedetails: width=0.1, color=gray(0.8)
      points: min min-1.86 max min-1.86
      #endproc

      #proc scatterplot
      select @@2 = A
      xfield: 4
      ylocation: -40000(s)
      labelfield: 8
      verticaltext: yes
      textdetails: align=r adjust=0,-0.15 font=/Utopia
      #endproc

      #proc scatterplot
      select @@2 = A
      xfield: 4
      ylocation: -20000(s)
      linelen: 0.25
      linedir: v
      #endproc

      #proc xaxis
      axisline: width=0.1 color=red
      stubs: inc 37399467.67275 AU
      stubmult: 6.6845871226705988409769216693E-9
      location: min-1.25
      stubformat: %4.2f AU
      #endproc

      #proc xaxis
      axisline: width=0.1 color=green
      stubs: inc 17987547 lm
      stubmult: 5.5594016e-08
      location: min-1.5
      stubformat: %4.0f lm
      #endproc

      #proc drawcommands
      file: magnification_boxes_10x.txt
      #endproc

      #proc trailer
      data:
      Sun C 0.000 0.00E+000 0 0 1392000 0
      Mercury A 7.000 4.60E+007 5605990 -5605990 4880 "Mercury perihelion"
      Mercury A 7.000 6.98E+007 8506480 -8506480 4880 "Mercury aphelion"
      Mercury C 7.000 5.79E+007 7056235 -7056235 4880
      Venus A 3.390 1.075E+008 6356706 -6356706 12104 "Venus perihelion"
      Venus A 3.390 1.089E+008 6439491 -6439491 12104 "Venus aphelion"
      Venus C 3.390 1.085E+008 6398098 -6398098 12104
      Earth A 0.000 1.471E+008 0 0 12742 "Earth perihelion"
      Earth A 0.000 1.521E+008 0 0 12742 "Earth aphelion"
      Earth C 0.000 1.521E+008 0 0 12742
      Mars A 1.850 2.066E+008 6669664 -6669664 6780 "Mars perihelion"
      Mars A 1.850 2.492E+008 8044919 -8044919 6780 "Mars aphelion"
      Mars C 1.850 2.28E+008 7357291 -7357291 6780
      Jupiter A 1.305 7.406E+008 16866852 -16866852 139822 "Jupiter perihelion"
      Jupiter A 1.305 8.160E+008 18584055 -18584055 139822 "Jupiter aphelion"
      Jupiter C 1.305 7.785E+008 17725453 -17725453 139822
      Saturn A 2.489 1.3476E+009 58523011 -58523011 116464 "Saturn perihelion"
      Saturn A 2.489 1.5064E+009 65419311 -65419311 116464 "Saturn aphelion"
      Saturn C 2.489 1.43E+009 61971161 -61971161 116464
      Uranus A 0.773 2.7340E+009 36884355 -36884355 50724 "Uranus perihelion"
      Uranus A 0.773 3.0052E+009 40543111 -40543111 50724 "Uranus aphelion"
      Uranus C 0.773 2.87E+009 38713733 -38713733 50724
      Neptune A 1.773 4.4580E+009 137929402 -137929402 49248 "Neptune perihelion"
      Neptune A 1.773 4.5352E+009 140317951 -140317951 49248 "Neptune aphelion"
      Neptune C 1.773 4.50E+009 139123676 -139123676 49248
      Pluto A 17.150 4.4458E+009 1310952163 -1310952163 2274 "Pluto perihelion"
      Pluto A 17.150 7.3812E+009 2176526183 -2176526183 2274 "Pluto aphelion"
      Pluto C 17.150 5.92E+009 1743739173 -1743739173 2274
      #endproc
    • Stephen C. Grubb
      Hi, a couple first-pass responses: - with EPS, I believe the crop options influence a BoundingBox statement in your EPS file. You might have a look at your
      Message 2 of 2 , May 1 6:24 AM
        Hi, a couple first-pass responses:

        - with EPS, I believe the crop options influence a BoundingBox statement
        in your EPS file. You might have a look at your eps file (in a text
        editor) and see if the BoundingBox line seems right (I believe the values
        are in 1/72 inch). What are you using to view your eps result? Some
        viewers may not respect the BoundingBox statement.

        - you used both crop and tightcrop.. only one crop option can be in
        effect. It shouldn't really matter too much.. when more than one are
        used, I believe the one specified last is in effect.

        Steve


        On Sun, 30 Apr 2006, Tim Cera wrote:

        > I thought I had this figured out, but for the life of me the image isn't
        > cropped. I am trying to make a series of eps plots.
        >
        > Here is the .pl file...
        >
        > // Created by 02_x10_make_pls.py
        >
        > #proc page
        > dopagebox: no
        > backgroundcolor: transparent
        > pagesize: 8.000000 3.666667
        > landscape: no
        > crop: 0.000000 0.000000 8.000000 3.666667
        > tightcrop: yes
        > #endproc
        >
        > #proc areadef
        > box: 8.000000 3.666667
        > location: 0.000000 0.000000
        > xrange: 750031971.500000 753551920.676471
        > yrange: 0.000000 1613310.370000
        > #endproc
        >
        > #proc drawcommands
        > file: lins_files/Jupiter_lins.txt
        > #endproc
        >
        > #proc getdata
        > #intrailer
        > #endproc
        >
        > #proc xaxis
        > axisline: width=0.1
        > stubs: inc 25000000 km
        > location: min-1
        > stubformat: %6.1fE7 km
        > stubmult: 1E-7
        > #endproc
        >
        > #proc line
        > linedetails: width=0.1, color=gray(0.8)
        > points: min min-1.86 max min-1.86
        > #endproc
        >
        > #proc scatterplot
        > select @@2 = A
        > xfield: 4
        > ylocation: -40000(s)
        > labelfield: 8
        > verticaltext: yes
        > textdetails: align=r adjust=0,-0.15 font=/Utopia
        > #endproc
        >
        > #proc scatterplot
        > select @@2 = A
        > xfield: 4
        > ylocation: -20000(s)
        > linelen: 0.25
        > linedir: v
        > #endproc
        >
        > #proc xaxis
        > axisline: width=0.1 color=red
        > stubs: inc 37399467.67275 AU
        > stubmult: 6.6845871226705988409769216693E-9
        > location: min-1.25
        > stubformat: %4.2f AU
        > #endproc
        >
        > #proc xaxis
        > axisline: width=0.1 color=green
        > stubs: inc 17987547 lm
        > stubmult: 5.5594016e-08
        > location: min-1.5
        > stubformat: %4.0f lm
        > #endproc
        >
        > #proc drawcommands
        > file: magnification_boxes_10x.txt
        > #endproc
        >
        > #proc trailer
        > data:
        > Sun C 0.000 0.00E+000 0 0 1392000 0
        > Mercury A 7.000 4.60E+007 5605990 -5605990 4880 "Mercury perihelion"
        > Mercury A 7.000 6.98E+007 8506480 -8506480 4880 "Mercury aphelion"
        > Mercury C 7.000 5.79E+007 7056235 -7056235 4880
        > Venus A 3.390 1.075E+008 6356706 -6356706 12104 "Venus perihelion"
        > Venus A 3.390 1.089E+008 6439491 -6439491 12104 "Venus aphelion"
        > Venus C 3.390 1.085E+008 6398098 -6398098 12104
        > Earth A 0.000 1.471E+008 0 0 12742 "Earth perihelion"
        > Earth A 0.000 1.521E+008 0 0 12742 "Earth aphelion"
        > Earth C 0.000 1.521E+008 0 0 12742
        > Mars A 1.850 2.066E+008 6669664 -6669664 6780 "Mars perihelion"
        > Mars A 1.850 2.492E+008 8044919 -8044919 6780 "Mars aphelion"
        > Mars C 1.850 2.28E+008 7357291 -7357291 6780
        > Jupiter A 1.305 7.406E+008 16866852 -16866852 139822 "Jupiter perihelion"
        > Jupiter A 1.305 8.160E+008 18584055 -18584055 139822 "Jupiter aphelion"
        > Jupiter C 1.305 7.785E+008 17725453 -17725453 139822
        > Saturn A 2.489 1.3476E+009 58523011 -58523011 116464 "Saturn perihelion"
        > Saturn A 2.489 1.5064E+009 65419311 -65419311 116464 "Saturn aphelion"
        > Saturn C 2.489 1.43E+009 61971161 -61971161 116464
        > Uranus A 0.773 2.7340E+009 36884355 -36884355 50724 "Uranus perihelion"
        > Uranus A 0.773 3.0052E+009 40543111 -40543111 50724 "Uranus aphelion"
        > Uranus C 0.773 2.87E+009 38713733 -38713733 50724
        > Neptune A 1.773 4.4580E+009 137929402 -137929402 49248 "Neptune perihelion"
        > Neptune A 1.773 4.5352E+009 140317951 -140317951 49248 "Neptune aphelion"
        > Neptune C 1.773 4.50E+009 139123676 -139123676 49248
        > Pluto A 17.150 4.4458E+009 1310952163 -1310952163 2274 "Pluto perihelion"
        > Pluto A 17.150 7.3812E+009 2176526183 -2176526183 2274 "Pluto aphelion"
        > Pluto C 17.150 5.92E+009 1743739173 -1743739173 2274
        > #endproc
        >
        >
        >
        >
        >
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
        >
        >


        Stephen C. Grubb scg@... x-6633
        Scientific Software Engineer, The Jackson Laboratory
        600 Main Street Bar Harbor, Maine 04609 USA
      Your message has been successfully submitted and would be delivered to recipients shortly.