Why do the lines break apart and crack in my plot?
3 views (last 30 days)
Show older comments
clear
syms z r theta n m
% Define the hypergeometric function
X(z)=2*z*hypergeom([1, 1/n], 1/n+1, z^n)-z+(2*log(z^n-1)+z^n)/(n^2)-(2*pi*1i)/n^2
Y(z)=z-(1/n^2)*z^n
X(z)=subs(X,n,2*m)
Y(z)=subs(Y,n,2*m)
Z(z)=(1/2)*z*hypergeom([1, 1/m], 1/m+1, z^m)-(1/2)*z*hypergeom([1, 1/m], 1/m+1, -z^m)-(1/(2*m^2))*(atanh(z^m)-z^m)
% Display the result
X(r,theta)=subs(X,z,r*exp(1i*theta))
Y(r,theta)=subs(Y,z,r*exp(1i*theta))
Z(r,theta)=subs(Z,z,r*exp(1i*theta))
val = 1
figure
fsurf(real(subs(X,m,val)),imag(subs(Y,m,val)),2*imag(subs(Z,m,val)),[0 1 pi/24 2*pi+pi/24],'MeshDensity',10,'FaceAlpha',.75)
colormap(jet)
shading interp
%Adjust x, y and z axis limits according to the reference image
axis([-1 1 -1 1 -1 1])
set(gcf,'renderer','Painters')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1479076/image.png)
I have this 3-D Plot, in which these lines scatter and break apart which makes the picture look absurd. How can i manually make the lines smooth and continuous by setting some changes in the plot code. i dont want to increase the meshdensity either . how can i do that?
10 Comments
Accepted Answer
Walter Roberson
on 11 Sep 2023
Moved: Walter Roberson
on 11 Sep 2023
It looks like this is something that will be fixed in the upcoming R2023b which should likely be released this week or next.
4 Comments
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!