axis color disappear when using the white_jet color map
Show older comments
Hello everyone and Happy New Year
I am trying to draw a slip distribution graph and want to show the parts with no slip White
I found a Function in File Exchange "colormap jet_white", it is almost what I need except that by using this function my axis disappear!
Is there any way to superpose axis on top ,or any other way to have my color map from White Zero
6 Comments
Stephen23
on 7 Jan 2019
@Samaneh Arzpeima: in your title you mention "white_jet", which I cannot find anywhere. In your question you mention "jet_white", which is available on FEX, and is presumably the function you meant to write in the title.
Jim
on 7 Jan 2019
Hi Samenah,
The help on jet_white states
"Since the "jet" colormap matrix can vary in size depending on the plot that it will be applied to, this function should be executed after any plot commands."
I wonder if moving the jet_white execution code below all of your plot commands will solve your issue? Please let me know. Thanks.
Walter Roberson
on 8 Jan 2019
jet_white appears to have been removed from the File Exchange. I do see jetwhite though, at https://www.mathworks.com/matlabcentral/fileexchange/48419-jetwhite-colours
Samaneh Arzpeima
on 8 Jan 2019
Walter Roberson
on 8 Jan 2019
colormap(flipud(jetwhite(256)))
Samaneh Arzpeima
on 8 Jan 2019
Answers (3)
Jim
on 7 Jan 2019
0 votes
Hi Samenah,
The help on jet_white states
"Since the "jet" colormap matrix can vary in size depending on the plot that it will be applied to, this function should be executed after any plot commands."
I wonder if moving the jet_white execution code below all of your plot commands will solve your issue? Please let me know. Thanks.
1 Comment
Samaneh Arzpeima
on 8 Jan 2019
Samaneh Arzpeima
on 8 Jan 2019
0 votes
4 Comments
@Samaneh Arzpeima: use the debugging tools: set a breakpoint at the start of your code, step through until you find the line where the axes disappear. Then tell us exactly which line it is.
If you want someone to run your code then you will need to upload the following:
- the d.mat file
- the colormap the you are using.
Samaneh Arzpeima
on 9 Jan 2019
Stephen23
on 9 Jan 2019
"I couldn't know how to debug and find the problem line!"
You have to learn to use the debugging tools. They are indispensible in any programming language. Start here:
You will also find plenty of (video) tutorials online.
Samaneh Arzpeima
on 9 Jan 2019
Categories
Find more on Orange in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

