<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi, Pat.<br>
    <br>
    In the Pipeline Browser, PlotData1 is visible (non-greyed out eye
    next to it), and selected (white text on blue background).&nbsp; There's
    a blue border around the displayed chart (and not around the 3d view
    next to it). <br>
    <br>
    When I say<br>
    <br>
    &nbsp; rep.Visibility = 0<br>
    &nbsp; Render()<br>
    <br>
    the plot window goes all white, and<br>
    <br>
    &nbsp; rep.Visibilty = 1<br>
    &nbsp; Render()<br>
    <br>
    brings the plot back.<br>
    <br>
    I'm guessing that means rep refers to the correct thing.<br>
    <br>
    How is the ParaView GUI able to see something that I can't?&nbsp; Or is
    it just that ParaView does most of it's work directly in C++?<br>
    <br>
    Thanks for your help.<br>
    <br>
    Greg<br>
    <br>
    <br>
    On 10/06/2011 11:10 AM, pat marion wrote:
    <blockquote
cite="mid:CAMetC=TwpV6JW7=Ng67m7a9hh=sbHAWhjDYp5Nz6NNtd9C=TAg@mail.gmail.com"
      type="cite">Are you sure that the chart view is the active view
      when you call GetDisplayProperties(p)?&nbsp;&nbsp; If the render view is
      active, you'll get the wrong representation.&nbsp; I verified that this
      works for Wavelet --&gt; Plot Data filter using PV 3.10.1.<br>
      <br>
      Pat<br>
      <br>
      <div class="gmail_quote">On Thu, Oct 6, 2011 at 2:03 PM, Greg
        Schussman <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:schussman@slac.stanford.edu">schussman@slac.stanford.edu</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000">
            <div class="im"> On 10/06/2011 07:33 AM, pat marion wrote:
              <blockquote type="cite">series_names = [name for name in
                d.GetProperty("SeriesNamesInfo")]</blockquote>
            </div>
            <font size="+1"><font face="Droid Serif"><br>
                Hi, Pat.<br>
                <br>
                Thanks for the helpful pointers. <br>
                <br>
                After setting everything up in ParaView (3.10.1,
                64-bit), I'm not getting results.&nbsp; Here is what I did
                from the ParaView Python Shell:<br>
                <br>
              </font></font>
            <div class="im">
              <p style="margin: 0px; text-indent: 0px;"><span
                  style="font-family: 'Courier'; font-size: 10pt; color:
                  rgb(0, 0, 0);">&gt;&gt;&gt; p =
                  FindSource("PlotData1")</span></p>
            </div>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(0, 0, 0);">&gt;&gt;&gt; rep =
                GetDisplayProperties(p)</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(0, 0, 0);">&gt;&gt;&gt;
                rep.GetProperty("SeriesNamesInfo")</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(0, 150, 0);">None</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(0, 0, 0);">&gt;&gt;&gt; </span></p>
            <font size="+1"><font face="Droid Serif"><br>
                While, at the same time, the Object Inspector shows 27
                series, each with the correct name.<br>
                <br>
                Does something need to be updated or refreshed first?&nbsp; I
                notice in the pvblot script, there is a <br>
                <br>
                &nbsp; rep.Update()<br>
                <br>
                but when I try that in ParaView's python shell (after
                getting the representation the way I showed above), it
                tells me:<br>
                &nbsp; </font></font>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(0, 0, 0);">&gt;&gt;&gt; rep.Update()</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(255, 0, 0);">Traceback (most recent call last):</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(255, 0, 0);"> File "&lt;console&gt;", line 1, in
                &lt;module&gt;</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(255, 0, 0);"> File
                "/usr/lib64/paraview/site-packages/paraview/servermanager.py",
                line 370, in __getattr__</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(255, 0, 0);"> return getattr(self.SMProxy, name)</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(255, 0, 0);">AttributeError: Update</span></p>
            <p style="margin: 0px; text-indent: 0px;"><span
                style="font-family: 'Courier'; font-size: 10pt; color:
                rgb(0, 0, 0);">&gt;&gt;&gt; </span></p>
            <br>
            <font size="+1"><font face="Droid Serif">Thanks!<br>
                <font color="#888888"> <br>
                  Greg<br>
                  <br>
                  <br>
                </font></font></font> </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </body>
</html>