Group Abstract Group Abstract

Message Boards Message Boards

FrameLabel reverses order of labels

Posted 2 days ago

According to the documentation for FrameLabel, the order of the arguments should be X-axis label first, then Y-axis label. But when I use FrameLabel->{"X","Y"} in ArrayPlot, the result is just the opposite.

   ArrayPlot[zarr,ColorFunction->"Rainbow",Frame->True,FrameLabel->{"X","Y"}]

The Y-axis is labeled "X" and the X-axis is labeled "Y" I am using version 13.2.0 on Mac OS 10.14.6.

Attachment

Attachments:
POSTED BY: Peter Takacs
Posted 2 days ago

The same reversed labels occur in version 14.3.0 on Windows 11. However, for the frame produced by Plot, the labels are correct. This appears to be a bug in ArrayPlot.

POSTED BY: David Keith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard