Hello, Werner I just discovered that it is also possible to fix the problem by putting in a plwid(1) command instead of the plcol0(1). In fact, without any such command, I can barely see a weak (correct) red line if I turn up the brightness on the screen. I originally thought there was no line there at all because it was so weak. It is strange that using one of plcol0(1) or plwid(1) can fix the problem. Using plwid(0.9) or with any lower value does not fix the problem.
When using either plcol0(1) or plwid(1), the graph is of the same colour and line width as the box around the plot. Without such a command, the graph is an extremely weak red line, barely noticable. Best regards, Torquil Sørensen On Friday 18 January 2008, Werner Smekal wrote: > 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 ------------------------------------------------------------------------- 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