Using the "ptolemy.plot.HistogramApplet" from the Plot.jar
<param name = "data" value="TitleText: Histogram from datastring [WIMS variable];XLabel: values ;YLabel: count;YRange: 0.0,100.0;BarGraph: 0.5,0.15 ;BinWidth: 1.0;BinOffset: 0.5 ;dataset: first;1;5.0;4.938441702975688;4.755282581475768;4.455032620941839;4.045084971874737;3.5355339059327378;2.938926261462366;2.269952498697734;1.5450849718747373;0.7821723252011547;3.061515884555943E-16;-0.7821723252011529;-1.5450849718747368;-2.2699524986977337;-2.9389262614623655;-3.5355339059327373;-4.045084971874737;-4.455032620941839;-4.755282581475767;-4.938441702975688;-5.0;-4.938441702975688;-4.755282581475769;-4.455032620941839;-4.045084971874737;-3.535533905932738;-2.9389262614623664;-2.2699524986977346;-1.545084971874738;-0.7821723252011552;-9.18454765366783E-16;0.7821723252011534;1.5450849718747361;2.269952498697733;2.938926261462365;3.535533905932737;4.045084971874736;4.4550326209418385;4.755282581475767;4.938441702975688;5.0;4.938441702975689;4.755282581475768;4.45503262094184;4.045084971874741;3.5355339059327386;2.938926261462367;2.269952498697731;1.5450849718747386;0.7821723252011602;1.5307579422779716E-15;-0.7821723252011484;-1.5450849718747357;-2.2699524986977364;-2.938926261462364;-3.5355339059327395;-4.045084971874736;-4.455032620941837;-4.755282581475767;-4.9384417029756875;-5.0;-4.938441702975688;-4.755282581475768;-4.4550326209418385;-4.045084971874738;-3.535533905932742;-2.9389262614623672;-2.26995249869774;-1.545084971874739;-0.7821723252011521;-2.1430611191891602E-15;0.7821723252011565;1.545084971874735;2.269952498697728;2.9389262614623637;3.535533905932733;4.0450849718747355;4.45503262094184;4.755282581475767;4.938441702975689;5.0;4.938441702975689;4.755282581475772;4.4550326209418385;4.045084971874739;3.5355339059327364;2.9389262614623677;2.2699524986977404;1.5450849718747481;0.7821723252011527;2.755364296100349E-15;-0.7821723252011472;-1.5450849718747344;-2.2699524986977275;-2.9389262614623703;-3.5355339059327386;-4.0450849718747355;-4.455032620941836;-4.755282581475764;-4.938441702975688;-5.0;dataset: second;4.5;4.46451615591515;4.35862422507884;4.183994186497132;3.943380060197386;3.6405764746872635;3.280358823396352;2.8684079538691036;2.4112205774054845;1.9160068120428269;1.3905764746872635;0.8432159156357613;0.28255733788191084;-0.2825573378819103;-0.8432159156357607;-1.3905764746872622;-1.9160068120428273;-2.411220577405486;-2.8684079538691036;-3.280358823396351;-3.640576474687263;-3.9433800601973865;-4.183994186497131;-4.35862422507884;-4.46451615591515;-4.5;-4.46451615591515;-4.35862422507884;-4.183994186497132;-3.943380060197386;-3.640576474687265;-3.280358823396353;-2.868407953869103;-2.4112205774054836;-1.9160068120428246;-1.3905764746872642;-0.8432159156357608;-0.2825573378819094;0.28255733788190773;0.8432159156357593;1.3905764746872626;1.9160068120428233;2.4112205774054853;2.868407953869102;3.2803588233963508;3.6405764746872626;3.9433800601973843;4.183994186497132;4.358624225078839;4.46451615591515;4.5;4.464516155915151;4.35862422507884;4.183994186497131;3.943380060197387;3.640576474687264;3.280358823396352;2.8684079538691063;2.411220577405484;1.9160068120428289;1.3905764746872684;0.8432159156357614;0.28255733788191395;-0.2825573378819112;-0.8432159156357626;-1.390576474687262;-1.91600681204283;-2.411220577405485;-2.8684079538691076;-3.280358823396353;-3.6405764746872626;-3.943380060197388;-4.183994186497132;-4.358624225078839;-4.464516155915151;-4.5;-4.464516155915151;-4.35862422507884;-4.183994186497133;-3.9433800601973856;-3.6405764746872644;-3.280358823396355;-2.86840795386911;-2.411220577405481;-1.9160068120428257;-1.390576474687265;-0.8432159156357658;-0.2825573378819185;0.2825573378819067;0.843215915635762;1.3905764746872615;1.9160068120428222;2.411220577405478;2.868407953869101;3.2803588233963525;3.640576474687262;3.9433800601973834;4.183994186497131;4.358624225078839;4.464516155915151;4.5;dataset: third;4.0;3.978087581473093;3.9125904029352228;3.804226065180614;3.6541818305704035;3.464101615137755;3.23606797749979;2.972579301909577;2.676522425435433;2.3511410091698925;2.0000000000000004;1.6269465723032015;1.2360679774997898;0.8316467632710369;0.41811385307061383;1.1330996904646007E-15;-0.41811385307061333;-0.8316467632710374;-1.2360679774997894;-1.6269465723032002;-1.9999999999999991;-2.351141009169892;-2.6765224254354316;-2.972579301909576;-3.2360679774997894;-3.464101615137755;-3.654181830570404;-3.804226065180614;-3.9125904029352228;-3.9780875814730936;-4.0;-3.9780875814730936;-3.9125904029352228;-3.8042260651806146;-3.6541818305704035;-3.4641016151377553;-3.2360679774997902;-2.972579301909577;-2.676522425435434;-2.351141009169893;-2.0000000000000018;-1.6269465723032035;-1.2360679774997902;-0.8316467632710391;-0.41811385307061694;-7.347638122934264E-16;0.41811385307061194;0.8316467632710377;1.236067977499789;1.626946572303199;2.0000000000000004;2.3511410091698917;2.676522425435434;2.972579301909577;3.2360679774997894;3.4641016151377553;3.654181830570404;3.804226065180614;3.9125904029352228;3.978087581473093;4.0;3.9780875814730936;3.912590402935223;3.8042260651806146;3.6541818305704044;3.464101615137756;3.2360679774997902;2.9725793019095783;2.676522425435433;2.3511410091698934;2.000000000000002;1.6269465723032008;1.236067977499791;0.8316467632710397;0.4181138530706139;1.2246063538223773E-15;-0.4181138530706115;-0.8316467632710338;-1.2360679774997885;-1.6269465723032017;-1.999999999999997;-2.3511410091698917;-2.6765224254354285;-2.972579301909579;-3.236067977499789;-3.4641016151377553;-3.654181830570402;-3.8042260651806137;-3.9125904029352214;-3.9780875814730936;-4.0;-3.978087581473093;-3.912590402935223;-3.8042260651806146;-3.654181830570403;-3.464101615137753;-3.2360679774997907;-2.972579301909581;-2.6765224254354356;-2.351141009169894;-1.9999999999999993;dataset: forth;3.5;3.4859100289833367;3.4437535600952036;3.3738700124354866;3.2768220472390803;3.153391037658467;3.0045707776065314;2.831559480312316;2.6357501310126383;2.4187192714540267;2.1822143065055672;1.9281394350823593;1.6585403186554954;1.3755876107887328;1.081559480312316;0.7788232688471006;0.4698164303617944;0.15702690622680246;-0.15702690622680202;-0.46981643036179394;-0.7788232688471002;-1.0815594803123156;-1.3755876107887317;-1.658540318655495;-1.9281394350823586;-2.1822143065055672;-2.418719271454026;-2.635750131012638;-2.8315594803123156;-3.0045707776065314;-3.1533910376584666;-3.27682204723908;-3.3738700124354866;-3.4437535600952036;-3.4859100289833367;-3.5;-3.4859100289833367;-3.443753560095204;-3.3738700124354866;-3.2768220472390803;-3.153391037658467;-3.0045707776065327;-2.831559480312316;-2.6357501310126388;-2.418719271454028;-2.1822143065055677;-1.9281394350823593;-1.658540318655496;-1.3755876107887333;-1.0815594803123165;-0.778823268847101;-0.46981643036179477;-0.15702690622680288;0.1570269062268016;0.4698164303617935;0.7788232688470997;1.0815594803123154;1.375587610788732;1.6585403186554948;1.9281394350823582;2.182214306505567;2.4187192714540258;2.635750131012638;2.8315594803123156;3.004570777606531;3.1533910376584666;3.27682204723908;3.373870012435486;3.4437535600952036;3.4859100289833367;3.5;3.4859100289833367;3.443753560095204;3.3738700124354866;3.2768220472390808;3.1533910376584675;3.004570777606532;2.8315594803123165;2.6357501310126388;2.418719271454027;2.182214306505568;1.9281394350823597;1.658540318655499;1.3755876107887308;1.081559480312317;0.7788232688471014;0.4698164303617952;0.1570269062268064;-0.15702690622679805;-0.46981643036179616;-0.7788232688470993;-1.081559480312315;-1.3755876107887317;-1.6585403186554943;-1.928139435082358;-2.1822143065055664;-2.4187192714540253;-2.6357501310126374;-2.831559480312315;-3.004570777606531;-3.1533910376584666;dataset: fifth;3.0;2.990752001199384;2.9630650217854133;2.91710976119303;2.853169548885461;2.7716385975338604;2.673019572565104;2.5579204930622765;2.4270509831248424;2.2812178968000927;2.121320343559643;1.9483441449905512;1.7633557568774194;1.5674956941478466;1.3619714992186405;1.1480502970952695;0.9270509831248425;0.7003360915677164;0.46930339512069275;0.235377287183535;1.836909530733566E-16;-0.23537728718353465;-0.46930339512069175;-0.700336091567716;-0.927050983124842;-1.148050297095269;-1.3619714992186402;-1.5674956941478464;-1.7633557568774192;-1.9483441449905508;-2.1213203435596424;-2.2812178968000927;-2.427050983124842;-2.5579204930622765;-2.6730195725651034;-2.77163859753386;-2.8531695488854605;-2.91710976119303;-2.9630650217854133;-2.990752001199384;-3.0;-2.9907520011993842;-2.9630650217854133;-2.91710976119303;-2.8531695488854614;-2.7716385975338604;-2.673019572565104;-2.557920493062276;-2.4270509831248424;-2.281217896800094;-2.121320343559643;-1.9483441449905523;-1.7633557568774199;-1.567495694147846;-1.361971499218641;-1.1480502970952686;-0.9270509831248428;-0.700336091567718;-0.46930339512069313;-0.2353772871835367;-5.510728592200698E-16;0.2353772871835356;0.469303395120692;0.7003360915677169;0.9270509831248417;1.1480502970952675;1.3619714992186398;1.5674956941478448;1.763355756877419;1.9483441449905514;2.121320343559642;2.281217896800093;2.427050983124842;2.5579204930622756;2.6730195725651034;2.7716385975338595;2.8531695488854605;2.91710976119303;2.963065021785413;2.990752001199384;3.0;2.9907520011993842;2.9630650217854138;2.91710976119303;2.853169548885461;2.77163859753386;2.673019572565104;2.557920493062278;2.427050983124844;2.2812178968000927;2.1213203435596433;1.9483441449905525;1.76335575687742;1.5674956941478484;1.3619714992186387;1.1480502970952688;0.9270509831248431;0.7003360915677184;0.46930339512069613;0.2353772871835344;9.18454765366783E-16;dataset:ninth;2.4939101256495606;2.475670171853926;2.4453690018345142;2.4031542398457972;2.349231551964771;2.283863644106502;2.2073689821473175;2.120120240391065;2.0225424859373686;1.9151111077974452;1.798349500846628;1.6728265158971456;1.5391536883141457;1.397982258676867;1.2500000000000002;1.0959278669726935;0.9365164835397799;0.7725424859373686;0.6048047389991698;0.4341204441673261;0.26132115816913365;0.0872487417562527;-0.08724874175625184;-0.2613211581691333;-0.43412044416732576;-0.6048047389991694;-0.7725424859373684;-0.9365164835397801;-1.0959278669726937;-1.2499999999999996;-1.3979822586768669;-1.5391536883141457;-1.6728265158971456;-1.7983495008466281;-1.9151111077974448;-2.0225424859373686;-2.120120240391065;-2.207368982147317;-2.283863644106502;-2.349231551964771;-2.403154239845797;-2.4453690018345142;-2.475670171853926;-2.4939101256495606;-2.5;-2.4939101256495606;-2.475670171853926;-2.4453690018345142;-2.4031542398457972;-2.349231551964771;-2.2838636441065026;-2.207368982147317;-2.1201202403910653;-2.0225424859373686;-1.9151111077974452;-1.7983495008466277;-1.672826515897146;-1.5391536883141452;-1.3979822586768682;-1.2500000000000009;-1.0959278669726944;-0.9365164835397807;-0.772542485937369;-0.6048047389991695;-0.4341204441673258;-0.26132115816913337;-0.08724874175625412;0.0872487417562532;0.2613211581691325;0.4341204441673249;0.6048047389991686;0.7725424859373681;0.9365164835397799;1.0959278669726935;1.2500000000000002;1.3979822586768655;1.5391536883141463;1.6728265158971445;1.798349500846627;1.9151111077974445;2.022542485937368;2.1201202403910635;2.2073689821473175;2.283863644106502;2.3492315519647713;2.403154239845797;2.445369001834514;2.475670171853926;2.4939101256495606;2.5;2.4939101256495606;2.4756701718539262;2.4453690018345147;2.4031542398457972;2.349231551964771;2.283863644106503;2.207368982147318;2.1201202403910653;2.0225424859373677;1.9151111077974454 ">
A histogram plotter
The plot can be configured and data can
be provided either through a file with commands or through direct
invocation of the public methods of the class
To read a file or a
URL, use the read() method
When calling the public methods, in most cases the changes will not
be visible until paint() has been called
To request that this
be done, call repaint()
One exception is addPoint(), which
makes the affect of the new point visible immediately (or nearly
immediately) if the plot is visible on the screen
The ASCII format for the file file contains any number commands,
one per line
Unrecognized commands and commands with syntax
errors are ignored
Comments are denoted by a line starting with a
pound sign "#"
The recognized commands include those supported by
the base class, plus a few more
The commands are case
insensitive, but are usually capitalized
The number of data sets
to be plotted does not need to be specified
Data sets are added as needed
Each dataset is identified with a color (see the base class)
The appearance of the histogram can be altered by the following commands:
Bars: width Bars: width, offsetThe width is a real number specifying the width of the bars as a fraction of the bin width
The width of each bin of the histogram can be specified using:
BinWidth: widthThis is given in whatever units the data has
BinOffset: offsetIf this method is used with argument o, then each bin is centered at x = nw + o, and represents values in the range (x - w/2 + o, x + w/2 + o)
To specify data to be plotted, start a data set with the following command:
DataSet: stringHere, string is a label that will appear in the legend
DataSet:In this case, no item will appear in the legend