Clip the graph from the centre

조회 수: 2 (최근 30일)
Megha
Megha 2018년 12월 31일
댓글: Walter Roberson 2018년 12월 31일
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
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
Cris LaPierre 2018년 12월 31일
Why not just plot values that correspond to X >= 0?
idx = x>=0;
bar(x(idx),y(idx))

카테고리

Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by