File:Gnuplot HSV gradient.png
From WikiProjectMed
Jump to navigation
Jump to search
Gnuplot_HSV_gradient.png (640 × 480 pixels, file size: 43 KB, MIME type: image/png)
This file is from a shared repository and may be used by other projects. The description on its file description page there is shown below.
This image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with
{{vector version available|new image name}} .
It is recommended to name the SVG file “Gnuplot HSV gradient.svg”—then the template Vector version available (or Vva) does not need the new image name parameter. |
Summary
DescriptionGnuplot HSV gradient.png |
English: 2D RGB profile of the rainbow color gradient ( gnuplot HSV gradient) |
Date | |
Source | Own work |
Author | Adam majewski |
Other versions |
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Gnuplot source code
"The map is obtained by linearly varying the hue through all possible values while keeping constant maximum saturation and value." [1]
set palette model HSV functions gray,1,1
set terminal png
set output 'p.png'
test palette
or
set palette model HSV defined ( 0 0 1 1, 1 1 1 1 )
or
set palette model HSV
set palette rgbformulae 3,2,2
test palette
where:
- 3 = x
- 2 = 1
Test:
show palette
palette is COLOR
color mapping by defined gradient
figure is POSITIVE
all color formulae ARE NOT written into output postscript file
allocating ALL remaining color positions for discrete palette terminals
Color-Model: HSV
gamma is 1.5
show palette gradient
0. gray=0.0000, (r,g,b)=(0.0000,1.0000,1.0000), #00ffff = 0 255 255
1. gray=1.0000, (r,g,b)=(1.0000,1.0000,1.0000), #ffffff = 255 255 255
Octave src code
## https://octave.sourceforge.io/octave/function/hsv.html
## Show the 'hsv' colormap profile and as an image
cmap = hsv (256);
subplot (2, 1, 1);
rgbplot (cmap, "composite");
subplot (2, 1, 2);
rgbplot (cmap);
Items portrayed in this file
depicts
some value
3 January 2019
image/png
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 19:50, 3 January 2019 | 640 × 480 (43 KB) | commons>Soul windsurfer | User created page with UploadWizard |
File usage
There are no pages that use this file.
Retrieved from "https://mdwiki.org/wiki/File:Gnuplot_HSV_gradient.png"