Thread Subject: add a scale or 'ruler' to a graph

Subject: add a scale or 'ruler' to a graph

From: martin

Date: 19 Mar, 2008 14:02:07

Message: 1 of 4

hi
is there an easy way to add a 'ruler' (like the one
I-don't-know-the-english-expression on a map) giving the
scale (1cm on the plot means 3 units or something like this)??

I have to draw simple scetch-maps, and real axis need too
much space, so I'd like to reduce them to a, say,
white-and-gray bar with warks for the simgle units....

any matching keywords or ideas?

thanks..
martin

Subject: add a scale or 'ruler' to a graph

From: Thomas Clark

Date: 20 Mar, 2008 18:32:03

Message: 2 of 4

Change the x tick labels to be the appropriate scales - that
way you don't need a scaling bar. The labels don't have to
correspond to the units!

Search for xticklabels in the help documentation for a how-to.

http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f0-41699.html&http://www.mathworks.com/cgi-bin/texis/webinator/search?pr=Documentation&db=MSS&prox=page&rorder=750&rprox=750&rdfreq=500&rwfreq=500&rlead=250&sufs=0&order=r&documentation=Documentation&is_summary_on=1&ResultCount=10&query=xticklabels&submit=Search

Cheers

Tom Clark

Subject: add a scale or 'ruler' to a graph

From: martin

Date: 20 Mar, 2008 19:15:04

Message: 3 of 4

"Thomas Clark" <t.clarkremove_spam@cantab.net> wrote in
message <fruaj2$mbn$1@fred.mathworks.com>...
> Change the x tick labels to be the appropriate scales - that
> way you don't need a scaling bar. The labels don't have to
> correspond to the units!
>
> Search for xticklabels in the help documentation for a how-to.
>
>
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f0-41699.html&http://www.mathworks.com/cgi-bin/texis/webinator/search?pr=Documentation&db=MSS&prox=page&rorder=750&rprox=750&rdfreq=500&rwfreq=500&rlead=250&sufs=0&order=r&documentation=Documentation&is_summary_on=1&ResultCount=10&query=xticklabels&submit=Search
>
> Cheers
>
> Tom Clark
thanks. ok.
is there a way to make a bar with a certain thickness out of
the axis' vestiges, best changing color (w-k-w or
something) with every xtick?

Subject: add a scale or 'ruler' to a graph

From: Paul

Date: 21 Mar, 2008 14:01:02

Message: 4 of 4

"martin " <mmqwertz@gmx.de> wrote in message
<frud3o$olj$1@fred.mathworks.com>...
> "Thomas Clark" <t.clarkremove_spam@cantab.net> wrote in
> message <fruaj2$mbn$1@fred.mathworks.com>...
> > Change the x tick labels to be the appropriate scales - that
> > way you don't need a scaling bar. The labels don't have to
> > correspond to the units!
> >
> > Search for xticklabels in the help documentation for a
how-to.
> >
> >
>
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f0-41699.html&http://www.mathworks.com/cgi-bin/texis/webinator/search?pr=Documentation&db=MSS&prox=page&rorder=750&rprox=750&rdfreq=500&rwfreq=500&rlead=250&sufs=0&order=r&documentation=Documentation&is_summary_on=1&ResultCount=10&query=xticklabels&submit=Search
> >
> > Cheers
> >
> > Tom Clark
> thanks. ok.
> is there a way to make a bar with a certain thickness out of
> the axis' vestiges, best changing color (w-k-w or
> something) with every xtick?


the mapping toolbox has a scale feature. Maybe you can make
maps instead of plots (they would look the same).

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com