display difference between Matlab plot and Matlab App-Designer
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yu Li
el 8 de Dic. de 2018
Comentada: Yu Li
el 9 de Dic. de 2018
I tried to implement the plotting function to a App-Designer, but I found that the plot display is slightly different:
the first figure below is plot in Maltab using regular functions. the second is what is shown in the App-Designer. the difference is the back ground color not consistently white. I tried to set the background color in App-designer to 'w' but this is what is has. how to handle the rest of it?
Thanks!
Yu
0 comentarios
Respuesta aceptada
Cris LaPierre
el 8 de Dic. de 2018
I suspect if you rotate the figure in MATLAB, you would see the same behavior.
You haven't set the background color to white. You've set the box color to white (the default color) in both. You can set the background color in app designer by selecting you axes in design view and then, in Axes properties > Color and Transparency Maps, locate the setting for Background Color and set it to what you want it to be (white?).
Incidentally, you can also set box color through a similar process, but go to Axes properties > Box Styling and change the Color property to what you want it to be.
3 comentarios
Cris LaPierre
el 8 de Dic. de 2018
What is your plot command in app designer?
It seems you missed the part in my previous response that told you how to set the background to white.
Más respuestas (1)
Yu Li
el 8 de Dic. de 2018
4 comentarios
Cris LaPierre
el 9 de Dic. de 2018
It looks like we have different versions of MATLAB. I am runing 2018b.
You could try to set it programmatically:
app.UIAxes.BackgroundColor = 'w';
Here's what it looks like for me.
Ver también
Categorías
Más información sobre Polar Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!