I created a contour plot from my data, the first image below shows the bar chart which I am getting but I need it to look like the second image (I created by paint) the first number should start from zero and go up one by one, how can I do that?

Asked
Active
Viewed 249 times
1
Parviz
- 393
- 2
- 7
-
1Do you want discrete steps or a continuous gradient? – Mr.Wizard Feb 28 '17 at 15:26
-
Discrete, distance between each step should be 1. – Parviz Feb 28 '17 at 15:27
-
I that case you are going to run into this issue: (85444) – Mr.Wizard Feb 28 '17 at 15:31
1 Answers
0
With BarLegend patched according to BarLegend can't make spaced contours when contours number>11 please try:
BarLegend[{"Rainbow", {0, 13}}, Range[0, 13]]
Or:
BarLegend[{"Rainbow", {0, 13}}, Range[0, 12, 1/2]]
