'Color' command

481 views
Skip to first unread message

E. Valzolgher

unread,
Oct 8, 2013, 3:35:10 PM10/8/13
to ox...@googlegroups.com

Christopher,

 

I have done (on OxCal 4.2.3) a dendro wiggle-match for an Early Bronze Age regional oak chronology (curve), which is made up of two local (site-specific) curves. Based on this dendro wiggle-match and on sapwood estimates, I have obtained  - within the same model - a series of felling dates for timbers from the two sites (please see the OxCal code below). I would like to highlight with different colours (e.g. red and blue) the distributions of the felling dates of the two sites. However, when I use the ‘color’ command for e.g. Date(“=Relative year [RY] …”)+U(x,y), or Date(“=RY …”)+N(x), the ‘color’ command does not work, that is, the distributions are shown in ‘default’ dark grey (or in black, if I use ‘B & W only’). It only works for Date(“=RY …”).        
Is there a way to colour even these distributions? If you are not too busy, could you please catch a glimpse of the OxCal code below?

 

Thank you

 

Best wishes,

 

Erio

 
 

Options()

 {

  Resolution=1;

 };

 Plot()

 {

  Sequence("dummy")

  {

   R_Date("dummy1", 3456, 78);

   R_Date("dummy2", 3456, 78);

  };

  Page( );

  Phase()

  {

   D_Sequence("GARDA 3 regional oak chronology wiggle-match")

   {

    Date("RY 1");

    Gap(20);

    R_Date("Hd-19593 RY 21", 3487, 20);

    Gap(49);

    R_Date("Hd-19596 RY 70", 3499, 20);

    Gap(25);

    R_Date("Hd-19818 RY 95", 3450, 17);

    Gap(27);

    Date("RY 122");

    Gap(8.5);

    R_Date("Hd-17957 RY 130.5", 3495, 20);

    Gap(3.5);

    Date("RY 134");

    Gap(2);

    Date("RY 136");

    Gap(6);

    Date("RY 142");

    Gap(21);

    Date("RY 163");

    Gap(7.5);

    R_Date("Hd-17895 RY 170.5", 3386, 25);

    Gap(4.5);

    Date("RY 175");

    Gap(1);

    Date("RY 176");

    Gap(10);

    Date("RY 186");

    Gap(1);

    Date("RY 187");

    Gap(4);

    Date("RY 191");

    Gap(4);

    Date("RY 195");

    Gap(1);

    Date("RY 196");

    Gap(24);

    Date("RY 220");

   };

   Label("Frassino I and Bosca di Pacengo felling dates")

   {

   };

   Date("=RY 122")

   {

    color="Red";

   };

   Date("=RY 134")+U(1,4)

   {

    color="Red";

   };

   Date("=RY 136")

   {

    color="Red";

   };

   Date("=RY 142")+N(11)

   {

    color="Blue";

   };

   Date("=RY 163")+U(8,15)

   {

    color="Blue";

   };

   Date("=RY 175")+U(0,1)

   {

    color="Red";

   };

   Date("=RY 176")+U(0,1)

   {

    color="Red";

   };

   Date("=RY 186")

   {

    color="Red";

   };

   Date("=RY 187")+U(7,27)

   {

    color="Blue";

   };

   Date("=RY 191")+U(2,5)

   {

    color="Red";

   };

   Date("=RY 195")

   {

    color="Red";

   };

   Date("=RY 196")+U(2,5)

   {

    color="Blue";

   };

   Date("=RY 220")+U(1,20)

   {

    color="Blue";

   };

  };

 };

Bayliss, Alex

unread,
Oct 8, 2013, 3:45:16 PM10/8/13
to ox...@googlegroups.com
Hi Erio,

Have you got the black & white option turned on in format > plot?

Alex
--
You received this message because you are subscribed to the Google Groups "OxCal" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oxcal+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

This e-mail (and any attachments) is confidential and may contain personal views which are not the views of English Heritage unless specifically stated. If you have received it in error, please delete it from your system and notify the sender immediately. Do not use, copy or disclose the information in any way nor act in reliance on it. Any information sent to English Heritage may become publicly available.

Portico: your gateway to information on sites in the National Heritage Collection; have a look and tell us what you think.
http://www.english-heritage.org.uk/professional/archives-and-collections/portico/

E. Valzolgher

unread,
Oct 8, 2013, 5:49:51 PM10/8/13
to ox...@googlegroups.com
 
Hi Alex
 
Apologies (I am a bit tired tonight): If one uses the 'B & W only' option in Format > Style all of the distributions are obviously shown in black !
By the way, I have turned off the 'B & W only' option, and the distributions of the felling dates, except for Date("RY..."), are shown in default dark grey (please see the PDF attached; NB: for the OxCal code please see my previous message).
 
Erio 
GARDA_3_DWM_2013_.pdf

Christopher Ramsey

unread,
Oct 9, 2013, 6:38:07 AM10/9/13
to <oxcal@googlegroups.com>
Thanks

A couple of things:

First there was a minor problem with the last update to the web interface (v77) a couple of days ago that could result in coloured distributions appearing to be filled in white; this is now corrected (v78). However, is this not your problem.

The problem I think you are having is because the program does not know which distribution to apply the colour to. In a command like:

N("A",100,10)+N("B",200,20)

there are actually three distributions and parameters produced, A, B and the resultant - which can be more explicitly given as C:

C=N("A",100,10)+N("B",200,20)

if you start adding in curly brackets with color statements this gets in the way of the mathematical notation. There is a way around this which is not documented. The + operation can also be achieved with the Calculate command. This then enables you to colour each item independently so for example:

Calculate("C","+")
{
N("A",100,10){color="red";};
N("B",200,20){color="green";};
color="blue";
};

will colour each of the distributions in different colours. It is not possible to do this within the one-line command above.

I hope this helps to get around your problem.

Christopher

PS. You can now set the fill color separately from the line colour using the "fill" command. This is mostly used for markers - but gives another option for distributions too. See the post:

https://groups.google.com/forum/?hl=en-GB&fromgroups#!topic/oxcal/GtcGiIEsE8I

for details.


On 8 Oct 2013, at 22:49, "E. Valzolgher" <erio...@gmail.com>
wrote:
> <GARDA_3_DWM_2013_.pdf>

E. Valzolgher

unread,
Oct 9, 2013, 1:56:43 PM10/9/13
to ox...@googlegroups.com

Thank you very much, Christopher. 
Everything is clear now.

Best wishes,

Erio

E. Valzolgher

unread,
Oct 12, 2013, 1:41:29 AM10/12/13
to ox...@googlegroups.com

Christopher,

Sorry. Just one last thing. 
Following your suggestion, I have used the Calculate command (on OxCal v4.2.3 [78]), and the distributions in my model ("View>Plot dates") are now coloured; also the parameters ("View>Plot parameters") are now coloured. However, taken individually  ("View>Plot single"), the same distributions are still in default dark grey.
Why?

Best wishes,

Erio





Il giorno mercoledì 9 ottobre 2013 12:38:07 UTC+2, Christopher Ramsey ha scritto:

Christopher Ramsey

unread,
Oct 12, 2013, 6:03:02 AM10/12/13
to <oxcal@googlegroups.com>
Erio

It only uses the colour in multiplots because normally the need is to use it to distinguish different plots in that form. The reasons for this are partly simplicity - but also that colouring is used to distinguish different calibration curves used - in the single plots there is only one; in short it would be possible to add colour to individual plots but it is not totally straight-forward.

If lots of people would find it useful let me know!

For the moment, any visual adjustments can always be done by downloading the plot as SVG and using an image editor like Inkscape.

Best wishes

Christopher

On 12 Oct 2013, at 06:41, "E. Valzolgher" <erio...@gmail.com>

E. Valzolgher

unread,
Oct 12, 2013, 7:03:38 AM10/12/13
to ox...@googlegroups.com

Thanks for clarifying this.

Best wishes

Erio
Reply all
Reply to author
Forward
0 new messages