Prev: Scoping constructs Block, Module, ModuleBlock violate
Next: Problem when importing individual frames from an AVI file
From: eric g on 21 Jul 2010 07:11 Hello Group, I want to put four axes around in this arrayplot, Axes -> True put only two, how to put two more? thnks inadvance Eric ArrayPlot[RandomReal[{-1, 1}, {10, 10}], Frame -> None, Axes -> True]
From: Helen Read on 22 Jul 2010 05:40 On 7/21/2010 7:11 AM, eric g wrote: > Hello Group, > I want to put four axes around in this arrayplot, Axes -> True put only > two, how to put two more? > thnks inadvance > Eric > > ArrayPlot[RandomReal[{-1, 1}, {10, 10}], Frame -> None, Axes -> True] Leave the Frame turned on. ArrayPlot[RandomReal[{-1, 1}, {10, 10}]] If you want ticks all the way around, turn on the FrameTicks. ArrayPlot[RandomReal[{-1, 1}, {10, 10}], FrameTicks -> True] You can pick out where you want ticks if you don't want them all the way around. ArrayPlot[RandomReal[{-1, 1}, {10, 10}], FrameTicks -> {{True, False}, {True, False}}] -- Helen Read University of Vermont
From: Bob Hanlon on 22 Jul 2010 05:44 data = RandomReal[{-1, 1}, {10, 10}]; ArrayPlot[ data, Frame -> True, FrameTicks -> Automatic, Axes -> False] Module[{ ft1 = Table[{n + 1/2, 10 - n}, {n, 0, 10}], ft2 = Table[{n + 1/2, n}, {n, 0, 10}]}, ArrayPlot[ data, Frame -> True, FrameTicks -> {ft1, ft2, ft1, ft2}, Axes -> False]] Bob Hanlon ---- eric g <eric.phys(a)gmail.com> wrote: ============= Hello Group, I want to put four axes around in this arrayplot, Axes -> True put only two, how to put two more? thnks inadvance Eric ArrayPlot[RandomReal[{-1, 1}, {10, 10}], Frame -> None, Axes -> True]
From: David Park on 22 Jul 2010 05:45 An ArrayPlot has the default option FrameTicks -> None, which is why Frame didn't work. But you could do something like this: ArrayPlot[RandomReal[{-1, 1}, {10, 10}], DataRange -> {{0.5, 9.5}, {0.5, 9.5}}, Frame -> True, FrameTicks -> Automatic, PlotRange -> {{-.1, 10.1}, {-.1, 10.1}}, PlotRangePadding -> 0.05] David Park djmpark(a)comcast.net http://home.comcast.net/~djmpark/ From: eric g [mailto:eric.phys(a)gmail.com] Hello Group, I want to put four axes around in this arrayplot, Axes -> True put only two, how to put two more? thnks inadvance Eric ArrayPlot[RandomReal[{-1, 1}, {10, 10}], Frame -> None, Axes -> True]
From: Bill Rowe on 22 Jul 2010 05:45
On 7/21/10 at 7:12 AM, eric.phys(a)gmail.com (eric g) wrote: >Hello Group, I want to put four axes around in this arrayplot, Axes >-> True put only two, how to put two more? thnks inadvance Eric >ArrayPlot[RandomReal[{-1, 1}, {10, 10}], Frame -> None, Axes -> >True] Something like this? ArrayPlot[RandomReal[{-1, 1}, {10, 10}], Frame -> True, FrameTicks -> Automatic] |