* Bug 15481 fixed: scatter() & scatter3d() 17/21417/3
authorSamuel GOUGEON <sgougeon@free.fr>
Thu, 20 Feb 2020 18:44:57 +0000 (19:44 +0100)
committerClément David <clement.david@esi-group.com>
Thu, 8 Apr 2021 14:47:46 +0000 (16:47 +0200)
commit01100bb8542b0790fb1cd64212514f5632937e55
treef9d60f226278f237cb7b042e06cc3191252f8967
parentf0635bd2c4c07f4628d7a59796c1b4d4126f9b51
* Bug 15481 fixed: scatter() & scatter3d()

  http://bugzilla.scilab.org/15481

  Moved from master @ https://codereview.scilab.org/21373

  A short list of fixed issues:

  USAGES
  * scatter() nor scatter3d() could display a single data point (reported bug).
  * The type of X, Y, Z was not checked, leading to weird error messages.
  * X, Y (and Z) should have had the same shape, while only the same
    length is actually required.
  * The properties names were case-sensitive.
  * Colors could not be scaled to data < %eps.
  * Colors could not be specified by their #RRGGBB code nor their index.
  * The handle of polylines was returned even when not requested.
  * The example cleared the current figure instead of the current axes.

  INTERNAL
    a) Warnings were generated, instead of errors.
    b) Warnings messages were not standard.
    c) Warning messages were not localized.
    d) The same colorIndex name was used to name a function and
       a regular variable.

  DOCUMENTATION
    * The thickness option is for all markers. It was not indicated.
    * Examples:
      scatter():
      . 2 clouds of points : images did not match the code
        (negative coord impossible from rand())
      . First spiral: the image did not match with the example code:
        The code does not vary the size of dots.
      scatter3d(): last example:
       . p refered to nothing.
       . color() was called with RGB in [0,1] instead of in [0,255] => dark

  * UNIT TESTS: More than 50+50 tests added.

  * FEATURES ADDED:
      + colors identified with "#RRGGBB" or indices
      + options "smallOnTop" and "datatips"
        (documented only for scatter())

Change-Id: Id26797f8e713d7e3078031c8fc4d1db7c529606c
28 files changed:
scilab/CHANGES.md
scilab/modules/graphics/help/en_US/2d_plot/scatter.xml
scilab/modules/graphics/help/en_US/3d_plot/scatter3d.xml
scilab/modules/graphics/macros/scatter.sci
scilab/modules/graphics/macros/scatter3d.sci
scilab/modules/graphics/tests/nonreg_tests/bug_15481.tst [new file with mode: 0644]
scilab/modules/graphics/tests/unit_tests/scatter.dia.ref [deleted file]
scilab/modules/graphics/tests/unit_tests/scatter.tst
scilab/modules/graphics/tests/unit_tests/scatter3d.tst
scilab/modules/helptools/etc/images_md5.txt
scilab/modules/helptools/images/scatter3d_1.png
scilab/modules/helptools/images/scatter3d_2.png
scilab/modules/helptools/images/scatter3d_3.png
scilab/modules/helptools/images/scatter3d_4.png
scilab/modules/helptools/images/scatter3d_5.png [deleted file]
scilab/modules/helptools/images/scatter3d_6.png [deleted file]
scilab/modules/helptools/images/scatter3d_7.png [deleted file]
scilab/modules/helptools/images/scatter3d_8.png [deleted file]
scilab/modules/helptools/images/scatter3d_9.png [deleted file]
scilab/modules/helptools/images/scatter_1.png
scilab/modules/helptools/images/scatter_2.png
scilab/modules/helptools/images/scatter_3.png
scilab/modules/helptools/images/scatter_4.png
scilab/modules/helptools/images/scatter_5.png
scilab/modules/helptools/images/scatter_6.png [deleted file]
scilab/modules/helptools/images/scatter_7.png [deleted file]
scilab/modules/helptools/images/scatter_8.png [deleted file]
scilab/modules/helptools/images/scatter_9.png [deleted file]