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 Kommentar

Walter Roberson
Walter Roberson am 31 Dez. 2018
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Cris LaPierre
Cris LaPierre am 31 Dez. 2018

0 Stimmen

Why not just plot values that correspond to X >= 0?
idx = x>=0;
bar(x(idx),y(idx))

Kategorien

Mehr zu Discrete Data Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 31 Dez. 2018

Kommentiert:

am 31 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by