The graphic shows beyond the axis

Hi everyone,
I'm so confused that when I try to plot scatters, why the fighure always beyond of the axis?
Also, the colorbar label has the same iusse. Below is the code and plot:
scatter(app.UIAxes4,X_1,Y_1,200,Z_1,'s','filled')
c = gray;
colormap(app.UIAxes4,c)
d = colorbar(app.UIAxes4);
d.Label.String = 'Elevation [m]';
d.Label.FontSize = 10;
hold on

4 Commenti

Jan
Jan il 14 Giu 2019
Which Matlab version do you use? Can you provide a minimal working example, such that we do not have to guess some matching inputs to try it on other machines?
ZC Song
ZC Song il 14 Giu 2019
Hi Jan,
Thank you for your reply!
I upload all the data (X_1, Y_1, Z_1) and the matlab version is R2019a.
Jan
Jan il 16 Giu 2019
For a minimal working example we would need the definition of app.UIAxes4. Maybe you have set its default position or Y-limits?
ZC Song
ZC Song il 16 Giu 2019
The app.UIAxes4 just indicates the name of the axis component, it can be any given name or by default.

Risposte (0)

Questa domanda è chiusa.

Richiesto:

il 13 Giu 2019

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by