Borrar filtros
Borrar filtros

R2018b gscatter marker issue

5 visualizaciones (últimos 30 días)
Erik Lorentzen
Erik Lorentzen el 20 de Dic. de 2018
Comentada: Walter Roberson el 26 de Nov. de 2019
I just updated to R2018b (from R2017b) and suddenly gscatter plots markers as squares by default.
How can I get back to circles?
(and not by specifying 'Marker' in every instance)
  2 comentarios
SatyaPrakash Gupta
SatyaPrakash Gupta el 26 de Nov. de 2019
Hi,
I am beginner to MatLab and have one question as below:
Question :
  1. i have 2 matlab script file , one has GUI and the other has normal function definition for plotting the figure. when my GUI opens, in the edit text box, i enter the value and my function works accordingly i.e figure get plotted.
Problem : everytime when i update the text box, each time new figure gets open and there are nearly 8 figures, how can i update the figures when new text data is provided ?
Please note : i use scatter, gscatter, dbscan etc for each figure to get plotted
Your feedback will help me out to procced with my current activity.
thank you and waiting for your feedback.
Regards,
Satya

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Dic. de 2018
You appear to be using an old graphics card. The MATLAB requirements for OpenGL capabilities increased in R2018b.
I think you are simply hitting one of the gray areas about reduced functionality due to having equipment that does not meet the minimums for full operation.
  1 comentario
Erik Lorentzen
Erik Lorentzen el 26 de Dic. de 2018
Yes, Im sure this is it.
At work Im using an older (but great!) computer.
Curious that it it works with scatter though. I always thought gscatter was just an extension of scatter. But apparently it uses different graphical routines at some lower level... or something.
Anyway, thanks to all of you who put some effort into my problem.

Iniciar sesión para comentar.

Más respuestas (5)

Cris LaPierre
Cris LaPierre el 20 de Dic. de 2018
Editada: Cris LaPierre el 20 de Dic. de 2018
Interesting. The default is circles for me. Still you can set the symbol in the call statement using the
gscatter(x,y,g,clr,sym,siz) syntax.
load carsmall
gscatter(Displacement,Horsepower,Model_Year,[],'o')

madhan ravi
madhan ravi el 20 de Dic. de 2018
Editada: madhan ravi el 20 de Dic. de 2018
My default is also a circle ,
if you want you can edit the default marker as such:
edit gscatter % change the marker (i.e. wherever you find sym= or sym== put your favourite marker) to which one you like
  1 comentario
madhan ravi
madhan ravi el 21 de Dic. de 2018
If you are still facing the issue then the best way is to contact Mathworks Support Team by clicking the Contact Us button on the top right corner of this page.

Iniciar sesión para comentar.


Erik Lorentzen
Erik Lorentzen el 21 de Dic. de 2018
Thanks for the answers!
But there seems to be something else going on. It is not the default in gscatter that has changed, it is still '.'.
Maybe it is something with my graphics. But it works fine with R2017b.
And if I plot with scatter() looping over the groups, that works fine also.
Has something changed with how gscatter uses the graphics on my computer?
I did get the old:
Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information, click here.
But I got that in R2017b too.
Anyway, this is how it looks now:
1. gscatter(x,y,g)
gscatter.png
2. for i=0:3 scatter(x,y);
scatter.png
  2 comentarios
madhan ravi
madhan ravi el 21 de Dic. de 2018
what showed up for sym when you tried edit gscatter ?
Cris LaPierre
Cris LaPierre el 21 de Dic. de 2018
What do you see if you run this built-in example?
load carsmall
gscatter(Weight,MPG,Model_Year)
It should look like this
gscatterTest.png

Iniciar sesión para comentar.


Erik Lorentzen
Erik Lorentzen el 21 de Dic. de 2018
Thanks Madhan!
what showed up for sym when you tried edit gscatter ?
'.'
so that is correct.
The weird thing is that it doesn't happen with scatter.
I think I'll contact MATLAB on this.
It is way too strange for me.
Carsmall ex:
carsmall.png
  3 comentarios
Erik Lorentzen
Erik Lorentzen el 21 de Dic. de 2018
Well, not really... :)
But thanks for the effort.
Cris LaPierre
Cris LaPierre el 21 de Dic. de 2018
Editada: Cris LaPierre el 21 de Dic. de 2018
I've escalated this to tech support. Is it possible for you to share your code and data? Use the paperclip icon to attach them to one of your posts.

Iniciar sesión para comentar.


SatyaPrakash Gupta
SatyaPrakash Gupta el 19 de Nov. de 2019
Hi,
I am using MATLAB R2016b , gscatter function is support with this version ?
I always see there is an error as below
" Undefined function 'gscatter' for input arguments of type 'double' "
Even i tried the matlab example as below
load carsmall
gscatter(Displacement,Horsepower,Model_Year)
and i get "Undefined function 'gscatter' for input arguments of type 'double' "
can you please do help me out to resolve this problem ?
thank you.
Regards,
Satya
  4 comentarios
Walter Roberson
Walter Roberson el 19 de Nov. de 2019
I do not know if it is possible to purchase new licenses for the Statistics Toolbox. You should probably ask your license administrator whether they already happen to have a license that they could make available to you.
SatyaPrakash Gupta
SatyaPrakash Gupta el 19 de Nov. de 2019
Editada: SatyaPrakash Gupta el 19 de Nov. de 2019
Thank you so much, i have reqested to purchase new licenses for Tatistics ToolBox. Thank you again

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by