|
From: Daniel J S. <dan...@ie...> - 2017-02-01 22:09:56
|
On 02/01/2017 03:36 PM, Ethan A Merritt wrote:
> On Wednesday, 01 February, 2017 14:04:18 Daniel J Sebald wrote:
>> Often when I am developing a set of plot commands I'll just toss in some
>> colors that are distinguishable, e.g., "red", "green". Something quick.
>> But those colors are often too bright or too monochrome to view
>> comfortably in a more "finished-product" plot such as a publication or
>> application.
>
> Why not use the default colors? Thay are specifically chosen to be
> distinguishable even if the viewer has color vision abnormalities or
> the publication process has changed the color space. If you like primary
> colors or extremes of hue, fine, but what matches your personal
> preference may be very far from what is suitable in publication or in
> a widely-used GUI. See for example Wong (2011) [Nature Methods 8:441],
> which was used as a guide for the default colors.
I personally don't like the extreme hue, but the point was the color
wheel is a convenient way of picking non-extreme colors.
Anyway, the colors listed in "test", i.e., 1, 2, 3, ... sort of works.
I've just tried that (7 looks to be a good medium hue red), but ran into
a little snag with the present code I have:
gnuplot> set object 1 rectangle from first 0,0 to first 2,2 fillcolor 7
fillstyle solid 1.0
^
colorspec option not recognized
Although "linecolor 7" appears to work for lines, fillcolor 7 doesn't
for polygons. Is that supposed to work? I need the color of a fill to
match the color of a line. Oh, wait, guess it does:
gnuplot> set object 1 rectangle from first 0,0 to first 2,2 fillcolor ls
7 fillstyle solid 1.0
> It might be worth extending or replacing this list to include the 140 color
> names in the current w3c HTML standard. Those, by the way, are available
> via a menu at http://www.w3schools.com/colors/colors_names.asp
Or an interpreter option "w3c", e.g.:
... linecolor w3c "PapayaWhip"
Interestingly, w3schools provides a color picker on its website:
http://www.w3schools.com/colors/colors_picker.asp
Dan
>
> Ethan
>
>
>
>> To choose customized colors "#RRGGBB", I often go to some
>> color wheel (usually gimp) and pick the colors visually, for which the
>> color wheel presents the associated RGB values.
>>
>> The thought just came to mind, Why not add a color wheel to the Qt and
>> WXT terminals for the sake of convenience? That is, in the menu bar,
>> put a small "color-wheel" icon that will pop up the framework's
>> color-selector... the selector wouldn't control anything, but simply
>> help the user determine suitable RGB values.
>>
>> Does such a thing sound useful?
>>
>> Having said that, looking through the Qt terminal I see there is a
>> color-selector example already used for picking the background. So,
>> what I'm suggesting is already present. However, the color-selector
>> isn't obvious enough as a feature for convenience.
>>
>> BTW, the Qt background color selection has what I'd consider a bug. Do
>> some test plot:
>>
>> set term qt
>> plot x
>>
>> and then click on the wrench/settings icon. "Select background color"
>> has a white patch associated with it. Click on "Select background
>> color". Click "Cancel", and the QColorDialog closes but the associated
>> patch has turned black. I'd assume that "Cancel" should not change the
>> example patch.
>>
>> Dan
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> gnuplot-beta mailing list
>> gnu...@li...
>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
>
|