File:Gnuplot HSV gradient.png

From testwiki
Jump to navigation Jump to search
    Original file (640 × 480 pixels, file size: 43 KB, MIME type: image/png)

    This file is from Wikimedia Commons 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

    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.

    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);
    
    1. ↑ octave function hsv

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    3 January 2019

    image/png

    43,535 byte

    480 pixel

    640 pixel

    1426eab98be7781b0522caa7f6a7c895ab77b746

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current20:50, 3 January 2019Thumbnail for version as of 20:50, 3 January 2019640 × 480 (43 KB)wikimediacommons>Soul windsurferUser created page with UploadWizard

    There are no pages that use this file.