File:Gnuplot HSV gradient.png

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.
Category:Other images that should use vector graphics#%20Gnuplot%20HSV%20gradient.pngCategory:PNG that should use vector graphics

Summary

Description
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:
w:en:Creative Commons
attribution share alike
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.
Category:CC-BY-SA-4.0#Gnuplot%20HSV%20gradient.pngCategory:Self-published work

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);
Category:Color gradient Category:Images with Gnuplot source code Category:HSV Category:Images with Octave source code
  1. octave function hsv
Category:CC-BY-SA-4.0 Category:Color gradient Category:HSV Category:Images with Gnuplot source code Category:Images with Octave source code Category:Other images that should use vector graphics Category:PNG that should use vector graphics Category:Self-published work