Share

PLplot

Subscribe

plclear() does not work

  1. 2009-11-09 20:42:35 UTC

    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

  2. 2009-11-09 21:35:46 UTC

    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

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.