Matlab Error Bar Width Log Scale
Contents |
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged
Errorbar Log Scale Matlab
Content Flagged as Spam Help MATLAB Central Community Home MATLAB Answers File Exchange errorbarlogx Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help logarithmic error bars Trial 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
Matlab Errorbarlogx
Team MathWorks Support Team (view profile) 13,642 questions 13,642 answers 13,641 accepted answers Reputation: 2,623 on 27 Jun 2009 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
Errorbarlogy
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 This is what I got after using others comments, here and stack overflow.errorbar(X,Y,E,'bo','linewidth',2) c=get(gca,'Children'); for i=1:length(c); set(c(i),'XData',get(c(i),'YData'),'YData',get(c(i),'XData')); end; axis([10^-5 10^-3 0.4 1]) % This is just to set the (Y and X) axis (flipped) set(gca,'xscale','log'); % set X log scale view(-90, 90) % Swap the axes if you want Y log scale (you can ignore from here on) set(gca, 'ydir', 'reverse'); % Reverse the y-axis (Optional step) if true % code endThis image is is for X log (ignoring the last two lines)This image is for errorbar Y log including the last two linesI hope that helps. Tags errorbarlogrithmicaxessemilogxsemilogysemilogloglog Products MATLAB R
toolboxes, and other File Exchange content using Add-On Explorer in MATLAB. » Watch video Highlights from ploterr ploterr.m View all files Join matlab errorbar loglog the 15-year community celebration. Play games and win prizes! »
Matlab Shaded Error Bar
Learn more 5.0 5.0 | 17 ratings Rate this file 39 Downloads (last 30 days) File error bar width matlab Size: 5.86 KB File ID: #22216 Version: 1.3 ploterr by Felix Zoergiebel Felix Zoergiebel (view profile) 4 files 53 downloads 4.5 23 Nov 2008 (Updated https://www.mathworks.com/matlabcentral/answers/99844-how-can-i-use-the-errorbar-function-with-a-logarithmic-axis-in-matlab 14 Feb 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 features are supported: - linear/logarithmic scaling - x and/or y error bars - relative/absolute errors https://www.mathworks.com/matlabcentral/fileexchange/22216-ploterr - 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 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
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged https://www.mathworks.com/matlabcentral/answers/51038-adjust-width-of-error-bars Content Flagged as Spam Help MATLAB Central Community Home 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 software Bernoulli Lizard (view profile) 18 questions 0 answers 0 accepted answers Reputation: 3 Vote0 Adjust width of error bars Asked by Bernoulli Lizard Bernoulli Lizard (view profile) 18 questions 0 answers 0 accepted error bar answers Reputation: 3 on 16 Oct 2012 66 views (last 30 days) 66 views (last 30 days) How can I adjust the width of the error bars on a plot that I have already made? I found a few downloadable functions that claim to solve this problem, but I can not use them for plots (.fig files) that I have already made. Since I can't re make all of my error bar width plots (that would take days) is there any way that I can change the error bar width at this point?thanks 2 Comments Show all comments Matt Fig Matt Fig (view profile) 13 questions 1,506 answers 794 accepted answers Reputation: 4,932 on 16 Oct 2012 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/51038#comment_105484 What do you mean by the widths? Do you mean the spread of the error bars (effectively changing the error), or the linewidths of the lines that make the bars? Please try to be more specific in your descriptions. Bernoulli Lizard Bernoulli Lizard (view profile) 18 questions 0 answers 0 accepted answers Reputation: 3 on 16 Oct 2012 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/51038#comment_105489 None of the above. I want to change the horizontal length of the bars. I can change the line width (which is like the 'font size' of the line) under figure properties. Tags error bars Products No products are associated with this question. Related Content 1 Answer Matt Fig (view profile) 13 questions 1,506 answers 794 accepted answers Reputation: 4,932 Vote0 Link Direct link to this answer: https://www.mathworks.com/matlabcentral/answers/51038#answer_62181 Answer by Matt Fig Matt Fig (view profile) 13 questions 1,506 answers 794 accepted answers Reputation: 4,932 on 16 Oct 2012 Edited by M
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 12:57:31 GMT by s_wx1126 (squid/3.5.20)