<div dir="ltr">Hi,<div><br></div><div>Is this the behavior we want in make-plots? I'm not sure if it's better to throw an error in NaN-valued bins or to just plot nothing, but by default I prefer the former.</div><div><br></div><div>Chris</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 12, 2017 at 8:09 AM, Dmitry Kalinkin <span dir="ltr"><<a href="mailto:dmitry.kalinkin@gmail.com" target="_blank">dmitry.kalinkin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
There is a bug in make-plots which prevents it from generating correct latex when I try to compare TProfile1D’s with occasional empty bins. Patch below fixes the problem for me. Could you please integrate it.<br>
<br>
Thanks,<br>
<br>
Best,<br>
Dmitry<br>
<br>
diff --git a/bin/make-plots b/bin/make-plots<br>
index 4cbdfacf..ecaf4dbe 100755<br>
--- a/bin/make-plots<br>
+++ b/bin/make-plots<br>
@@ -1810,6 +1810,9 @@ class Histogram(DrawableObject, Described):<br>
if self.getErrorBands():<br>
self.description['SmoothLine'<wbr>] = 0<br>
for b in self.data:<br>
+ if isnan(b.val) or isnan(b.err[0]) or isnan(b.err[1]):<br>
+ seen_nan = True<br>
+ continue<br>
out += ('\\psframe[dimen=inner,linewi<wbr>dth=0pt,linestyle=none,fillsty<wbr>le=solid,fillcolor=%s,opacity=<wbr>%s]' % (self.getErrorBandColor(),self<wbr>.getErrorBandOpacity()))<br>
out += ('(' + coors.strphys2frameX(b.xmin) + ', ' \<br>
+ coors.strphys2frameY(b.val - b.err[0]) + ')(' \<br>
<br>
______________________________<wbr>_________________<br>
Rivet mailing list<br>
<a href="mailto:Rivet@projects.hepforge.org" target="_blank">Rivet@projects.hepforge.org</a><br>
<a href="https://www.hepforge.org/lists/listinfo/rivet" rel="noreferrer" target="_blank">https://www.hepforge.org/lists<wbr>/listinfo/rivet</a></blockquote></div><br></div></div>