<div dir="ltr">Hi Mike,<div><br></div><div>   More responses inlined below, but I think this conversation might be better suited to the paravieweb issue tracker on github?  Just my $0.02.</div><div><br></div><div><a href="https://github.com/Kitware/paraviewweb">https://github.com/Kitware/paraviewweb</a></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 2, 2017 at 12:15 PM, An, Michael K. <span dir="ltr"><<a href="mailto:MKAn@securemissionsolutions.com" target="_blank">MKAn@securemissionsolutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="gmail-m_-3862491858570265055markdown-here-wrapper">
<p style="margin:0px 0px 1.2em">Hi Sebastien, and others,</p>
<p style="margin:0px 0px 1.2em">I have a couple questions regarding the customization of the number of histogram bins for InfoViz Diagrams.</p>
<p style="margin:0px 0px 1.2em">1) How do you set the number of bins dynamically, after you have instantiated a diagram, e.g.,
<code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">
HistogramSelector</code>? The following doesn’t work for me:</p>
<pre style="font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block">const histSelectorObj = HistogramSelector.newInstance(<wbr>{provider});
histSelectorObj.<wbr>setNumberOfBins(newValue);
</code></pre>
<p style="margin:0px 0px 1.2em">While this sets <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">
numberOfBins</code> correctly for <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">
histSelectorObj</code>, the diagram rendering seems to fail. Upon closer inspection, it looks like a call to
<code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">
subscribeToHistogram1D</code> is made when first instantiating the histogram selector
<code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">
histSelectorObj</code>.<br>
Because you must pass in metadata here, which includes <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">
numberOfBins</code>, I would think that the data subscription always expects any incoming data updates to be consistent with this original metadata, and that the data subscription doesn’t “know” that this value changed.<br>
Setting the value when calling <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">
newInstance</code> seems to work fine:</p>
<pre style="font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block">const histSelectorObj = HistogramSelector.newInstance(<wbr>{provider, numberOfBins: newValue});​
</code></pre>
<p style="margin:0px 0px 1.2em">Is there a way to change the metadata in the data subscription later on (or am I not understanding something)?</p></div></div></blockquote><div>You are correct that currently, changing the number of bins once you have created the component is not supported.  One approach to fix this is to implement the "setNumberOfBins" method in the HistogramSelector (rather than letting the CompositeClosureHelper generate that for us) and in that method update the histgram1d subscription.  You can take a stab at that if you like, I'd be happy to review the change. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif"><div class="gmail-m_-3862491858570265055markdown-here-wrapper"><p style="margin:0px 0px 1.2em">
</p>
<p style="margin:0px 0px 1.2em">2) Following up on the first question, is there a way to have different histograms have different number of bins within one InfoViz diagram?</p></div></div></blockquote><div>This is also not currently supported, and I do not think it would be straightforward to implement at the moment, but it's something we can keep in mind.</div><div><br></div><div>Hope this helps,</div><div>Scott</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif"><div class="gmail-m_-3862491858570265055markdown-here-wrapper">
<p style="margin:0px 0px 1.2em">Thanks a lot for your help.</p>
<p style="margin:0px 0px 1.2em">-Mike<br>
</p>
<div title="MDH:CjxwPkhpIFNlYmFzdGllbiwgYW5kJm5ic3A7b3RoZXJzLDxicj4KPC9wPgo8cD48YnI+CjwvcD4K
PHA+SSBoYXZlIGEgY291cGxlIHF1ZXN0aW9ucyByZWdhcmRpbmcgdGhlIGN1c3RvbWl6YXRpb24g
b2YgdGhlIG51bWJlciBvZiBoaXN0b2dyYW0gYmlucyBmb3IgSW5mb1ZpeiBEaWFncmFtcy48YnI+
CjwvcD4KPHA+PGJyPgo8L3A+Cjx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vVml6IGRpYWdyYW0/PGJyPjwvcD48cD48YnI+
PC9wPjxwPlRoYW5rcyBhIGxvdCBmb3IgeW91ciBoZWxwLjxicj48L3A+PHA+PGJyPjwvcD48cD4t
TWlrZTxicj48L3A+CgoK" style="height:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">
​</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
<br></blockquote></div><br></div></div></div>