Multiple errorbars + separated markers

Hi there community, I'm trying to create an errorbar figure with 3 conditions on x axis (say: 1, 2, 3) and one variable on y axis (say heart rate) of two different groups (say, group a and group B).
Whe I plot, I get one marker on top of the other, so my question is how can I plot both markers but with a tiny separation, keeping them in the same space of condition (x axis).
Thanks in advance !

3 件のコメント

the cyclist
the cyclist 2021 年 2 月 11 日
Can you provde details about how you have the information (y values and groups) stored currently? The ideal would be to upload the data themselves in a MAT file.
Adam Danz
Adam Danz 2021 年 2 月 11 日
A screenshot is worth 1000 words 😎
Juan Guerrero
Juan Guerrero 2021 年 2 月 12 日
Solved ! for each plot, different x value axis, but close enough for keeping together. Then, merged plots with hold on
xx = [1,2,3];
xx2 = [0.9,1.9,2.9];
Thanks !

サインインしてコメントする。

回答 (1 件)

Juan Guerrero
Juan Guerrero 2021 年 2 月 12 日

0 投票

Figuered out ! I assigned different x axis values for ploting y values, close enough for not losing alignment with xtick.
Thanks for your attention.

カテゴリ

ヘルプ センター および File ExchangeErrorbars についてさらに検索

質問済み:

2021 年 2 月 11 日

コメント済み:

2021 年 2 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by