({{, (RefLink[DataReversed, paclet:ref/DataReversed])
is an option for (RefLink[ArrayPlot, paclet:ref/ArrayPlot]) and related functions that specifies whether data should be plotted in reverse order.}})

OpenersNotesSection(Spacer1)Details

(RefLink[DataReversed, paclet:ref/DataReversed])->(RefLink[True, paclet:ref/True]) specifies that the order of rows should be reversed, effectively turning the plot upside down.

(RefLink[DataReversed, paclet:ref/DataReversed])->{row,col} specifies whether each row and each column should be reversed.

OpenersPrimaryExamplesSection(Spacer1)Examples  (6)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Reverse the order of rows, turning the image upside down:

ArrayPlot[CellularAutomaton[30,{{1},0},10],DataReversed->True]

OpenersExampleSection1(Spacer1)Scope  (1)

The frame ticks give the original row numbers:

ArrayPlot[CellularAutomaton[30,{{1},0},10],FrameTicks->Automatic,DataReversed->True]

OpenersExampleSection2(Spacer1)Generalizations & Extensions  (1)

Reverse in x but not y:

ArrayPlot[CellularAutomaton[30,{{1},0},10],DataReversed->{True,False}]

OpenersExampleSection4(Spacer1)Properties & Relations  (3)

With (RefLink[DataReversed, paclet:ref/DataReversed])->(RefLink[True, paclet:ref/True]), (RefLink[ArrayPlot, paclet:ref/ArrayPlot]) gives the same orientation as (RefLink[ListDensityPlot, paclet:ref/ListDensityPlot]):

ListDensityPlot[CellularAutomaton[30,{{1},0},10]]

ArrayPlot[CellularAutomaton[30,{{1},0},10],DataReversed->True]

(RefLink[DataReversed, paclet:ref/DataReversed])->(RefLink[True, paclet:ref/True]) is equivalent to reversing the input to (RefLink[ArrayPlot, paclet:ref/ArrayPlot]):

ArrayPlot[Reverse[CellularAutomaton[30,{{1},0},10]]]

(RefLink[DataReversed, paclet:ref/DataReversed])->{(RefLink[False, paclet:ref/False]),(RefLink[True, paclet:ref/True])} effectively maps (RefLink[Reverse, paclet:ref/Reverse]) onto each row:

ArrayPlot[CellularAutomaton[30,{{1},0},10],DataReversed->{False,True}]

ArrayPlot[Reverse/@CellularAutomaton[30,{{1},0},10]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Reverse, paclet:ref/Reverse])  ▪  (RefLink[Transpose, paclet:ref/Transpose])  ▪  (RefLink[DataRange, paclet:ref/DataRange])}})}})