Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: bar same X-axis two Y axis
Date: Wed, 31 Dec 2008 00:33:51 -0500
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <gjf07v$3kc$1@fred.mathworks.com>
References: <gje1jo$4p4$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1230701631 3724 144.212.105.187 (31 Dec 2008 05:33:51 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 31 Dec 2008 05:33:51 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:509295



"Et'o Pat" <patmbom@hotmail.com> wrote in message 
news:gje1jo$4p4$1@fred.mathworks.com...
>I have two sets of data of different scales. From which I try draw a double 
>bar chart. Because of the problem of  differents   scales, only one bar can 
>be seen in the figure. One solution can be to normalized the data with 
>large scale, but I wish to plot the bar with their real scales.
>
> Can you help me to draw a multi-bar with the same X-axis and two-Y axis 
> such that the scale of the first Y-axis is for the first bar and the scale 
> of the second one corresponds to the second bar.

Use the five- or six-input form of PLOTYY, specifying BAR as the function to 
use to plot on each axes.

-- 
Steve Lord
slord@mathworks.com