Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
konarkk opened this issue Oct 28, 2015 · 1 comment
Open

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

konarkk opened this issue Oct 28, 2015 · 1 comment
Assignees

Comments

@konarkk
Copy link

konarkk commented Oct 28, 2015

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

@johnyf johnyf self-assigned this Dec 11, 2015
@adhusch
Copy link

adhusch commented Aug 4, 2017

This should be fixed by #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants