The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Different color options for two Y axis based bar charts
Replies: 1   Last Post: Mar 28, 2013 3:50 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 33
Registered: 3/21/08
Different color options for two Y axis based bar charts
Posted: Mar 27, 2013 7:12 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I have one X axis and two Y axis, i.e., two different set of outputs for the same input. I want to represent the two Y label data with different color. I am using the following code.


[AX,H1,H2] = plotyy(Channel,Gain,Channel,P,'bar');

set(get(AX(1),'Ylabel'),'String','Link Gain');
set(get(AX(2),'Ylabel'),'String','Optimal Transmit Power');

xlabel('Channel Index');
title('Link Gain and Transmit Power Optimization');


Unfortunately, this is not working. Matlab says that there is no barcolor property in the 'barseries' class.

How can I do it? Any feedback will be appreciated.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.