Bill Allombert on Tue, 11 Jan 2000 22:58:35 +0100 (MET)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Plotting problem with y scaling


Thank you for your solution!

Still, I don't like the idea to be forced to use such a mechanism just
to choose the y scaling.

some think like 
ploth(x=-5,5,1/(x^2+x^3),4,[-5,5]);

should be useful and simpler.
I think autoscaling is a nice feature only if it stay an option.
Look at 
? plot(x=-2,2,x^2)

        4 "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
          |x                                                            x|
          | _                                                          _ |
          |                                                              |
          |  "                                                        "  |
          |   "                                                      "   |
          |    x                                                    x    |
          |     x                                                  x     |
          |      _                                                _      |
          |       _                                              _       |
          |        _                                            _        |
          |         _                                          _         |
          |          x                                        x          |
          |           x                                      x           |
          |            x                                    x            |
          |             "_                                _"             |
          |               x                              x               |
          |                "_                          _"                |
          |                  x_                      _x                  |
          |                    x_                  _x                    |
          |                      "x_            _x"                      |
        0 ,,,,,,,,,,,,,,,,,,,,,,,,,,"xx______xx",,,,,,,,,,,,,,,,,,,,,,,,,,
          -2                                                             2
and
? plot(x=-1,1,x^2)

        1 "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
          |x                                                            x|
          | _                                                          _ |
          |                                                              |
          |  "                                                        "  |
          |   "                                                      "   |
          |    x                                                    x    |
          |     x                                                  x     |
          |      _                                                _      |
          |       _                                              _       |
          |        _                                            _        |
          |         _                                          _         |
          |          x                                        x          |
          |           x                                      x           |
          |            x                                    x            |
          |             "_                                _"             |
          |               x                              x               |
          |                "_                          _"                |
          |                  x_                      _x                  |
          |                    x_                  _x                    |
          |                      "x_            _x"                      |
        0 ,,,,,,,,,,,,,,,,,,,,,,,,,,"xx______xx",,,,,,,,,,,,,,,,,,,,,,,,,,
          -1                                                             1

It is exactly the same graph!

If we want to see a difference, we must use scales with the same X/Y
ratio.

Bill.