Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

plclear() does not work

2009-11-09
2013-03-15
  • David Sagan
    David Sagan
    2009-11-09

    Hello:

    The plclear() method does not seem to work for either xwin or tk. As a test I modified the x09c.c example:

        pllab("X Coordinate", "Y Coordinate", "Streamlines of flow");
        pl_setcontlabelparam(0.006, 0.3, 0.1, 0);
           
        /* Plot using 1d coordinate transform */
       
        plclear();   // Added this line.
       
        plenv(-1.0, 1.0, -1.0, 1.0, 0, 0);
        plcol0(2);

    And plclear did not  do anything. Am I doing something wrong or is this a bug?

    • David
     
  • Werner Smekal
    Werner Smekal
    2009-11-09

    You could use pladv(), which advances to the next page and clears it. This is how it is normally done in the examples. It still a bug though it seems.

    Regards,
    Werner