Menu

#12 Inconsequent colours in PS-files

open
nobody
None
5
2006-11-29
2006-11-29
No

I print a dataset and its fits. Data using style -1, -2, ...; fits with 1, 2, ... . Then I swich on the colour by editing the PS-file. The first 9 pairs points/fit have now always the same colour. However, at spectrum 10, the points get some pink-like colour while the fits restart at the orange. At 11, the points are orange, fits already green.

The behaviour can be fixed (without really knowing what I do here) by commenting out the last line of the point-colour definitions (?):

1 100 pColSet % arg1: color on/off; arg2: max no. of colours
/pStyles [
{ { 1 1 0 1. 1. pset } { 1 1 0 1. 1. pset 10 ipCol} ifpcol } % 1
{ { 1 0 0 1. 1. pset } { 1 1 0 1. 1. pset 20 ipCol} ifpcol } % 2
{ { 2 1 0 1. 1. pset } { 1 1 0 1. 1. pset 30 ipCol} ifpcol } % 3
{ { 2 0 0 1. 1. pset } { 1 1 0 1. 1. pset 40 ipCol} ifpcol } % 4
{ { 3 1 0 1. 1. pset } { 1 1 0 1. 1. pset 50 ipCol} ifpcol } % 5
{ { 3 0 0 1. 1. pset } { 1 1 0 1. 1. pset 60 ipCol} ifpcol } % 6
{ { 4 1 0 1. 1. pset } { 1 1 0 1. 1. pset 70 ipCol} ifpcol } % 7
{ { 4 0 0 1. 1. pset } { 1 1 0 1. 1. pset 80 ipCol} ifpcol } % 8
{ { 5 1 0 1. 1. pset } { 1 1 0 1. 1. pset 90 ipCol} ifpcol } % 9
%%%%%{ { 5 0 0 1. 1. pset } { 1 1 0 1. 1. pset 90 ipCol} ifpcol } % 0
] def

1 100 cColSet % arg1: color on/off; arg2: max no. of colours
/cStyles [
{ { 1. [ ] lset } { 1. [] lset 10 icCol} ifccol } % 1
{ { 1. [1 3 ] lset } { 1. [] lset 20 icCol} ifccol } % 2
{ { 1. [8 6 ] lset } { 1. [] lset 30 icCol} ifccol } % 3
{ { 1. [8 3 1 3 ] lset } { 1. [] lset 40 icCol} ifccol } % 4
{ { 1. [2 2 ] lset } { 1. [] lset 50 icCol} ifccol } % 5
{ { 1. [1.8 ] lset } { 1. [] lset 60 icCol} ifccol } % 6
{ { 1. [3 1.8 ] lset } { 1. [] lset 70 icCol} ifccol } % 7
{ { 1. [2 2 3.5 2 ] lset } { 1. [] lset 80 icCol} ifccol } % 8
{ { 1. [2 2 5.5 2 ] lset } { 1. [] lset 90 icCol} ifccol } % 9
] def

Discussion


Log in to post a comment.