[Bugzilla] [Bug 15481] Samuel GOUGEON has commented the bug
bugzilla.admin at scilab.org
bugzilla.admin at scilab.org
Wed Mar 21 23:28:49 CET 2018
http://bugzilla.scilab.org/show_bug.cgi?id=15481
--------- Bug Summary -----------
scatter fails with 1 data point
---------- Changed by ------------
sgougeon at free.fr
---------- What changed ----------
--- Comment #3 from Samuel GOUGEON <sgougeon at free.fr> ---
(In reply to Samuel GOUGEON from comment #2)
> a) The parsing and tests of their input arguments is not robust. See your report. Another trivial example of inappropriate message:
> --> scatter(1:4, 1:4, 30, "#ff5566");
> ATTENTION : Incorrect number of inputs for property-value pairs.
Actually, this message is presently correct. I was misled because some allowed syntaxes are not documented.
But other syntaxes actually generate inappropriate messages.
(In reply to Oscar van der Velde from comment #1)
> I must note that scatter does not seem to have an option to specify the data value range for the marker size and color. This becomes a problem
> when trying to use scatter as I do, plotting real data of which the points are usually a selection from a wider range of possible values (imagine
> for example lightning lat/lon locations with markers sized by peak current).
> So the range in my 1-point case cannot be properly determined from the data min/max itself.
Ok, i think i have understood your point. In a forthcoming Scilab Enhancement Proposal (SEP), i will propose to add a <"mapColors",colorsLUT> pair of
options, as well as <"mapSizes",sizesLUT>, that will work with msizes and mcolors data:
* min(mcolors) will be drawn with colorsLUT(1)
* max(mcolors) will be drawn with colorsLUT($)
* any mcolors element will be drawn with an interpolated color between colorsLUT(1) and colorsLUT($).
* colorsLUT could have intermediate values, for piecewise linear interpolations.
* It will be possible to specify colors with [r g b] intensities, or their "name", or their "#RRGGBB" hexa codes, or their indices in the colormap.
Same thing for <"mapSizes",sizesLUT>
Is it what you had in mind?
Other options will be proposed.
The SEP will be posted on users@ for discussion.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180321/c04ce88a/attachment.htm>
More information about the Bugzilla
mailing list