Plotting scientific data in 1e-15

2 次查看(过去 30 天)
Hello, I am trying to plot the below data. I need this in the scientific format. This is the code with which I am trying
eop_28nm_stat = [0.53075 0.17211 0.10732 0.09573 0.09853 0.12006 0.14314];
eop_28nm_dyn = [23.86 36.36 52.64 75.27 100.14 126.69 163.14];
eop_28nm_tot = [24.4 36.5 52.7 75.3 100 126.8 163.2];
emin = plot(vdd_28,eop_28nm_stat*1e-15);
%vdd_28,eop_28nm_dyn*1e-15);
hold on;
emin1 = plot(vdd_28,eop_28nm_dyn*1e-15);
emin(1).LineStyle = ':';
emin(1).Marker = 's';
emin(2).LineStyle = '--';
emin(2).Marker = 'x';
set(gca,'YTickLabel',sprintf('%-10.15f|',emin1));
% I have tried the below code snippets also but it doesn't work.%
fun = @(x) sprintf('%g \\times 10^{%d}',x/(10.^floor(log10(x))), floor(log10(x)));
figure;
plot([0.001:0.1:1]*1e-15);
tick2text('axis', 'y', 'yformat', fun, 'ytickoffset', .06);
But it keeps going to the 1e-13 directly and hence I cannot see any plot of the eop_28nm_stat because those values are really small. Please let me know how to go around this. Thanks!

采纳的回答

John D'Errico
John D'Errico 2016-5-3
编辑:John D'Errico 2016-5-3
Use a plot with logged axes.
help loglog
help semilogx
help semilogy

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by