Hi Torquil,

I just ran your code on Windows and couldn't reproduce the "bug". Also 
looking at the driver code I can't see, when and why the color of the 
"pen" of the wxwidgets driver is set to another color. Apart from that I 
would consider it good practice to set the color before I draw lines, 
but nevertheless, I don't understand why there is a different behaviour 
in Linux. I'll try to have a look at that as soon as I boot into Linux 
again.

Thanks for the info.

Regards,
Werner

Torquil Macdonald Sørensen wrote:
> Hello, I am not sure if this is a bug or not in the wxwidgets driver?:
> 
> After running plbox(), it is neccesary to run plcol0() afterwards. If not, 
> the 
> following plline() is invisible. This is not neccesary when using the xwin 
> driver. Here is some example c++-code:
> 
> //////////////////////////////////////////
> #include <plplot/plplot.h>
> 
> using namespace std;
> 
> int main() {
>       double x[] = { 0.1, 0.5, 0.2, 0.4, 0.4 };
>       double y[] = { 0.5, 0.4, 0.4, 0.8, 0.9 };
> 
>       plsdev("wxwidgets");
>       plinit();
>       plenv(0, 1, 0, 1, 1, -2);
>       
>       plbox("bcinst", 0, 0, "bcinst", 0, 0);
>       
>       plcol0(1); // Without this the lines are invisible!
>       plline(5, x, y);
>       
>       plend();
> 
>       return(0);
> }
> ////////////////////////////////////////////
> 
> Debian Sid (PLPlot 5.8.0-6 and NVidia driver 100.14.19)
> 
> Best regards,
> Torquil Sørensen
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Plplot-general mailing list
> Plplot-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-general


-- 
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
        +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to