Skip to content

color is not render as per original figure for Surf Plot #3

@konarkk

Description

@konarkk

I have used Surf plot with single FaceColor, however while when exported to PDF, it retains default color of axis with 64 colors

I have created small example

 x = 0.1:0.1:1;
 y = sort(rand(1,10));

 % Number of radial spokes
 n = 21;

 % Transform data for cylindrical presentation
 theta = linspace(0,2*pi,n);

 xr = x.'*cos(theta);
 zr = x.'*sin(theta);
 yr = repmat(y.',1,n);

 surf(xr,zr,yr,'FaceColor',[1 0.2 0.1],'FaceAlpha',0.8,'EdgeColor','none')

One More Example

 [x,y] = meshgrid(-2:.2:2);
z = x.*exp(-x.^2-y.^2);
a = gradient(z);
surf(x,y,z,'AlphaData',a,...
'FaceAlpha','flat',...
'FaceColor','blue')

Now when this plot exported to PDF, it renders with Default Jet color

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions