How to insert infinity symbol to X axis of Matlab Bar graph? -
How can I add an infinity symbol to the x-axis of the matab bar graph?
Naturally, it is possible that the inserted code has been seen in the last line, as to insert an infinite symbol for xlabel i.e. '\ infty'
.
But, I want to add infinity to the X-axis bar labeled X axis.
How can I do this? For detailed explanation, the following script has been added:
data = [1 2 3; 1 3 4; 3 1 2]; Set (GCA, 'Yelim', [0 3]) set (GCA, 'Votic', [0: 0.5: 3]) Set (GCA, 'WickelBabel', Number 2-25 (Receive GCA , 'Yick', '% 02.1f %%') (GCA, 'Exact', 1: 3, 'ExtremeBel', {'\ infty'; '20dB '; '15 dB'}) xlabel '\ Infty db')% x-axis labels
data = [1 2 3; 1 3 4; 3 1 2]; bar (GCA, 'Yelim', [0]] set ( Set GCA, 'Vicik', [0: 0.5: 3]) set (GCA, 'Vicikelabel', Number 2-25 (Receive GCA, 'Yick'), '% 02.1f %%') (GCA, Exact ', 1: 3) format_ticks (GCA, {' $ \ infty $ ';' 20dB '; '15 dB'})
I xlabel
because it talks with Xtick
It probably does, but it can be easily moved to a lesser place.
Edit: To correct the overlap of Xtick
and xlabel
at the end of the code:
xlabh = get (gca, 'xlabel'); Set (X Benefits, 'Status', Meet (X Benefits, 'Status') - [0.1 0])
Comments
Post a Comment