Hello again, this wxwidgets-problem may have something to do with 
anti-aliasing:

When using plsetopt("drvopt", "smooth=0") I get nice red lines (not 
anti-aliased, and no plcol0() or plwid() are needed now), but in addition I 
get the following warning in the terminal window:

*** PLPLOT WARNING ***
Insufficient colour slots available in CMAP0 to do text smoothing.

When using plsetopt("drvopt", "smooth=1") or no such command, I get the 
exceedingly weak lines in the plot. No warning message on the terminal. It 
looks as if the weak line is not anti-aliased, but it is very difficult to 
see. The result of taking a screenshot and increasing the contrast shows a 
result that is not anti-aliased. Using plcol0(1) or plwid(1) before plline() 
in this case gives nice red lines, not anti-aliased.

But the description of the smooth=0/1 in the wxwidgets-driver says

smooth: Turn text smoothing on (1) or off (0)

, so I don't know why it affects the lines I draw with plline(). In addition, 
it is strange that it complains about lack of colour slots when I set it to 0 
(i.e. turn it off), and not for smooth=1.

Best regards,
Torquil Sørensen

On Friday 18 January 2008, Werner Smekal wrote:
> Hi Torquil,
>
> one more question: do you use the agg library together with the
> wxWidgets driver, i.e. is the output antialized and use the "antialized"
> option? I assume so, since otherwise it wouldn't be possible to have a
> barely visible red line. So, are the lines nicely antialised or not? I
> only checked the non-antialized output.
>
> Thanks,
> Werner
>
> Torquil Macdonald Sørensen wrote:
> > 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

-------------------------------------------------------------------------
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