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?
-
1$\begingroup$ Do you want discrete steps or a continuous gradient? $\endgroup$– Mr.WizardFeb 28, 2017 at 15:26
-
$\begingroup$ Discrete, distance between each step should be 1. $\endgroup$– ParvizFeb 28, 2017 at 15:27
-
$\begingroup$ I that case you are going to run into this issue: (85444) $\endgroup$– Mr.WizardFeb 28, 2017 at 15:31
1 Answer
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]]