Matlab Loglog Plot Error Bars
Contents |
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB Answers File errorbarlogx Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask
Errorbarlogy
Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help MATLAB Central Community Home matlab errorbarlogx MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help Trial
Logarithmic Error Bars
software MathWorks Support Team (view profile) 13,642 questions 13,642 answers 13,641 accepted answers Reputation: 2,623 Vote0 How can I use the ERRORBAR function with a logarithmic axis in MATLAB? Asked by MathWorks Support Team MathWorks Support Team (view profile) 13,642 questions 13,642 answers 13,641 accepted answers Reputation: 2,623 on 27 Jun 2009 log scale error bars Latest activity Commented on by Ohad BarSimanTov Ohad BarSimanTov (view profile) 0 questions 0 answers 0 accepted answers Reputation: 0 on 27 Jul 2016 Accepted Answer by MathWorks Support Team MathWorks Support Team (view profile) 13,642 questions 13,642 answers 13,641 accepted answers Reputation: 2,623 297 views (last 30 days) 297 views (last 30 days) When I type the following at the MATLAB prompt, I get a an errorbar with a log x axis:x = 1:100; y = sin(x); e = std(y)*ones(size(x)); errorbar(x,y,e) set(gca,'xscale','log') However, the errorbars of the first point in the resulting figure extend much farther than the other errorbars. I would like a function that can account for the logrithmic X-axis and make all of the errorbars have a uniform width. 1 Comment Show all comments Ohad BarSimanTov Ohad BarSimanTov (view profile) 0 questions 0 answers 0 accepted answers Reputation: 0 on 27 Jul 2016 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/99844#comment_381798 T
toolboxes, and other File Exchange content using Add-On Explorer in MATLAB. » Watch video Highlights from ploterr ploterr.m View all files Join the 15-year community celebration. Play games and win prizes! » Learn more 5.0 5.0 | 17 ratings Rate
Horizontal Error Bars Matlab
this file 39 Downloads (last 30 days) File Size: 5.86 KB File ID: #22216 Version:
Matlab Errorbar Width
1.3 ploterr by Felix Zoergiebel Felix Zoergiebel (view profile) 4 files 53 downloads 4.5 23 Nov 2008 (Updated 14 Feb matlab error bars 2009) plots data with x and/or y error bars and supports logarithmic scaling for both axes. | Watch this File File Information Description ploterr is a universal tool for plotting data with error bars. The following https://www.mathworks.com/matlabcentral/answers/99844-how-can-i-use-the-errorbar-function-with-a-logarithmic-axis-in-matlab features are supported: - linear/logarithmic scaling - x and/or y error bars - relative/absolute errors - width of bar handles adjustable Basically it unifies the features of errorbarxy, errorbarloglog, errorbar_x and errorbar in one single program. For a detailed description and examples see the documentation in the file. The technique for plotting the error bars is adapted from MATLAB's v6 errorbar, which is also used by Goetz Huesken's errorbar_x. With this https://www.mathworks.com/matlabcentral/fileexchange/22216-ploterr technique the x error bars as well as the y error bars are one big line object, in contrast to errorbarloglog where each single error bar consists of three separate lines. That prevents an overflow of the legend with lots of separate line objects and makes it a lot easier to change the line style of the error bars. Acknowledgements Errorbar X inspired this file. This file inspired Errbar, Errorbarxy, and Superbar. MATLAB release MATLAB 7.4 (R2007a) Tags for This File Please login to tag files. data explorationerror barerrorbarerrorbar horizontalerrorbar logarithmicerrorbar_xerrorbarloglogherrorbarhorizontal errorbarlogarithmic errobarplotplot data Cancel Please login to add a comment or rating. Comments and Ratings (30) 10 Sep 2016 Mohammad Heriyanto Mohammad Heriyanto (view profile) 0 files 0 downloads 0.0 11 Nov 2015 William Barnes William Barnes (view profile) 0 files 0 downloads 0.0 Very useful but.... Is it possible to use a log10 rather than log (i.e. to use log base 10 rather than log base e) for the axes. For example, I tried log10x instead of log, but no joy. Comment only 25 Mar 2015 Presper Eckert Presper Eckert (view profile) 0 files 0 downloads 0.0 Excellent functionality and very useful! 04 Apr 2014 Nitsan Nitsan (view profile) 0 files 0 downloads 0.0 Thank you for this fil
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 http://stackoverflow.com/questions/3550241/using-errorbar-with-semilogy-in-matlab Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask 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 error bars to plot data x & y with errorbars, ebar, and its fit, yfitted, on a semilog plot. 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 matlab loglog plot 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 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 u