MagicPlot Manual

Plotting and nonlinear fitting software

User Tools

Site Tools


colormap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
colormap [Tue Jun 28 23:48:30 2016]
Alexander
colormap [Thu Jan 14 17:17:50 2021] (current)
Alexander
Line 1: Line 1:
 ====== Color Map Plots ====== ====== Color Map Plots ======
  
-To create a Color Map Plot, open Table with matrix data, open context menu and select ''Create Figure'' -> ''Color Map'' or use ''Create Figure'' button on Toolbar. +To create a Color Map Plot, open the Table with matrix data, open context menu and select ''Create Figure'' -> ''Color Map'' item or use ''Create Figure'' button on the Toolbar.
  
-Selection in table is ignored, the whole table is used for plotting matrix.+Selection in the table is ignored, the whole table is used for plotting matrix.
  
 {{::create-color-map.png?nolink|Creating Color Map Plot}} {{::create-color-map.png?nolink|Creating Color Map Plot}}
  
-Color Map Plot can be configured in Properties dialog which can be opened by double click on Color Map or using context menu.+The Color Map Plot can be configured in the Properties dialog which can be opened by double click on the Color Map or using the context menu.
  
 {{::color-map-context-menu.png?nolink|}} {{::color-map-context-menu.png?nolink|}}
Line 13: Line 13:
 ===== Specifying X/Y Data for Color Map Plot ===== ===== Specifying X/Y Data for Color Map Plot =====
  
-X and Y data for plotting can be specified in 'Data' tab of Properties dialog. MagicPlot supports 3 alternatives for X and Y values for plotting matrix:+X and Y data for plotting can be specified in the 'Data' tab of the Properties dialog. MagicPlot supports 3 alternatives for X and Y values for the plotting matrix:
  
   - Manual range   - Manual range
Line 19: Line 19:
   - Column from another table   - Column from another table
  
-Non-uniform (not equally spaced) data in X/Y columns is supported. Values can also be unsorted.+The non-uniform (not equally spaced) data in the X/Y columns is supported. The values can also be unsorted.
  
 {{::color-map-data-tab.png?nolink|}} {{::color-map-data-tab.png?nolink|}}
Line 25: Line 25:
 ===== Color Map Plots and other Curves ===== ===== Color Map Plots and other Curves =====
  
-In MagicPlot Color Map Plot is treated as generalized 'curve', so it can be combined on one plot with other curves in one Axes box. Color Map Plot is shown in 'Components' list in Figure properties dialog. The drawing sequence can be changed in this list. You can copy and paste Color Map Plots between Figures and Axes boxes.+In MagicPlot the Color Map Plot is treated as generalized 'Curve', so it can be combined on one Figure with other Curves in the one Axes box. The Color Map Plot is shown in 'Components' list in Figure properties dialog. The drawing sequence can be changed in this list.  
 + 
 +The axes grid (if it is switched on) is drawn on top of the last (upper) Color Map Plot in the Axes box. 
 + 
 +You can select, copy and paste Color Map Plots between Figures and Axes boxes as any other Curves.
  
 {{::color-map-and-curve.png?nolink|}} {{::color-map-and-curve.png?nolink|}}
Line 33: Line 37:
 ===== Customizing Color Map Plot ===== ===== Customizing Color Map Plot =====
  
-The most often used properties of Color Map Plot can be changed on Inspector toolbar (second row of main window toolbar). The full settings list is available in Properties dialog which can be opened by double click on Color Map or from context menu.+The most often used properties of Color Map Plot can be changed on the Inspector toolbar (the second row of main window toolbar). The full settings list is available in the Properties dialog which can be opened by double click on the Color Map or from context menu.
  
 {{::color-map-inspector.png?nolink|}} {{::color-map-inspector.png?nolink|}}
  
-Color Map style and legend color bar style can be edited in Color Map Properties dialog:+The Color Map style and the legend color bar style can be edited in the Color Map Properties dialog:
  
 {{::color-map-style-tab.png?nolink|}} {{::color-map-style-tab.png?nolink|}}
Line 45: Line 49:
 ===== Customizing Color Map Palette ===== ===== Customizing Color Map Palette =====
  
-Color Map palette can be customized by pressing 'Customize' button on 'Style' tab of Color Map properties dialog.+The Color Map palette can be customized by pressing the 'Customize' button on the 'Style' tab of the Color Map properties dialog.
  
 {{::palette-dialog.png?nolink|}} {{::palette-dialog.png?nolink|}}
 +
 +The buttons below the color table are:
 +
 +  * **Insert Before** -- inserts a new line before the current selection. The default color and data level values for the new line are calculated as the average of the values from the previous and the next lines.
 +  * **Remove** -- removes selected lines from table.
 +  * **Distribute Evenly** -- evenly distributes levels and colors in selected lines or in the whole table if less then 3 lines are selected.
 +  * **Invert Sequence** -- inverts the sequence of colors; the new data levels are calculated as 1-L where L is the initial level value.
  
 ===== Color Map Palette Presets ===== ===== Color Map Palette Presets =====
  
-MagicPlot contains several build-in palette presets. After editing palette you can also save your own preset by pressing 'Save Preset' button. Selected preset can be renamed or deleted using 'Menu' button.+MagicPlot contains several build-in palette presets. After editing palette you can also save your own preset by pressing the 'Save Preset' button. The selected preset can be renamed or deleted using 'Menu' button. 
 + 
 +Custom presets are saved in files with the .mppc extension. You can open the folder which contains custom preset files using the 'Menu' button. Use the 'Reload Presets List' menu item after adding new files in the presets folder. 
 + 
 +===== Get More Palette Presets =====
  
-Custom presets are saved in files with .mppc extension. You can open folder which contains custom presets files using 'Menu' button. Use 'Reload Presets List' menu item after adding new files in presets folder.+More palette presets can be found on this page: [[palettes]]
  
 ===== Creating Palette from Color List ===== ===== Creating Palette from Color List =====
  
-You can import palette from other applications or text files using 'Menu' button. MagicPlot supports RGB values and hexadecimal color codes.+You can import palette from other applications or text files using the 'Menu' button. MagicPlot supports RGB values and hexadecimal color codes.
  
-Current palette setting will be overridden (this operation can be undone).+The current palette setting will be overridden (this operation can be undone).
  
 {{::palette-dialog-menu.png?nolink|}} {{::palette-dialog-menu.png?nolink|}}
Line 65: Line 80:
 ==== Pasting RGB(A) Values ==== ==== Pasting RGB(A) Values ====
  
-You can paste ''red, green, blue'' values or ''red, green, blue, alpha'' values in opened dialog box. Values must be separated by comma, semicolon, tab or space, one color per line. Both 0...1 and 0.255 values are automatically supported. +You can paste ''red, green, blue'' values or ''red, green, blue, alpha'' values in the opened dialog box. The values must be separated by comma, semicolon, tab or space, one color per line. The both 0...1 and 0.255 values are automatically supported. 
  
-Comma as decimal separator is supported only if values are separated by tabs or semicolons. Otherwise only dot must be used as decimal separator.+The comma as decimal separator is supported only if values are separated by tabs or semicolons. Otherwise the dot only must be used as decimal separator.
  
 {{::create-palette-from-rgb.png?nolink|}} {{::create-palette-from-rgb.png?nolink|}}
Line 73: Line 88:
 ==== Pasting Hexadecimal Color Codes ==== ==== Pasting Hexadecimal Color Codes ====
  
-Paste hexadecimal color codes in opened window. Values can be with or without '#' prefix. Values must be separated by new line, comma, semicolon, tab or space characters.+Paste hexadecimal color codes in the opened window. The values can be with or without the '#' prefix. The values must be separated by the new line, comma, semicolon, tab or space characters.
  
 {{::create-palette-from-hex.png?nolink|}} {{::create-palette-from-hex.png?nolink|}}
Line 79: Line 94:
 ===== Technical notes ===== ===== Technical notes =====
  
-==== Exporting of Vector Image ====+==== Exporting of Vector Image ====
  
-MagicPlot renders color map plot as a high-resolution raster image which is included into vector image file (EPS, PDF, SVG, EMF). Therefore file size does not depend on data matrix dimensions. The resolution of color map image is set by DPI value in Canvas tab of Figure properties dialog.+MagicPlot renders the Color Map Plot as a high-resolution raster image which is included into the vector image file (EPS, PDF, SVG, EMF). Therefore the file size does not depend on the data matrix dimensions. The resolution of the Color Map image is set by the DPI value in the 'Canvastab of the Figure properties dialog.
  
-Postscript (EPS) and EMF image format does not support transparency in color maps.+The Postscript (EPS) and EMF image format does not support the transparency in the color maps
 + 
 +==== Palette Colors Storage ==== 
 + 
 +MagicPlot store palette colors as 4 floating-point numbers (Red, Green, Blue, Opacity). Note that even if color components are represented in 0...255 range, the fractional digits still make sense if smooth color interpolation is selected.
  
 ==== Color Interpolation ==== ==== Color Interpolation ====
  
-In 'Smooth' and 'Manual Levels' color interpolation modes MagicPlot interpolates colors in sRGB color space.+In the 'Smooth' and 'Manual Levels' color interpolation modes MagicPlot interpolates colors linearly in the sRGB color space.
  
 ==== Bicubic Image Interpolation ==== ==== Bicubic Image Interpolation ====
  
-MagicPlot supports 3 color map spatial interpolation modes: nearest neighbor (off), bilinear and bicubic. +MagicPlot supports 3 color map spatial interpolation modes: off (nearest neighbor), bilinear and bicubic.  
 + 
 +MagicPlot performs the bicubic interpolation using the [[wp>cubic Hermite spline]]. For uniform (equally spaced) x or y values this method is equal to the conventional [[wp>bicubic interpolation]] algorithm (which is widely used for the image resizing) with the coefficient ''a=-0.5''
 + 
 +===== See Also =====
  
-MagicPlot performs bicubic interpolation using [[wp>cubic Hermite spline]]. For uniform (equally spaced) x and y values this method is equal to the conventional bicubic interpolation algorithm (which is widely used for image resizing) with coefficient ''a=-0.5''.+  * [[palettes]]
colormap.1467146910.txt.gz · Last modified: Tue Jun 28 23:49:01 2016 (external edit)