[kepler-dev] Plotting tab delimited data

Dan Higgins higgins at nceas.ucsb.edu
Thu Aug 31 10:55:39 PDT 2006


Ilkay,
    Generating a legend for the Kepler/PT XY plotter is simply a matter 
of configuring the XY Plotter actor (and the TimedPlotter) - ie there is 
a 'legend' parameter. Comma separated strings are attached to the 
curves. I had trouble finding this also because it is a parameter of the 
actor, not a setting of the plot window itself.

    Parsing data with various delimiters is carried out inside the 
EMLDataSource with the delimiter specified inside the EML. The 
RExpression actor can also parse tab delimited data from a datafile (See 
$KEPLER/workflows/R/gce-mollusc-avg_by_spp_R_local.xml). I think at one 
time I had an actor that parsed string data but it got removed as 
unneeded at some point. If you just have a string, maybe you could use a 
regexp to replace the \t with commas, and add curly brackets to the 
frone and back. That would create a PT expression for an array which 
could be converted to a sequence and used in Ptolemy's plot actors?

Dan


Ilkay Altintas wrote:
> Hi Everyone,
>
> Is there an easy way to plot tab-delimited data in PTII or Kepler?   I'm
> also trying to generate a legend for what the different line   colors are,
> etc similar to excel.
>
> Thanks,
> -ilkay
>
>
>
>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>
>   


-- 
*******************************************************************
Dan Higgins                                  higgins at nceas.ucsb.edu
http://www.nceas.ucsb.edu/    Ph: 805-893-5127
National Center for Ecological Analysis and Synthesis (NCEAS) Marine Science Building - Room 3405
Santa Barbara, CA 93195
*******************************************************************




More information about the Kepler-dev mailing list