Message Boards Message Boards

0
|
1110 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Sporadic Error Bar Endcaps

Posted 3 years ago

I am including horizontal and vertical error bars in a ListLogLogPlot, and for some reason it seems like the horizontal endcaps attached to the vertical error bars only show up sporadically throughout the plot, and not on every point. Can someone help me figure out what's going on?

POSTED BY: j bg
2 Replies
Posted 3 years ago

Thank you very much!

POSTED BY: j bg
Posted 3 years ago

Hi j bg,

Looks like a bug, you should report it to Wolfram Support. It seems to be caused by the small y values. Here is a workaround.

Scale the y values by 10^13

measScaled = MapAt[#*10^13 &, meas, {All, 2}];

Plot with scaled frame ticks

mwePlot = ListLogLogPlot[measScaled,
  GridLines -> Automatic,
  GridLinesStyle -> Black,
  FrameStyle -> Black,
  Frame -> True,
  FrameLabel -> {"PAS Detuning [GHz]", 
    "\!\(\*SubscriptBox[\(K\), \(\[Nu]\)]\)/I \
[\!\(\*SuperscriptBox[\(cm\), \(5\)]\)\!\(\*SuperscriptBox[\(mW\), \
\(-1\)]\)\!\(\*SuperscriptBox[\(s\), \(-1\)]\)]", "", ""},
  BaseStyle -> {FontSize -> 14},
  PlotLegends -> \
{"\!\(\*SuperscriptBox[\(\[InvisiblePrefixScriptBase]\), \(86\)]\)Sr, \
exp. "},
  PlotRange -> {{3, 500}, {10^-3, 10^2}},
  PlotStyle -> {GrayLevel[0.5], PointSize[Large]},
  ImageSize -> Large,
  FrameTicks -> {{Charting`ScaledTicks[{Log[# 10^13] &, Exp[# ]/10^13 &}], Automatic}, 
      {Automatic, Automatic}}]

enter image description here

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract