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

답변 (2개)

Star Strider
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?

timo
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 -_-''

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by