PDL :: Graphics :: prima

Een Interactive Graph-widget voor PDL en Prima
Download nu

PDL :: Graphics :: prima Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • Perl Artistic License
  • Prijs:
  • FREE
  • Naam uitgever:
  • David Mertens
  • Uitgever website:
  • http://search.cpan.org/~dcmertens/

PDL :: Graphics :: prima Tags


PDL :: Graphics :: prima Beschrijving

PDL :: Graphics :: Prima is een plotinterface voor het maken en verkennen van 2D-gegevensvisualisaties. De kern van deze interace is een plot-widget die kan worden opgenomen in prima-applicaties. Synopsis Gebruik PDL :: Graphics :: prima :: eenvoudig; gebruik PDL; # Genereer enkele gegevens - een sine curve mijn $ x = sequentie (100) / 20; mijn $ y = sin ($ x); # Trek een punt bij elk x / y-paar: Blob_plot ($ x, $ y); # Teken een lijn die elk X / Y-paar verbindt: line_plot ($ x, $ y); # Teken een histogram: mijn ($ bin_centers, $ heights) = $ y-> hist; hist_plot ($ bin_centers, $ heights); hist_plot ($ y-> hist); # Equivalent # Genereer wat gegevens - een golvend patroon mijn $ imago = zonde (sequentie (100) / 10) + zonde (sequentie (100) / 20) -> Transpose; # Genereer een Greyscale Afbeelding: Matrix_plot ($ imago); # Set de linker, rechts, onderste, topmatrix_plot (, , $ imago); # Gebruik het meer algemene plot voor meerdere datasets # en meer plotfuncties: mijn $ Colors = PAL :: Rainbow () -> Toepassen ($ X); plot (-lijnen => DS :: paar ($ x, $ y), -color_blobs => DS :: paar ($ x, $ y + 1, kleuren => $ Kleuren, plittype => PT :: blobs), x => {label => 'Tijd'}, y => {label => 'sine'},); Widget Synopsis Gebruik PDL; Gebruik Prima QW (Toepassing); Gebruik PDL :: Graphics :: prima; mijn $ T_DATA = sequentie (6) / 0,5 + 1; mijn $ Y_DATA = EXP ($ T_DATA); Mijn $ WDisplay = Prima :: MainWindow-> Maken (Tekst => 'Grafiektest', Size => ,); $ WDISPLAY-> INSERLAND ('PLOT', -FUNCTIE => DS :: FUNC (\ PDL :: EXP, COLOR => CL :: Blauw), -Data => DS :: Paar ($ T_DATA, $ Y_DATA, kleur => cl :: rood), pack => {vul => 'beide', expand => 1},); Prima uitvoeren; de startpagina van het product


PDL :: Graphics :: prima Gerelateerde software