On Oct 31, 2006, at 5:37 PM, Orm Finnendahl wrote:

Hi,

 trying out plotter (from cm-gtk in linux), the following questions
came up:

1. Is it possible to set different colors to different box objects
   within the same layer to reflect slot values?
   (I think it is not possible right now; I'm just asking whether it
   is complicated to implement and how to do it).

not possible as is. color intensity was part of the original MCL plotter -- you could map amplitude (or whatever) to how bright the layer color was. but i didnt implement this when i moved code to gtk, i cant rememeber why. adding would be work but certainly doable. the easiest way would be to break up the functions 'draw-line-and-point' and 'draw-box-and- bubble' into methods (which i should have done anyway...) and move the clauses of the current case statement into the methods. then create a a NEW method that implements your colored points and make it a new style of plot.


2. Is it possible to send update commands to the gtk window from the
   language in order to make the graphics reflect changes in the
   subobjects of plotter's sequence?

yes this is easy, simply call 'plotter-redraw' after your changes.

_______________________________________________
Cmdist mailing list
[email protected]
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to