Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Tick Labels Example

  • To: mathgroup at
  • Subject: [mg47198] Re: Tick Labels Example
  • From: bobhanlon at (Bob Hanlon)
  • Date: Tue, 30 Mar 2004 04:01:50 -0500 (EST)
  • References: <c48qkp$lo7$>
  • Sender: owner-wri-mathgroup at

The searchable archive is at

p1 = Plot[x^2-2x+1, {x,-2,3}, 

Show[p1, DisplayFunction->$DisplayFunction,
    PlotLabel -> "Original Plot"];

Changing FontSize and FontWeight:

Show[p1, DisplayFunction->$DisplayFunction,
    TextStyle-> {FontSize->12, FontWeight->"Bold"},
    PlotLabel -> "Changed Font Size and Weight"];

Also changing the length and thickness of the Ticks and using different style
for label

oldTicks= Ticks /. AbsoluteOptions[p1];

newTicks = oldTicks /. {
        {x_, 0.} -> {3/2x, 0},
        x_?(Abs[Round[#]-#]<10^-10&) -> Round[x]};

Show[p1, Ticks -> newTicks, 
    TextStyle-> {FontSize->12, FontWeight->"Bold"},
    PlotLabel -> StyleForm["New Ticks and Label Style", 
        FontSlant->"Italic", FontWeight->"Plain"]];

Bob Hanlon

In article <c48qkp$lo7$1 at>, Terry <tharter at> wrote:

<< I'm sure its been posted here before in the past (is there a 
newsgroup archive that is searchable?), but could some one post an 
example of how to get the Tick Labels in  a 2D Plot  displayed  in  
something other  than the  "Default" settings.  for example, change the  
font size, and  the "Boldness" attribute.  Any simple example will do.   
I don't need to produce any new  tick marks than what the  default 
gives,   I just want them to appear more visible. >><BR><BR>

  • Prev by Date: RE: Tick Labels Example
  • Next by Date: RE: Dashed space curve
  • Previous by thread: RE: Tick Labels Example
  • Next by thread: RE: Tick Labels Example