MathGroup Archive 2007

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

Search the Archive

Re: MatrixPlot: frame ticks starting with 0?


robin.gruna at gmail.com wrote:

>Hi,
>I wonder how I can make MatrixPlot in Mathematica v6 to start the
>labeling of the frame ticks with 0? It allways starts the labeling
>with 1.
>Greetings,
>Robin
>  
>
One idea is to replace the ticks after generating the matrix plot:

MatrixPlot[ RandomReal[1, {3,3}] ] /. HoldPattern[FrameTicks -> ticks_] :>
  FrameTicks -> (ticks /. {pos_, lab_?NumberQ} -> {pos, lab - 1})

Carl Woll
Wolfram Research


  • Prev by Date: Re: Riddle with Ordering
  • Next by Date: Re: Solving a symbolic complex linear system of equation.
  • Previous by thread: MatrixPlot: frame ticks starting with 0?
  • Next by thread: Re: MatrixPlot: frame ticks starting with 0?