I am using a ContourPlot command to plot a function and unless I explicitly define the ContourShading I get the same colour used for most intervals. Is there any way to fix this?
Here's the function that's not doing what I want
ContourPlot[1/x 1.303 E^(1/2 (-0.48 (-5.3+x)^2-(137 y^2)/x^2)), {x,0,15},{y,-2,2},PlotRange->Full,PlotPoints->10, AspectRatio->1/3,PlotLegends->Automatic] which gives
whereas if I explicitly state the colour shading I get what I expected
ContourPlot[1/x 1.303 E^(1/2 (-0.48 (-5.3 + x)^2 - (137 y^2)/x^2)), {x, 0, 15}, {y, -2, 2}, PlotRange -> Full, PlotPoints -> 10, AspectRatio -> 1/3, PlotLegends -> Automatic, ContourShading -> {White, Red, Green, Blue, Yellow, Purple}] If I play around with PlotRange (All, Full, Automatic) then it changes whether I get the contours different colours, but the ranges also change. Playing around with the number of PlotPoints also changes whether I get contours as expected.
Is this a glitch or expected behaviour? Is there a way to explicitly tell it to use the default theme? This is what I was expecting (and have for different parameter values), so I'd like everything to match the same theme.







{x, 0.1, 15}you get something that looks reasonable. $\endgroup$Cases[Normal@plot, RGBColor[a__], Infinity]. $\endgroup$