Hello again i have the next problem: i have done a very nice graph and i need to incorporate the standard deviation on graph but i only need to put those error bars in just some plots on the graphic ,not in all, so it is possible to do this? I use the next code for plot my graph:

plotData = Partition[Riffle[data1, data2], 2]


Any suggestions?

I have modified mi plot commands and now i use this code :


I know this a silly question but, is posible to include the bars in this command or is necesary to use the ErrorlistPlot command to put the error bars?

  • 1
    $\begingroup$ If you don't want a bar in for instance the third point you could use: plotData2[[3]]=plotData2[[3,1]]. $\endgroup$ Sep 17, 2015 at 5:47
  • $\begingroup$ Re: new update (which honestly, turns this into a different question) - yes, you can make your own function(s) to manipulate plot points and add bars, but why on earth go through the machinations when there's a built in package for that? You can join points/etc. with it. $\endgroup$
    – ciao
    Sep 19, 2015 at 5:20

1 Answer 1


You can explicitly specify this in the plot:

ErrorListPlot[{{{1, 1}, ErrorBar[0.2]}, {{2, 2}, 
   ErrorBar[None]}, {{3, 4}, ErrorBar[0.3]}, {{4, 6}, 
   ErrorBar[None]}, {{5, 7}, ErrorBar[0.8]}, {{6, 10}, 

enter image description here

Per your comment, perhaps this fits the need:

(* fake some data *)
data = Partition[Riffle[RandomReal[{0, 10}, 10], RandomReal[{1/2, 1}, 10]], 2];
(* block with copy of data and list of points to exclude bars from *)
Block[{tmp = data, noBarredPoints = {1, 3, 6, 7}}, tmp[[noBarredPoints, 2]] = 0; ErrorListPlot[tmp]]

enter image description here

  • $\begingroup$ I can´t use that formula because i have a list of data so i only use the command: ErrorListPlot[plotData] and i don't need to define the plots one by one so i can´t use that $\endgroup$ Sep 18, 2015 at 4:46
  • $\begingroup$ @PaulDamiánJiménezNuño Are you saying the points you don't want bars on are always the same? Else, you're going to be "define" something every time anyway. In any case, look at update, see if that floats your boat. $\endgroup$
    – ciao
    Sep 18, 2015 at 5:20
  • $\begingroup$ Oh sorry if I sound rude in the previous comment i was in a hurry writing in a tablet. The points that i dont want bars are defined in a list, that's why define it one by one in the command will be too large $\endgroup$ Sep 18, 2015 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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