I am using Plots to create the XY plot and then saving it in the pdf format. But the text in the ylabel is not saved properly. The power of the 10 is not saved and the number appears like 1.0X10 instead of 1.0X10^-8. Below is the part of the code I am using for plotting. x and y are arrays of the same size.
color=[:red :blue] p = plot(x,y,lw = 3, ylabel = "L2 Norm", yscale = :log10, xlabel="Iteration count", #xlims=(0,maximum(iter_hist)+1), grid=(:none), label=["rms" "rms/rms\$_0\$"], color=color) savefig(p,"gs_residual.png")
Below is the saved .png file. As you can see, the numbers on the x-axis are not printed correctly and the exponent is missing. Even if I save the figure in .pdf format I get the same results.
Thank you. Regards,