Mathematica Error Bar Log Plot
Contents |
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 errorbarlogplots the company Business Learn more about hiring developers or posting ads with us Mathematica errorlistloglogplot Questions Tags Users Badges Unanswered Ask Question _ Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join
Logarithmic Error Bars
them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Plotting Error Bars on
Error List Plot Mathematica
a Log Scale up vote 30 down vote favorite 15 I have a plot with ErrorListPlot data = Sort@RandomReal[1, {10, 2}]; error = RandomReal[0.5, 10]; errorplot = ErrorListPlot[ Partition[Riffle[data, ErrorBar /@ error], 2], Joined -> True] However, I would like to have it with the y-axis on a log scale. I can use ListLogPlot to get the log scale but this doesn't plot the errorbars. logplot = ListLogPlot[ data, PlotRange -> mathematica errorbar All, AxesOrigin -> {0, 0}, Joined -> True ] I tried Show[logplot, errorplot, PlotRange->All] to see if it would plot with the scale and ticks from the logplot but that didn't work right: I also tried to take the Ticks from the logplot: Show[errorplot, Ticks -> Ticks /. AbsoluteOptions@logplot] but that just gives an error. I tried to manually take the log of the data and then grab the tick-marks but that didn't work right data = Sort@RandomReal[{10, 100}, {10, 2}]; error = RandomReal[20, 10]; logdata = Transpose[{data[[All, 1]], Log[10, data[[All, 2]]]}]; errorup = Log[10, data[[All, 2]] + error] - logdata[[All, 2]]; errordown = Log[10, data[[All, 2]] - error] - logdata[[All, 2]]; logerror = Log[10, error]; logplot = ListLogPlot[ data, Joined -> True, AxesOrigin -> {0, 0} ] errorlogplot = ErrorListPlot[ Partition[ Riffle[logdata, ErrorBar /@ Transpose[{errordown, errorup}]], 2], Joined -> True, AxesOrigin -> {0, 0} ] errorlogplot2 = ErrorListPlot[ Partition[ Riffle[logdata, ErrorBar /@ Transpose[{errordown, errorup}]], 2], Joined -> True, AxesOrigin -> {0, 0}, Ticks -> (Ticks /. AbsoluteOptions@logplot) ] Is there an easy way to do this? On the log scale the error bars will appear asymmetrical. graphics plotting share|improve this question edited Apr 4 '12 at 5:48 Vitaliy Kaurov 47.6k6133237 asked Apr 4 '12 at 3:20 s0rce 6,06622465
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
Error Bars On Log Scale Excel
Learn more about Stack Overflow the company Business Learn more about hiring developers mathematica error bars or posting ads with us Mathematica Questions Tags Users Badges Unanswered Ask Question _ Mathematica Stack Exchange is a question logarithmic error calculation and answer site for users of Mathematica. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are http://mathematica.stackexchange.com/questions/3897/plotting-error-bars-on-a-log-scale voted up and rise to the top ErrorListLogPlot gives wrong error bars on log scale up vote 5 down vote favorite From this and this post I learned how to use ErrorListLogPlot and its family to add error bars on top of a list of mean values. However, consider this simple example: Needs["ErrorBarLogPlots`"] ErrorListLogPlot[{{1, 0.6}, {2, 0.5}, {3, 1.5}}, Joined -> True, PlotRange -> {{0, 4}, http://mathematica.stackexchange.com/questions/56197/errorlistlogplot-gives-wrong-error-bars-on-log-scale {0.1, 5}}, GridLines -> {{}, {0.4, 1.5, 1.6, 2.5, 4.5}}] where {1, 2, 3} are mean values and {0.6, 0.5, 1.5} are the associated standard errors. I added GridLines to indicate the positions where the end points of error bars are supposed to be located. It is clear from the plot above that the gridlines and end points do not intersect (on Mathematica 9), so the error bars must be wrong. I wonder whether something can be fixed in the ErrorBarLogPlots package. Note that the following examples, including built-in ErrorListPlot, give correct error bars (either on linear or log scale): ErrorListPlot[{{1, 0.6}, {2, 0.5}, {3, 1.5}}, Joined -> True, PlotRange -> {{0, 4}, {0.1, 5}}, GridLines -> {{}, {0.4, 1.5, 1.6, 2.5, 4.5}}] ListPlot[{{1, 2, 3}, {0.4, 1.5, 1.5}, {1.6, 2.5, 4.5}}, Joined -> {False, True, True}, PlotRange -> {{0, 4}, {0.1, 5}}, GridLines -> {{}, {0.4, 1.5, 1.6, 2.5, 4.5}}, Filling -> {2 -> {3}}] ListLogPlot[{{1, 2, 3}, {0.4, 1.5, 1.5}, {1.6, 2.5, 4.5}}, Joined -> {False, True, True}, PlotRange -> {{0, 4}, {0.1, 5}}, GridLines -> {{}, {0.4, 1.5, 1.6, 2.5, 4.5}}, Filling -> {2 -> {3}}] plotting bugs logarithmic-scale share|improve this question edi
Mathematica Wolfram|Alpha Appliance Enterprise Solutions Corporate Consulting Technical Services Wolfram|Alpha Business Solutions Products for Education Wolfram|Alpha Wolfram|Alpha Pro Problem Generator API Data Drop Mobile Apps Wolfram https://reference.wolfram.com/language/tutorial/SomeSpecialPlots.html Cloud App Wolfram|Alpha for Mobile Wolfram|Alpha-Powered Apps Services Paid Project Support Training Summer Programs All Products & Services » Technologies Wolfram Language Revolutionary knowledge-based programming language. https://groups.google.com/d/topic/comp.soft-sys.math.mathematica/D_n9CPZKUbE Wolfram Cloud Central infrastructure for Wolfram's cloud products & services. Wolfram Science Technology-enabling science of the computational universe. Computable Document Format Computation-powered interactive documents. Wolfram Engine error bar Software engine implementing the Wolfram Language. Wolfram Natural Language Understanding System Knowledge-based broadly deployed natural language. Wolfram Data Framework Semantic framework for real-world data. Wolfram Universal Deployment System Instant deployment across cloud, desktop, mobile, and more. Wolfram Knowledgebase Curated computable knowledge powering Wolfram|Alpha. All Technologies » Solutions Engineering, R&D Aerospace & Defense mathematica error bar Chemical Engineering Control Systems Electrical Engineering Image Processing Industrial Engineering Mechanical Engineering Operations Research More... Education All Solutions for Education Web & Software Authoring & Publishing Interface Development Software Engineering Web Development Finance, Statistics & Business Analysis Actuarial Sciences Bioinformatics Data Science Econometrics Financial Risk Management Statistics More... Sciences Astronomy Biology Chemistry More... Trends Internet of Things High-Performance Computing Hackathons All Solutions » Support & Learning Learning Wolfram Language Documentation Fast Introduction for Programmers Training Videos & Screencasts Wolfram Language Introductory Book Virtual Workshops Summer Programs Books Need Help? Support FAQ Wolfram Community Contact Support Premium Support Premier Service Technical Services All Support & Learning » Company About Company Background Wolfram Blog News Events Contact Us Work with Us Careers at Wolfram Internships Other Wolfram Language Jobs Initiatives Wolfram Foundation MathWorld Computer-Based Math A New Kind of Science Wolfram Technology for Hackathons Student Ambassador Program Wolfram for Startups Demonstrations Project Wolfram
van GoogleInloggenVerborgen veldenZoeken naar groepen of berichten