On 2010-05-31 09:09+0200 Arjen Markus wrote:

> Hello,
>
> I have been looking at this issue and I came across example x16. This
> defines a new grayscale for colour map 0. However, this must be done
> _before_ plinit, because otherwise we get differences with the C
> example.

And similarly for differences in plori results when run before or after
plinit which is why I have reverted your recent changes to x03 and x03.tcl.

I think we just have to accept that certain C examples do special commands
before plinit so there is no way to mimic that exact behaviour when we use
just one plinit for a whole string of examples as in
examples/tk/standard_examples(.in).  So the goal for the string of examples
should be that they look reasonable rather than exactly the same as in the C
examples.

>
> That makes it impossible to include x16 in this test: plinit is run
> first and then the examples are run. I know of no way to get the
> ordering right - or perhaps it can be run as the last one: re-run plinit
> to open a new window.
>
> Any thoughts? Is it okay to leave x16 out of the list?

I would leave it and example 3 in and just accept that you will get a
different result for examples/tk/standard_examples(.in) than the
corresponding C example because of the pre-plinit shenanigans in the C
example.  Of course, for the individual runs of the Tcl examples, we
have been able to arrange complete consistency with the C results because
we have full control there to do anything we like before plinit.  But
that is not the case for examples/tk/standard_examples(.in).

The test_tk_standard_examples target (which is run as a prerequisite for the
test_interactive target) no longer works because of some recently introduced
regression that I am still tracking down (it is not just the recently
introduced xwin.c changes, but something else as well).  But from my memory
of previous results, we need colour restoration at the end of each plot in
examples/tk/standard_examples(.in) to get reasonable looking results.

So I hope you will be able to implement a restoration procedure (that
at least restores colours to default) in Tcl so that we can invoke that
procedure after each example in examples/tk/standard_examples(.in).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------

_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to