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

offset x axis, postscript issue

Expand Messages
  • beribboned
    1) (lines prefab) I have data with x values of 16 to 40 in increments of 4. I want to avoid the point for x=16 being drawn on the y-axis line. I could use
    Message 1 of 3 , Sep 28 8:13 AM
    • 0 Attachment
      1) (lines prefab) I have data with x values of 16 to 40 in increments
      of 4. I want to avoid the point for x=16 being drawn on the y-axis
      line. I could use xrange="12 40" but then the x-stub of 12 is drawn.
      I could use xrange="15 40" but then there are no stubs exactly under
      my plotted points. I have fiddled with xnearest, stubrange but they
      seem to be ignored in the prefab. Is there a way to do something
      like: xrange="15 40" xstubs="follow" which would mean ONLY put
      stubs/ticks at positions where data exist? Or, maybe move the entire
      x axis a little to the right (so the x axis and y axis do not
      intersect).

      2) (lines prefab) The first x stub (at least in postscipt rendering)
      is too high ... on my graph from above, the postscript says:

      -310.00 92.96 mv 864.00 (16) cent
      (16) sh
      ...
      -254.53 90.96 mv 864.00 (20) cent
      (20) sh
      ...
      -199.07 90.96 mv 864.00 (24) cent
      (24) sh

      for the 16 20 and 24 stubs. The 92.26 is the culprit.
    • Stephen C. Grubb
      Hi, you can do what you describe in (1) by writing a script and using #proc axis selflocatingstubs: ..... See http://ploticus.sourceforge.net/doc/axis.html For
      Message 2 of 3 , Oct 2, 2007
      • 0 Attachment
        Hi,

        you can do what you describe in (1) by writing a script and using

        #proc axis
        selflocatingstubs: .....

        See http://ploticus.sourceforge.net/doc/axis.html


        For me to be able to address your concern (2) you'd need to send my your
        data file and exact prefab command used, then I would try to reproduce the
        problem here. Thanks,

        Steve


        On Fri, 28 Sep 2007, beribboned wrote:

        > 1) (lines prefab) I have data with x values of 16 to 40 in increments
        > of 4. I want to avoid the point for x=16 being drawn on the y-axis
        > line. I could use xrange="12 40" but then the x-stub of 12 is drawn.
        > I could use xrange="15 40" but then there are no stubs exactly under
        > my plotted points. I have fiddled with xnearest, stubrange but they
        > seem to be ignored in the prefab. Is there a way to do something
        > like: xrange="15 40" xstubs="follow" which would mean ONLY put
        > stubs/ticks at positions where data exist? Or, maybe move the entire
        > x axis a little to the right (so the x axis and y axis do not
        > intersect).
        >
        > 2) (lines prefab) The first x stub (at least in postscipt rendering)
        > is too high ... on my graph from above, the postscript says:
        >
        > -310.00 92.96 mv 864.00 (16) cent
        > (16) sh
        > ...
        > -254.53 90.96 mv 864.00 (20) cent
        > (20) sh
        > ...
        > -199.07 90.96 mv 864.00 (24) cent
        > (24) sh
        >
        > for the 16 20 and 24 stubs. The 92.26 is the culprit.
        >
        >


        Stephen C. Grubb scg@... x-6633
        Scientific Software Engineer, The Jackson Laboratory
        600 Main Street Bar Harbor, Maine 04609 USA
      • beribboned
        ... your ... reproduce the ... echo -e 10 12 n12 15 n14 17 n16 18 n | pl -prefab lines data=stdin x=1 y=2 xstubdet= size=16 ystubdet= size=10 -ps -o
        Message 3 of 3 , Oct 3, 2007
        • 0 Attachment
          --- In ploticus@yahoogroups.com, "Stephen C. Grubb" <scg@...> wrote:

          > For me to be able to address your concern (2) you'd need to send my
          your
          > data file and exact prefab command used, then I would try to
          reproduce the
          > problem here. Thanks,
          >
          > Steve

          echo -e "10 12\n12 15\n14 17\n16 18\n" | pl -prefab lines data=stdin
          x=1 y=2 xstubdet="size=16" ystubdet="size=10" -ps -o test.ps

          it is a constant 2 unit error as function of xstubdet="size=N"
          for N>12

          N stub1 stub2
          10 62.96 62.96
          12 60.96 60.96
          14 60.96 58.96
          16 58.96 56.96
          18 56.96 54.96
          20 54.96 52.96
          24 50.96 48.96
          28 46.96 44.96
          36 38.96 36.96
          ... where stub1 and stub2 are the y-coord from the
          postscrpt output.

          and thanks. I have found no better program for journal-grade
          plot creation. (even wrote one myself and yours is WAY better).


          > > 2) (lines prefab) The first x stub (at least in postscipt
          rendering)
          > > is too high ... on my graph from above, the postscript says:
          > >
          > > -310.00 92.96 mv 864.00 (16) cent
          > > (16) sh
          > > ...
          > > -254.53 90.96 mv 864.00 (20) cent
          > > (20) sh
          > > ...
          > > -199.07 90.96 mv 864.00 (24) cent
          > > (24) sh
          > >
          > > for the 16 20 and 24 stubs. The 92.26 is the culprit.
          > >
          > >
          >
          >
          > 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.