eps from matlab to latex leaves a blank figure

3 views (last 30 days)
I am really frustrated with Matlab right now, as I have used many hours trying to find a solution to the problem with Matlab generated eps-plots leaving blank figures in Latex. This only occurs for plots made in Matlab 2015b - but not with plots from my old 2009 version. Furthermore, it is only some plots that cause the problem. This plot is successfully imported to Latex:
figure(2)
plot(x,y)
xlabel('tid')
print -depsc2 -f2 test2.eps
but this plot is not (and leaves a blank figure):
plot(time(n1:n3),counts_norm1(n1:n3),'o')
xlabel('time (min)')
ylabel('counts norm')
print -depsc2 -f1 test1.eps
Can anyone please help me solving this as it drives me crazy. I have also tried using Sharelatex and this works fine, så why does it not work locally on my computer?

Answers (1)

Yac Ben
Yac Ben on 19 Jun 2018
I have got the same problem, does the y axis is very small like y << 1 , Because in my case only figures with small "y" values have this problem.
I will try to reinstall Ghostscript.
thx.

Categories

Find more on Printing and Saving 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!