How can I use "spy" at AppDesigner

8 visualizaciones (últimos 30 días)
Geunbae Kim
Geunbae Kim el 18 de Jul. de 2019
Comentada: Geunbae Kim el 14 de Ag. de 2019
I'd like use "spy" type graph at appdesigner.
So I called "spy" function to draw the result in the appdesigner but it was drawn on the other window.
questions :
  1. Does appdesigner support "spy" ?
  2. if not, how can I use spy type graph at appdesigner?
appreciate if I have any help.
Peter
  2 comentarios
Giuseppe Bellisano
Giuseppe Bellisano el 13 de Ag. de 2019
I simply used in my app designer code:
Figures (1);
spy (A);
The problem is that the graph is drawn in a different window
Geunbae Kim
Geunbae Kim el 14 de Ag. de 2019
You can solve it the below answer.
Now I can draw "spy" type graph in the same application of appdesigner.

Iniciar sesión para comentar.

Respuesta aceptada

Abhilash Padma
Abhilash Padma el 1 de Ag. de 2019
1)App designer doesn’t support “Spy” directly.
2)You can use the plot in app designer to draw spy type graph. See the following code where I have used plot to draw “spy” type graph which may help solve your problem.
S=bucky;
ax=axes;
[i,j] = find(S);
[m,n] = size(S);
plot(ax,j,i,'marker','.','markersize',6,'linestyle','none');
xlabel(ax,['nz = ' int2str(nnz(S))]);
set(ax,'xlim',[0 n+1],'ylim',[0 m+1],'ydir','reverse','plotboxaspectratio',[n+1 m+1 1]);
  1 comentario
Geunbae Kim
Geunbae Kim el 14 de Ag. de 2019
As your instruction, I could plot spy type graph in the appdesigner.
I appreciate your guide.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Discrete Data Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by