1
$\begingroup$

I'm happy with Mathematica's inbuilt Colour Function Editor. However, I wish to add some extra functionalities to this to make it customised for my purpose. For example,

  1. I wish to manipulate the number of bins for the histogram plot.

  2. By default, the number of keys should be equal to the number of peaks in the histogram and the key should be placed exactly at the peak points.

  3. I also wish to have a provision to apply custom colour scheme as well.

$\endgroup$
4
  • 1
    $\begingroup$ @Kuba I had the same question. Google brought me to this: Edit Color Function Palette for Image3D. Apparently it is a tool to edit the color function used to represent a 3D dataset, like Image3D. I have never used it, nor did I know it existed :-) $\endgroup$
    – MarcoB
    Jan 31, 2017 at 16:09
  • 3
    $\begingroup$ Get["GeneralUtilities`"]; PrintDefinitions@Image`ColorFunctionEditor $\endgroup$
    – Kuba
    Jan 31, 2017 at 16:47
  • $\begingroup$ @Kuba: It's giving me a syntax error message: Syntax::tsntxi: "<<GeneralUtilities\n PrintDefinitions@ImageColorFunctionEditor" is incomplete; more input is needed. $\endgroup$
    – user36426
    Jan 31, 2017 at 17:45
  • $\begingroup$ Ad 2. Click on the plot while pressing Alt. Another locator will be created. $\endgroup$
    – Kuba
    Jan 31, 2017 at 22:02

1 Answer 1

3
$\begingroup$

There is a minor error in Kuba's comment. Try this

Needs["GeneralUtilities`"];
PrintDefinitions @ Image`ColorFunctionEditor;

You should get a window that looks like this

window

Within that Notebook the function names, e.g. ColorFunctionEditorInline, may be clicked to open an new Notebook with code for that function, and so on, to view more of the code behind this function.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.