Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: help! question about plot

Subject: help! question about plot

From: Haijun Gong

Date: 09 Aug, 2007 23:26:52

Message: 1 of 6

I have some data, t=[1,2,....10^6], y=[.......]
I want to plot y~t, it is simple, my problem is, because I
am more interested in t=[1,10^4], in the interval t=[10^4,
10^6], y value does not change too much, so, I want to plot
y~t, interval t=[1,10^4] with scale 100, and interval t=
[10^4,10^6] with scale 10^4, and they are in the same plot
just with different scale. I really have no idea. thanks a
lot!!!

Subject: Re: help! question about plot

From: us

Date: 09 Aug, 2007 23:53:28

Message: 2 of 6

Haijun Gong:
<SNIP wants to partition his/her plot

one of the copious solutions

% the data
     t=1:10; % let's be a bit more modest...
     y=rand(size(t));
     e1=1:4; % epoch 1
     e2=6:10; % epoch 2: note gap
% the engine
     line(t(e1),-1+.1*y(e1),...
         'marker','o','color',[1,0,0]);
     line(t(e2),1+2*y(e2),...
         'marker','s','color',[0,1,0]);

us

Subject: Re: help! question about plot

From: Haijun Gong

Date: 14 Aug, 2007 19:45:41

Message: 3 of 6

It still does not solve this problem,


"us " <us@neurol.unizh.ch> wrote in message <f9g9do$9j1
$1@fred.mathworks.com>...
> Haijun Gong:
> <SNIP wants to partition his/her plot
>
> one of the copious solutions
>
> % the data
> t=1:10; % let's be a bit more modest...
> y=rand(size(t));
> e1=1:4; % epoch 1
> e2=6:10; % epoch 2: note gap
> % the engine
> line(t(e1),-1+.1*y(e1),...
> 'marker','o','color',[1,0,0]);
> line(t(e2),1+2*y(e2),...
> 'marker','s','color',[0,1,0]);
>
> us

Subject: Re: help! question about plot

From: someone

Date: 14 Aug, 2007 20:01:43

Message: 4 of 6

"Haijun Gong" <gongxy@gmail.com> wrote in message
<f9g7rs$k9f$1@fred.mathworks.com>...
> I have some data, t=[1,2,....10^6], y=[.......]
> I want to plot y~t, it is simple, my problem is, because
I
> am more interested in t=[1,10^4], in the interval t=
[10^4,
> 10^6], y value does not change too much, so, I want to
plot
> y~t, interval t=[1,10^4] with scale 100, and interval t=
> [10^4,10^6] with scale 10^4, and they are in the same
plot
> just with different scale. I really have no idea. thanks
a
> lot!!!

Maybe "plotyy" would be of some help to you.


Subject: Re: help! question about plot

From: us

Date: 16 Aug, 2007 00:24:15

Message: 5 of 6

Haijun Gong:
<SNIP being an impolite chap...

> It still does not solve this problem,...

well, why not?!
would you mind being a bit more specific...
your rant - just by itself - is useless...

us

Subject: Re: help! question about plot

From: Haijun Gong

Date: 24 Aug, 2007 23:52:31

Message: 6 of 6

Hi us
  I mean,
 Because, these two lines still have the same scales on the
xaxis, for example, in your plot, I hope, the red line is
in the range [1,4], the green one is in [10,100], and they
have different scales, and I hope the red line in [1,4] is
not compressed. that is, in your plot, we change nothing,
just replace 6,7,8,9,10 with [60,100], and the plot looks
the same, that is what I need. thank you!


"us " <us@neurol.unizh.ch> wrote in message
<fa05ff$j5k$1@fred.mathworks.com>...
> Haijun Gong:
> <SNIP being an impolite chap...
>
> > It still does not solve this problem,...
>
> well, why not?!
> would you mind being a bit more specific...
> your rant - just by itself - is useless...
>
> us

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
code us 09 Aug, 2007 19:55:33
graphics us 09 Aug, 2007 19:55:33
index us 09 Aug, 2007 19:55:33
logical indexing us 09 Aug, 2007 19:55:33
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics