getcolor() has a bunch of issues
@sgougeon)
Reported by Samuel GOUGEON (getcolor_bugs.png (16.33 KB, image/png)
plot, getcolor("Title") result (screenshot) with 6.1.0
BUG DESCRIPTION:
----------------
getcolor() has a bunch of issues (see attachment):
1) The GUI briefly appears when it is created, before being masked. This blinking could be avoided.
2) The GUI is always displayed around the left-up corner of the screen. A bit boring.
Our attention (and average mouse position) is rather around the center of the screen.
3) The size of the GUI is poorly tuned:
a) The grid of colored patches should be almost H/V-isoscaled
b) The GUI should be wide enough to let infos completely visible in the status bar.
4) The GUI's title is "Graphic figure number #". Not very convincing...
We propose: "Default colormap" | "Current colormap" according to winsid()==[] result.
5) When a title is provided, it is displayed in a too small size.
6) The set of patches has sometimes some glitch:
close(winsid()); plot; getcolor
7) The getcolor() documentation page misses illustrating the GUI.
ERROR LOG:
----------
None. Poor or wrong rendering
HOW TO REPRODUCE THE BUG:
-------------------------
plot, getcolor("Title")
OTHER INFORMATION:
------------------
When the selected color has a name, this one could also be returned as second output...