My plots do not show up in my published pdf file. Whenever I run my script MATLAB opens a figure file with the plot but it never transfers to the published script? Any reason this could be happening?

3 views (last 30 days)
original_data=plot(year,temp_anomalies, 'xk') hold on new_data=plot(year,new_anomalies, '-rp') xlabel('Year') grid ylabel('Temperature Anomalies (deg C)') title('Temperature Anomalies vs. Year') legend('Original Data','Linear Model') snapnow
  1 Comment
Gayatri Menon
Gayatri Menon on 16 Feb 2018
Hi,
I was able to get the figure in the published pdf using the same script(replaced the data with some sample values). Is this your complete script? If not could you please share the script along with dependent files(data and code) so that I could reproduce it on my end.
Thanks
Gayatri

Sign in to comment.

Answers (0)

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!