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

Re: Ploticus Hangs on big numbers

Expand Messages
  • kapopeye
    Further testing shows another (related)? problem. If my data file has only one row, (which is admittedly a meaningless graph), i get the following: (actual
    Message 1 of 6 , Feb 2, 2004
    • 0 Attachment
      Further testing shows another (related)? problem.

      If my data file has only one row, (which is admittedly a meaningless
      graph), i get the following: (actual output)

      // proc getdata has read & parsed these data:
      [01.01.2004][32932903][14026489698][200301850]
      pl proc areadef error 100: x range is invalid .. likely culprits:
      xautorange, or invalid date format
      pl proc areadef error 10: cannot set up plotting area .. likely
      culprits: bad xrange or yrange, or bad area rectangle


      field 1 is the x label, field 2, 3, or 4 is the y value plotted.
    • Stephen C. Grubb
      Hi, your script had a couple of problems... be sure that the data field you use with autorange is the one you will be plotting.. you were doing yautorange=2
      Message 2 of 6 , Feb 6, 2004
      • 0 Attachment
        Hi,

        your script had a couple of problems...

        be sure that the data field you use with autorange is the one you will be
        plotting.. you were doing yautorange=2 but then plotting field 3.

        the bigger issue is the way ploticus hangs.. this is caused by the x axis
        in plot 2.. where no stub increment is specified. This is a known race
        condition bug which will be fixed in the next release, when no stub
        increment is specified, or when stubs: none is specified.

        Workaround is to specify stubs: inc
        or omit the X axis altogether (which seemed like a possiblity in this
        case)

        It's a good looking graph.

        I'll check your follow-up post now.

        Steve


        -------------------------
        // here's your script, modified to work:

        #proc getdata
        showresults: yes
        fieldnameheader: no
        delim: comma
        data:
        02.01.2003,705309,238220882,3545157
        02.02.2003,802159,247794352,3697789
        02.03.2003,1031352,331581499,4887103
        02.04.2003,765470,326244657,4682454
        02.05.2003,514690,282899287,3998747
        02.06.2003,688250,372957757,5079855
        02.07.2003,788644,353845504,5069121
        02.08.2003,762476,327140800,4833687
        02.09.2003,1132441,369399970,5512468
        02.10.2003,1229266,459014848,6859887



        // Define a plotting area using proc areadef
        #proc areadef
        title: Stuff
        rectangle: 1 1 6 5
        xscaletype: categories
        xcategories: datafield=1
        autowidth: .2 3.0 5
        // yautorange: datafield=2
        yautorange: datafield=3

        // Do the red curve using proc lineplot
        #proc lineplot
        xfield: 1
        yfield: 3
        linedetails: color=red
        // ptlabelfield: 2

        #proc xaxis
        tics: yes
        stubs: datafields=1
        stubvert: yes
        grid: no
        axisline: width=2.5 color=green
        stubdetails: size=6

        #proc yaxis
        tics: yes
        grid: yes
        stubs: incremental
        stubcull: yes
        stubformat: %12.0f
        axisline: width=2.0 color=green
        stubdetails: size=7

        //--------------------Next Graph------------------------


        #proc areadef
        title: Total Flows
        rectangle: 6.8 1 7 5
        yscaletype: categories
        ycategories: datafield=1
        // xautorange: datafield=2
        xautorange: datafield=3
        // autowidth: .2 3.0 7

        #proc bars
        horizontalbars: yes
        color: redorange
        lenfield: 3
        numbersformat: %12.0f
        labelword: @@N
        labeldetails: size=6

        // BUG - race condition when no stub inc is specified, or stubs: none
        // #proc xaxis
        // grid: no
        // tics: no
        // labeldetails: align=left

        #proc yaxis
        stubs: datafields=1
        stubdetails: size=6


        #exit

        The nature of my data is this: field one is a date and is used only as
        a label. Field 2 is always smaller than field 3 and field 4. If I use
        field 3 or 4 as my plottable data, it either graphs nothing in the
        case of the line plot, or it hangs, in the case of the bar plot. If i
        use field 2, they both seem to work fine. Does ploticus have a
        problem with big numbers? I am using version 2.20

        Is there a work around? I really need to be able to plot field 2, 3,
        or 4. This is very important, and fairly urgent.

        Thanks for your great product and support.




        Yahoo! Groups Links

        To visit your group on the web, go to:
        http://groups.yahoo.com/group/ploticus/

        To unsubscribe from this group, send an email to:
        ploticus-unsubscribe@yahoogroups.com

        Your use of Yahoo! Groups is subject to:
        http://docs.yahoo.com/info/terms/
      • Stephen C. Grubb
        Hi again, This one seems to be a bug related to the magnitude of the numbers being processed by autorange. When I try it with smaller numbers (eg. 42) it
        Message 3 of 6 , Feb 6, 2004
        • 0 Attachment
          Hi again,

          This one seems to be a bug related to the magnitude of the numbers being
          processed by autorange. When I try it with smaller numbers (eg. 42) it
          works properly (adds appropriate margins) but with very large numbers it's
          not finding an appropriate margin value. Will fix for next release.

          Workaround is to do something like this:
          yautorange: datafield=2 margin=1000000

          Steve


          On Mon, 2 Feb 2004, kapopeye wrote:

          > Further testing shows another (related)? problem.
          >
          > If my data file has only one row, (which is admittedly a meaningless
          > graph), i get the following: (actual output)
          >
          > // proc getdata has read & parsed these data:
          > [01.01.2004][32932903][14026489698][200301850]
          > pl proc areadef error 100: x range is invalid .. likely culprits:
          > xautorange, or invalid date format
          > pl proc areadef error 10: cannot set up plotting area .. likely
          > culprits: bad xrange or yrange, or bad area rectangle
          >
          >
          > field 1 is the x label, field 2, 3, or 4 is the y value plotted.
          >
          >
          >
          >
          > Yahoo! Groups Links
          >
          > To visit your group on the web, go to:
          > http://groups.yahoo.com/group/ploticus/
          >
          > To unsubscribe from this group, send an email to:
          > ploticus-unsubscribe@yahoogroups.com
          >
          > Your use of Yahoo! Groups is subject to:
          > http://docs.yahoo.com/info/terms/
          >
          >
          >


          Stephen C. Grubb scg@...
          Scientific Software Engineer, The Jackson Laboratory
          600 Main Street Bar Harbor, Maine 04609 USA
        • kapopeye
          thanks Steve, your work is greatly appreciated. Ill check it out. Chris ... will be ... axis
          Message 4 of 6 , Feb 17, 2004
          • 0 Attachment
            thanks Steve, your work is greatly appreciated. Ill check it out.

            Chris


            --- In ploticus@yahoogroups.com, "Stephen C. Grubb" <scg@j...> wrote:
            > Hi,
            >
            > your script had a couple of problems...
            >
            > be sure that the data field you use with autorange is the one you
            will be
            > plotting.. you were doing yautorange=2 but then plotting field 3.
            >
            > the bigger issue is the way ploticus hangs.. this is caused by the x
            axis
            > in plot 2.. where no stub increment is specified. This is a known race
            > condition bug which will be fixed in the next release, when no stub
            > increment is specified, or when stubs: none is specified.
            >
            > Workaround is to specify stubs: inc
            > or omit the X axis altogether (which seemed like a possiblity in this
            > case)
            >
            > It's a good looking graph.
            >
            > I'll check your follow-up post now.
            >
            > Steve
            >
            >
            > -------------------------
            > // here's your script, modified to work:
            >
            > #proc getdata
            > showresults: yes
            > fieldnameheader: no
            > delim: comma
            > data:
            > 02.01.2003,705309,238220882,3545157
            > 02.02.2003,802159,247794352,3697789
            > 02.03.2003,1031352,331581499,4887103
            > 02.04.2003,765470,326244657,4682454
            > 02.05.2003,514690,282899287,3998747
            > 02.06.2003,688250,372957757,5079855
            > 02.07.2003,788644,353845504,5069121
            > 02.08.2003,762476,327140800,4833687
            > 02.09.2003,1132441,369399970,5512468
            > 02.10.2003,1229266,459014848,6859887
            >
            >
            >
            > // Define a plotting area using proc areadef
            > #proc areadef
            > title: Stuff
            > rectangle: 1 1 6 5
            > xscaletype: categories
            > xcategories: datafield=1
            > autowidth: .2 3.0 5
            > // yautorange: datafield=2
            > yautorange: datafield=3
            >
            > // Do the red curve using proc lineplot
            > #proc lineplot
            > xfield: 1
            > yfield: 3
            > linedetails: color=red
            > // ptlabelfield: 2
            >
            > #proc xaxis
            > tics: yes
            > stubs: datafields=1
            > stubvert: yes
            > grid: no
            > axisline: width=2.5 color=green
            > stubdetails: size=6
            >
            > #proc yaxis
            > tics: yes
            > grid: yes
            > stubs: incremental
            > stubcull: yes
            > stubformat: %12.0f
            > axisline: width=2.0 color=green
            > stubdetails: size=7
            >
            > //--------------------Next Graph------------------------
            >
            >
            > #proc areadef
            > title: Total Flows
            > rectangle: 6.8 1 7 5
            > yscaletype: categories
            > ycategories: datafield=1
            > // xautorange: datafield=2
            > xautorange: datafield=3
            > // autowidth: .2 3.0 7
            >
            > #proc bars
            > horizontalbars: yes
            > color: redorange
            > lenfield: 3
            > numbersformat: %12.0f
            > labelword: @@N
            > labeldetails: size=6
            >
            > // BUG - race condition when no stub inc is specified, or stubs: none
            > // #proc xaxis
            > // grid: no
            > // tics: no
            > // labeldetails: align=left
            >
            > #proc yaxis
            > stubs: datafields=1
            > stubdetails: size=6
            >
            >
            > #exit
            >
            > The nature of my data is this: field one is a date and is used only as
            > a label. Field 2 is always smaller than field 3 and field 4. If I use
            > field 3 or 4 as my plottable data, it either graphs nothing in the
            > case of the line plot, or it hangs, in the case of the bar plot. If i
            > use field 2, they both seem to work fine. Does ploticus have a
            > problem with big numbers? I am using version 2.20
            >
            > Is there a work around? I really need to be able to plot field 2, 3,
            > or 4. This is very important, and fairly urgent.
            >
            > Thanks for your great product and support.
            >
            >
            >
            >
            > Yahoo! Groups Links
            >
            > To visit your group on the web, go to:
            > http://groups.yahoo.com/group/ploticus/
            >
            > To unsubscribe from this group, send an email to:
            > ploticus-unsubscribe@yahoogroups.com
            >
            > Your use of Yahoo! Groups is subject to:
            > http://docs.yahoo.com/info/terms/
          • kapopeye
            Yeah its a pretty good loooking graph. Took lots of experimentation to get it that way. But more importantly, your program was able to create that good looking
            Message 5 of 6 , Feb 17, 2004
            • 0 Attachment
              Yeah its a pretty good loooking graph. Took lots of experimentation to
              get it that way. But more importantly, your program was able to create
              that good looking graph :)

              --- In ploticus@yahoogroups.com, "Stephen C. Grubb" <scg@j...> wrote:
              > Hi,
              >
              > your script had a couple of problems...
              >
              > be sure that the data field you use with autorange is the one you
              will be
              > plotting.. you were doing yautorange=2 but then plotting field 3.
              >
              > the bigger issue is the way ploticus hangs.. this is caused by the x
              axis
              > in plot 2.. where no stub increment is specified. This is a known race
              > condition bug which will be fixed in the next release, when no stub
              > increment is specified, or when stubs: none is specified.
              >
              > Workaround is to specify stubs: inc
              > or omit the X axis altogether (which seemed like a possiblity in this
              > case)
              >
              > It's a good looking graph.
              >
              > I'll check your follow-up post now.
              >
              > Steve
              >
              >
              > -------------------------
              > // here's your script, modified to work:
              >
              > #proc getdata
              > showresults: yes
              > fieldnameheader: no
              > delim: comma
              > data:
              > 02.01.2003,705309,238220882,3545157
              > 02.02.2003,802159,247794352,3697789
              > 02.03.2003,1031352,331581499,4887103
              > 02.04.2003,765470,326244657,4682454
              > 02.05.2003,514690,282899287,3998747
              > 02.06.2003,688250,372957757,5079855
              > 02.07.2003,788644,353845504,5069121
              > 02.08.2003,762476,327140800,4833687
              > 02.09.2003,1132441,369399970,5512468
              > 02.10.2003,1229266,459014848,6859887
              >
              >
              >
              > // Define a plotting area using proc areadef
              > #proc areadef
              > title: Stuff
              > rectangle: 1 1 6 5
              > xscaletype: categories
              > xcategories: datafield=1
              > autowidth: .2 3.0 5
              > // yautorange: datafield=2
              > yautorange: datafield=3
              >
              > // Do the red curve using proc lineplot
              > #proc lineplot
              > xfield: 1
              > yfield: 3
              > linedetails: color=red
              > // ptlabelfield: 2
              >
              > #proc xaxis
              > tics: yes
              > stubs: datafields=1
              > stubvert: yes
              > grid: no
              > axisline: width=2.5 color=green
              > stubdetails: size=6
              >
              > #proc yaxis
              > tics: yes
              > grid: yes
              > stubs: incremental
              > stubcull: yes
              > stubformat: %12.0f
              > axisline: width=2.0 color=green
              > stubdetails: size=7
              >
              > //--------------------Next Graph------------------------
              >
              >
              > #proc areadef
              > title: Total Flows
              > rectangle: 6.8 1 7 5
              > yscaletype: categories
              > ycategories: datafield=1
              > // xautorange: datafield=2
              > xautorange: datafield=3
              > // autowidth: .2 3.0 7
              >
              > #proc bars
              > horizontalbars: yes
              > color: redorange
              > lenfield: 3
              > numbersformat: %12.0f
              > labelword: @@N
              > labeldetails: size=6
              >
              > // BUG - race condition when no stub inc is specified, or stubs: none
              > // #proc xaxis
              > // grid: no
              > // tics: no
              > // labeldetails: align=left
              >
              > #proc yaxis
              > stubs: datafields=1
              > stubdetails: size=6
              >
              >
              > #exit
              >
              > The nature of my data is this: field one is a date and is used only as
              > a label. Field 2 is always smaller than field 3 and field 4. If I use
              > field 3 or 4 as my plottable data, it either graphs nothing in the
              > case of the line plot, or it hangs, in the case of the bar plot. If i
              > use field 2, they both seem to work fine. Does ploticus have a
              > problem with big numbers? I am using version 2.20
              >
              > Is there a work around? I really need to be able to plot field 2, 3,
              > or 4. This is very important, and fairly urgent.
              >
              > Thanks for your great product and support.
              >
              >
              >
              >
              > Yahoo! Groups Links
              >
              > To visit your group on the web, go to:
              > http://groups.yahoo.com/group/ploticus/
              >
              > To unsubscribe from this group, send an email to:
              > ploticus-unsubscribe@yahoogroups.com
              >
              > Your use of Yahoo! Groups is subject to:
              > http://docs.yahoo.com/info/terms/
            Your message has been successfully submitted and would be delivered to recipients shortly.