plotyyy: third plot as bar

4 次查看(过去 30 天)
Tino K.
Tino K. 2016-2-9
Hey to everyone,
is it possible for the plotyyy-function to have the third plot as a bar? I don't know how to solve the problem.
I would be pleased if somebody can give me an idea.

回答(1 个)

Joseph Cheng
Joseph Cheng 2016-2-9
quickest and easiest way would be to edit the plotyy line of the graph to be
[ax,hlines(1),hlines(2)] = plotyy(x1,y1,x2,y2,'bar','plot'); %≈line 45 (?)
and the first xy entry will be the the bar chart.
  2 个评论
Tino K.
Tino K. 2016-2-9
Hey Joseph,
yep. But this "only" plotyy I want to change this one into the plotyyy-function.
Joseph Cheng
Joseph Cheng 2016-2-9
编辑:Joseph Cheng 2016-2-9
look at my comment. you'd have to change the plotyyy() function code around line 45. maybe change and resave the function as barplotplot().

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Two y-axis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by