Matlab refuses to interprete text with latex interpreter when plotting many points
1 次查看(过去 30 天)
显示 更早的评论
I want to plot many points in a 2D diagram and use the latex interpreter for text. It seems that there is a threshold of points that can be plotted while still using the latex interpreter for text. If I use numval=10000 in the following code, the text starts to look ugly, using numval=1000 is fine.
numval=10000;
x=rand(numval,1);
y=rand(numval,1);
figure
set(0,'defaulttextinterpreter','latex')
plot(x,y,'kx')
ylabel('density of something $\rho_{AB}^2$')
xlabel('distribution $\gamma$')
How can I still use latex interpreter while plotting lots of points? thanks, Markus
0 个评论
回答(2 个)
Star Strider
2015-11-16
The axis labels plot correctly for me (in R2015b). You are telling it to plot 10000 points using black x symbols, and it does that correctly. If you want text labels at each point, you have to use a text object for each of them, but none of them would be legible unless you projected your plot onto the side of a building.
What do you want to do?
0 个评论
timo
2015-11-16
I used 100000 points and killed my GPU . LOL WTF graphics performance O_o on a high end GTX NVIDIA video card -_-''
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!