Skip to content

Stereoplots: Wrong setup of Scientific colour maps by F. Crameri #13

@yvonnefroehlich

Description

@yvonnefroehlich

First reported by @yvonnefroehlich in PR #4.

This issue focuses on an error in the function SWS_Analysis_BASIC_stereoplot.m regarding setting up the Scientific colour maps by F. Crameri.

By default, each MATLAB structure (one per colormap) contains 256 records or hues (.mat files available from Zenodo). Here, this is unchanged used to visualize the fast polarization direction (phi) with a value range of -90:1:90. As the colormap is not adjusted to fit to this different value range, the color-value assignment is wrong. Also, the related figures shown in the README are wrong.

One option is to use a MATLAB file exchange function (or https://github.com/chadagreene/crameri), as it is done in PR #4. However, this function is not updated promptly after a new release of the SCM. Of course, users can build the required mat structure by themselves (I do this). Despite this, I am currently thinking about finding another solution (thus I closed PR #4).

Example (using this function as provided, without any adjustments to make the plot look nice)
Stereo_crameri_color_value_assingement

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions