Thread Subject: Drawing "standard" 2D axes in MATLAB

Subject: Drawing "standard" 2D axes in MATLAB

From: First Last

Date: 8 Oct, 2007 20:24:05

Message: 1 of 3

Is there a trivial way to draw the y = 0 and x = 0 lines in
MATLAB? It should be easy to do ...

Subject: Drawing "standard" 2D axes in MATLAB

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 8 Oct, 2007 20:27:49

Message: 2 of 3

In article <fee3l5$i9m$1@fred.mathworks.com>,
First Last <nospam@nospamplease.com> wrote:
>Is there a trivial way to draw the y = 0 and x = 0 lines in
>MATLAB? It should be easy to do ...

You could use line(). Unfortunately you won't know the appropriate
bounds until after you have plotted your other data. Once you
have done the other plot, you can examine the axis's XLim and YLim
to determine the bounds to write to.
--
We regret to announce that sub-millibarn resolution bio-hyperdimensional
plasmatic space polyimaging has been delayed until the release
of Windows Vista SP2.

Subject: Drawing

From: Jos

Date: 8 Oct, 2007 20:44:55

Message: 3 of 3

"First Last" <nospam@nospamplease.com> wrote in message
<fee3l5$i9m$1@fred.mathworks.com>...
> Is there a trivial way to draw the y = 0 and x = 0 lines
in
> MATLAB? It should be easy to do ...

take a look at my GRIDXY:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile
.do?objectId=9973&objectType=FILE

(beware of line wraps) ;

An example:
plot(randn(1000,1),randn(1000,1),'b.') ;
gridxy(0,0,'color','k','linestyle','-','linewidth',2)

hth
Jos

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
plot First Last 8 Oct, 2007 16:25:04
axes First Last 8 Oct, 2007 16:25:04
rssFeed for this Thread

Contact us at files@mathworks.com