This is a file from the Wikimedia Commons

File:Matlab gradient.png

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Matlab_gradient.png(640 × 480 pixels, file size: 42 KB, MIME type: image/png)

Summary

Description
English: Matlab color gradient made with gnuplot
Date
Source Own work
Author Adam majewski
Other versions

Gnuplot source code

set terminal png
set output "matlab.png"
# Approximate the default palette used by MATLAB:
set pal defined (1 '#00008f', 8 '#0000ff', 24 '#00ffff', 40 '#ffff00', 56 '#ff0000', 64 '#800000')
test palette


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: RGB
gamma is 1.5


show palette gradient
  0. gray=0.0000, (r,g,b)=(0.0000,0.0000,0.5608), #00008f =   0   0 143
  1. gray=0.1111, (r,g,b)=(0.0000,0.0000,1.0000), #0000ff =   0   0 255
  2. gray=0.3651, (r,g,b)=(0.0000,1.0000,1.0000), #00ffff =   0 255 255
  3. gray=0.6190, (r,g,b)=(1.0000,1.0000,0.0000), #ffff00 = 255 255   0
  4. gray=0.8730, (r,g,b)=(1.0000,0.0000,0.0000), #ff0000 = 255   0   0
  5. gray=1.0000, (r,g,b)=(0.5020,0.0000,0.0000), #800000 = 128   0   0

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.

Captions

Matlab color gradient

Items portrayed in this file

depicts

10 January 2020

image/png

File history

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

Date/TimeThumbnailDimensionsUserComment
current21:13, 10 January 2020Thumbnail for version as of 21:13, 10 January 2020640 × 480 (42 KB)Soul windsurferUser created page with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file: