Matlab Error Bars Log Scale
Contents |
Support Support Newsreader MathWorks Search MathWorks.com MathWorks Newsreader Support MATLAB Newsgroup MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Post A errorbarlogx New Message Advanced Search Help MATLAB Central Community Home MATLAB Answers File Exchange
Errorbarlogy
Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Post A New Message Advanced Search Help Trial software error bars
Matlab Errorbarlogx
in log-log scale Subject: error bars in log-log scale From: Marco Date: 12 Sep, 2002 08:55:41 Message: 1 of 6 Reply to this message Add author to My Watch List View
Logarithmic Error Bars
original format Flag as spam Anybody knows how can I plot error bars in a semi- or bi-logarythmic scale? The command errorbar does not help... thanx Marco Subject: error bars in log-log scale From: nospam@thank.you (De... Date: 12 Sep, 2002 13:20:21 Message: 2 of 6 Reply to this message Add author to My Watch List View original format Flag as spam On Thu, 12 loglog errorbar matlab Sep 2002 08:55:41 -0400, Marco
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB Answers File Exchange log scale error bars Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse matlab errorbar width More Contributors Recent Activity Flagged Content Flagged as Spam Help MATLAB Central Community Home MATLAB Answers horizontal error bars matlab File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help Trial software Adam https://www.mathworks.com/matlabcentral/newsreader/view_thread/39537 Goldsmith (view profile) 3 questions 0 answers 0 accepted answers Reputation: 1 Vote1 How do I get working y-axis errorbars using a log scale? Asked by Adam Goldsmith Adam Goldsmith (view profile) 3 questions 0 answers 0 accepted answers Reputation: 1 on 8 Sep 2015 Latest activity Answered by Mike Garrity Mike Garrity (view https://www.mathworks.com/matlabcentral/answers/241261-how-do-i-get-working-y-axis-errorbars-using-a-log-scale profile) 0 questions 370 answers 198 accepted answers Reputation: 1,174 on 8 Sep 2015 92 views (last 30 days) 92 views (last 30 days) I'm trying to plot data on a semilog plot (y-axis: log, x-axis: linear), but the errorbars are seriously screwed up.All I'm doing is loading my data and entering:figure errorbar(hp_v3,hp_D0,hp_D0_,'ok') set(gca,'YScale','log') where hp_D0_ is the vector of uncertainty values for vector hp_D0. This results in the plot attached as an image, which obviously isn't working.I've also tried errrobarlogy, which produces literally the same plot. Any ideas? 0 Comments Show all comments Tags semilogyploterrorbarerrorbarlogyfigures Products MATLAB Related Content 1 Answer Mike Garrity (view profile) 0 questions 370 answers 198 accepted answers Reputation: 1,174 Vote1 Link Direct link to this answer: https://www.mathworks.com/matlabcentral/answers/241261#answer_191705 Answer by Mike Garrity Mike Garrity (view profile) 0 questions 370 answers 198 accepted answers Reputation: 1,174 on 8 Sep 2015 That looks like what happens if the bottom of the errorbar is negative.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://stackoverflow.com/questions/3550241/using-errorbar-with-semilogy-in-matlab developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask https://groups.google.com/d/topic/comp.soft-sys.matlab/SYqxbdPgx_Y Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Using errorbar() with semilogy() in MATLAB? up vote 4 down vote favorite I'd like to plot data x & y with errorbars, ebar, and its fit, yfitted, on a semilog plot. error bars This doesn't seem to work: figure; hold on; errorbar(x,y,ebar); semilogy(x,yfitted); Instead of semilog plot I get a linear plot. What should I be doing differently? math matlab plot graphing share|improve this question asked Aug 23 '10 at 17:53 AndyL 6,387103466 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted try h = errorbar(x,y,ebar); set(get(h,'Parent'), 'YScale', 'log') or ax = axes(); errorbar(ax, x,y,ebar); set(ax, 'YScale', 'log'); share|improve this answer edited Aug 23 '10 at matlab error bars 18:15 answered Aug 23 '10 at 18:08 Marc 2,74421634 sort of works but it screws all of the errorbars up.. e.g. it fails to draw some of the vertical lines –AndyL Aug 23 '10 at 20:47 2 As you probably realize, you can't take the log of 0 or a negative number –Marc Aug 23 '10 at 22:37 add a comment| up vote 3 down vote This is what the documentation says. "If you attempt to add a loglog, semilogx, or semilogy plot to a linear axis mode graph with hold on, the axis mode will remain as it is and the new data will plot as linear" I would suggest that you just reverse the order of your plotting, that is. semilogy(x,yfitted); hold on; errorbar(x,y,ebar); share|improve this answer answered Aug 23 '10 at 18:11 Ghaul 3,14111122 I had tried that first. It doesn't actually work. :/ –AndyL Aug 23 '10 at 20:50 I'm on MATLAB R2009a –AndyL Aug 23 '10 at 20:50 It should work. Are you writing >>figure; >>hold on; before using semilogy? If you do, it wont work. Just write the three lines in my post and you'll get the same result as the answer above. –Ghaul Aug 24 '10 at 7:33 I got this solution to work on 2010a, so +1, but it's more direct and generalizable to
GoogleВойтиСкрытые поляПоиск групп или сообщений