MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: x and y labels in ArrayPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113707] Re: x and y labels in ArrayPlot
  • From: Herman Kuun <oomkoos1 at gmail.com>
  • Date: Mon, 8 Nov 2010 05:38:56 -0500 (EST)

Oops.
Ignore previous message. I see it is a  plot and not a table.

On Mon, Nov 8, 2010 at 10:37 AM, Gordon Robertson <grobertson at bcgsc.ca>wrote:

>
> I would like to plot an array of integer values, and to put labels on
> each row (a,c,b) and column (A,B,C) of the array, with x-labels on the
> left and y-labels above and potentially rotated by 45 or 90 degrees.
> ArrayPlot seems appropriate, but I do not see how to add the labels.
> I've tried to check the Help documentation carefully, including
> MatrixPlot and alternatives, and the WRI demonstrations.
>
> data = {{1, 2, 3},
>   {2, 3, 4},
>   {3, 4, 5}}
> yLabels = {"a", "b", "c"}
> xLabels = {"A", "B", "C"}
> ArrayPlot[data]
>
> Thanks for your help.
>
> Gordon
> --
> Gordon Robertson
> BC Cancer Agency Genome Sciences Centre
> Vancouver BC Canada
> 604-707-5800
> www.bcgsc.ca
>
>
>
>



  • Prev by Date: Re: pure function
  • Next by Date: Re: x and y labels in ArrayPlot
  • Previous by thread: x and y labels in ArrayPlot
  • Next by thread: Re: x and y labels in ArrayPlot