Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: Add scale bar to Image

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126939] Re: Add scale bar to Image
  • From: JJ <slapjack0 at gmail.com>
  • Date: Mon, 18 Jun 2012 05:48:15 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jrk2lc$8kc$1@smc.vnet.net>

Got it to work with,

photo = Import["photo.tiff"];
marks = Table[{x,x^2},{x,0,1000,100}];
Show[photo, Frame->True, FrameTicks->{marks,None}]

If this was a Plot[..] (not within Show[..]), I believe Ticks->{..} would have worked in the same way.

Thanks,



On Sunday, June 17, 2012 8:57:32 AM UTC+1, JJ wrote:
> Hello,
> 
> I'm looking for a way to add a scale to an image (an imported TIFF file). 
> I've searched the forums, but many answers are for Graphics (generated plots etc), not Images. 
> 
> I have,
> photo = Import["example.jpg"]
> 
> If I use, 
> Show[photo, Frame->True]
> the frame is very nice, but is it possible to scale the numbers it uses? (or somehow overlay a axis onto the image?)
> 
> Thanks



  • Prev by Date: Re: Parenthesis reduction
  • Next by Date: Re: Parenthesis reduction
  • Previous by thread: Re: Add scale bar to Image
  • Next by thread: Parenthesis reduction