17
$\begingroup$

Bug introduced in 10.0.0, fixed in 10.1


I recently upgraded to Mathematica 10, very excited about the multiple undo function of course.

However I very quickly noticed that if I specify a setting for PlotMarkers in the ErrorListPlot function, the error bars disappear. Even just setting PlotMarkers->Automatic makes the error bars disappear. This was not a problem in Mathematica 9, but appears to be a new 'feature'. Has anyone else noticed this since upgrading, and are there any possible fixes?

$\endgroup$
  • 1
    $\begingroup$ This works on OSX 10.9.4 when you add Joined -> True. Without it I see the same behaviour you are experiencing. $\endgroup$ – Matariki Jul 29 '14 at 9:30
  • $\begingroup$ Reproduced in my V10 under Win 7, 64 bit by using this code: Needs["ErrorBarPlots`"]; ErrorListPlot[ Table[{i, RandomReal[0.5]}, {i, 10}], PlotMarkers -> Automatic] $\endgroup$ – Tetsuo Ichii Jul 29 '14 at 9:32
  • $\begingroup$ Thanks, Matariki. That brings the error bars back for me as well, but makes the plot exceptionally ugly. Hopefully there is another fix somewhere. $\endgroup$ – nate Jul 29 '14 at 9:51
  • $\begingroup$ I'm still seeing this exact error in 10.0.2 on Mac OS X (10.10.2 Yosemite). The Method -> {"OptimizePlotMarkers" -> False} workaround doesn't seem to have any effect at all. $\endgroup$ – ibeatty Feb 24 '15 at 18:59
  • $\begingroup$ @Ian I converted your answer to a comment. If you wish to address this further please post a new question. $\endgroup$ – Mr.Wizard Feb 24 '15 at 19:50
14
$\begingroup$

I heard from technical support. The problem should be fixed in an upcoming release, but for now there is a temporary fix by inserting Method -> {"OptimizePlotMarkers" -> False} into the ErrorListPlot options.

$\endgroup$
  • 2
    $\begingroup$ It's still there in 10.0.1, alas. $\endgroup$ – Sjoerd C. de Vries Sep 17 '14 at 15:02
4
$\begingroup$

Even just setting PlotMarkers->Automatic makes the error bars disappear

Fixed in 10.0.2. windows 7, 64 bit

Mathematica graphics

Needs["ErrorBarPlots`"]
ErrorListPlot[{{{1, 1}, ErrorBar[0.2]}, {{2, 2}, ErrorBar[0.1]}, {{3, 4}, 
   ErrorBar[0.3]}, {{4, 6}, ErrorBar[0.4]}, {{5, 7}, 
   ErrorBar[0.8]}, {{6, 10}, ErrorBar[0.5]}}, Joined -> True] 

Mathematica graphics

ErrorListPlot[{{{1, 1}, ErrorBar[0.2]}, {{2, 2}, ErrorBar[0.1]}, {{3, 4}, 
   ErrorBar[0.3]}, {{4, 6}, ErrorBar[0.4]}, {{5, 7}, 
   ErrorBar[0.8]}, {{6, 10}, ErrorBar[0.5]}}, Joined -> True, 
   PlotMarkers -> Automatic] 

Mathematica graphics

Update

To answer comment below

With Joined -> False the error bars disappear again.

This last part has now been fixed in 10.1 (windows). The bars remain when Joined->False is added

Mathematica graphics


Mathematica graphics

$\endgroup$
  • $\begingroup$ With Joined -> False the error bars disappear again. This is not entirely fixed therefore. $\endgroup$ – Mr.Wizard Feb 24 '15 at 22:02
  • 2
    $\begingroup$ @Mr.Wizard fyi, the Joined->False is now fixed in 10.1, updated $\endgroup$ – Nasser Apr 2 '15 at 11:23
  • 3
    $\begingroup$ Has there been a regression in 11.2.0? I run your last line (ErrorListPlot[{{{1, 1}, ErrorBar[0.2]}, {{2, 2}, ErrorBar[0.1]}, {{3, 4}, ErrorBar[0.3]}, {{4, 6}, ErrorBar[0.4]}, {{5, 7}, ErrorBar[0.8]}, {{6, 10}, ErrorBar[0.5]}}, Joined -> False, PlotMarkers -> Automatic]) and I get no error bars. I am running 11.2.0 on linux. $\endgroup$ – Brian Moths Dec 13 '17 at 2:41
  • 1
    $\begingroup$ Same for me, no error bars in 11.2.0, not even using the Method -> {"OptimizePlotMarkers" -> False} trick... $\endgroup$ – mjayvizzle Feb 24 '18 at 0:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.