Clip the graph from the centre
1 回表示 (過去 30 日間)
古いコメントを表示
How can i clip my graph from origin as shown in attached figure.
Here, it can be observed that the dataset between -2 to 2 is centred.
-ve y-axis is renamed to +ve values. So do not get confused. It is just
a different labbeling.

1 件のコメント
Walter Roberson
2018 年 12 月 31 日
You have a log scale x axis that goes into negative x and which does not present an infinite room between 0 and 1. Your required output does not appear to be well defined as to where on the graph any particular x value should appear.
回答 (1 件)
Cris LaPierre
2018 年 12 月 31 日
Why not just plot values that correspond to X >= 0?
idx = x>=0;
bar(x(idx),y(idx))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!