MathGroup Archive 2007

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

Search the Archive

Re: MatrixPlot: frame ticks starting with 0?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77958] Re: [mg77907] MatrixPlot: frame ticks starting with 0?
  • From: Carl Woll <carlw at wolfram.com>
  • Date: Wed, 20 Jun 2007 05:40:47 -0400 (EDT)
  • References: <200706191045.GAA07436@smc.vnet.net>

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?