Legend with geobubble function is not behaving as expected
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have very strange and unexpected behavior of showing legend when using geobubble function.
I'm reading data from the csv (attached) file. I have created a live script which is also attached. The problem is the following:
- when original file is read from the cv file and a subset data is created, when using geobubble function and then legen show, this legend is incorrectly displayed i.e. contains entries that don't apprear on the plot.
- When this data subset is written to a data file and then read again using readtable function, the same code now have expected bahavior.
Data is read from csv file with the following function: importfile.m
Matlab Version is 2021a.Exported pdf is also attached.
The problem doesn't appear if for example readtable is used to read from the original file, but only if importfile function is applied.
This importfile is the function that is automatically generated from the "Import Data Tool" in Matlab. So, in this function is the problem.
I wonder what it is and why, since the function is generated and not written from the scratch.
I hope someone will be able to clarify this.
Thank you.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!