I have the following ArrayPlot:
M = RandomReal[1, {5, 9}];
ArrayPlot[M, FrameTicks -> Automatic, DataRange -> {{11, 19}, {1, 5}},
AspectRatio -> 1/2]
Now, I wanted to use PlotRange to plot only the columns 12 to 18, so I tried this:
ArrayPlot[M, FrameTicks -> Automatic, DataRange -> {{11, 19}, {1, 5}},
AspectRatio -> 1/2, PlotRange -> {{12, 18}, All}]
But when I do this, a part of the plot is cut off because the numbers in PlotRange are not interpreted as the orders of the columns. Is there a way that I can select the orders of the columns I want to be ploted ?
Is there a way, for example, that the orders of the columns are given by a list, like, in this case, x={11,12,13,14,15,16,17,18,19,20}, and I can use this to select just 12 to 18? That would be great.
PlotRange -> {{11.5, 18.5}, All}
orPlotRange -> {{11.5, 18.5}, {0.5, 5.5}}
? $\endgroup$