Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread bill lam
gt; > The success of the project is giving me a buzz. > > Many thanks for your help. > > Graham > > On Sat, 21 Apr 2012 03:35:42 +1200 Ric Sherlock wrote: > > Subject: Re: [Jprogramming] Colouring dots in plot > > To: Programming forum > > Message-ID: > &g

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Linda Alvord
...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Graham Parkhouse Sent: Friday, April 20, 2012 6:20 PM To: programming@jsoftware.com Subject: Re: [Jprogramming] Colouring dots in plot Ric, thank you for this. Defining a palette in the _z_ locale is just the ticket. I shall explore

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Graham Parkhouse
Ric Sherlock wrote: > Subject: Re: [Jprogramming] Colouring dots in plot > To: Programming forum > Message-ID: >qyhhjjrlv...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Graham, > I think the error you are getting is because the noun defini

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Ric Sherlock
On Sat, Apr 21, 2012 at 3:38 AM, Graham Parkhouse wrote: > > Can I create my own palette, like was done for the Surface of Revolution, > using CLR=: (RED,:YELLOW) hue 0.1*i.11? Or was this done in a plotting > locale? > The answer is yes (see my previous post). The colorxy_jzplot_ verb looks like

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Graham Parkhouse
Thank you all for your help! Ric Sherlock responded: > Does this help? > pd 'reset' > pd 'itemcolor red' > pd 'type marker' > pd 'markersize 1.2' > pd 'markers circle' > pd (i.15);15?30 > pd 'itemcolor blue' > pd (5+ i.10);7 + 10?30 > pd 'show' > > Or are you after more of a con

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Ric Sherlock
Graham, I think the error you are getting is because the noun defining the list of itemcolors to use isn't found. It seems that the name of the noun must be all uppercase, and must be in the copath of the jzplot locale so it is found while the plot is being constructed. The following example should

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Linda Alvord
Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Ric Sherlock Sent: Friday, April 20, 2012 9:46 AM To: Programming forum Subject: Re: [Jprogramming] Colouring dots in plot Actually that's only sort of true. The Plot demo loads

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Ric Sherlock
Actually that's only sort of true. The Plot demo loads the numeric script (general/misc/numeric) which defines the verb steps. It is also documented there. Try: open 'numeric' If you're using the JHS IDE you'll need to use the full form for now: open '~addons/general/misc/numeric.ijs' The s

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Ric Sherlock
It is defined in demos/plot/plotdemo as: steps=: {. + (1&{ - {.) * (i.@>: % ])@{: On Sat, Apr 21, 2012 at 1:05 AM, Linda Alvord wrote: > What is the definition of steps? > > Linda > > -Original Message- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.co

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Linda Alvord
What is the definition of steps? Linda -Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Graham Parkhouse Sent: Friday, April 20, 2012 6:13 AM To: programming@jsoftware.com Subject: [Jprogramming] Colouring dots in plot I a

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Ric Sherlock
Yes, here is a basic(ish) example: pd 'reset' pd 'type point' pd 'itemcolor red,orange,yellow,green,blue' pd 'pensize 5' dat=: 50?50 datgrp=: <.@(%&10) dat NB. calc groups for dat pd@> ;/@|: &.> (~.datgrp)/:~(datgrp wrote: > >> How can I >> increase the information

Re: [Jprogramming] Colouring dots in plot

2012-04-20 Thread Ric Sherlock
Does this help? pd 'reset' pd 'itemcolor red' pd 'type marker' pd 'markersize 1.2' pd 'markers circle' pd (i.15);15?30 pd 'itemcolor blue' pd (5+ i.10);7 + 10?30 pd 'show' Or are you after more of a continuous colour change? On Fri, Apr 20, 2012 at 10:12 PM, Graham Parkh