GRAPHICS(1p)
β¨ GRAPHICS β the PDL::Graphics tea π
okay bestie, so this is the page for PDL::Graphics (it lives in the 1p manual section, aka the Perl user-contributed corner of the manpage universe π). Consider this your group-chat rundown of every PDL plotting module so you don't have to go digging. π«Ά
πΈ NAME πΈ
PDL::Graphics β the intro page to the PDL::Graphics modules, i.e. the "which one do I even install" cheat sheet. π
π DESCRIPTION π
PDL has full-featured plotting abilities, no cap. But unlike MATLAB, PDL lowkey outsources its plotting to third-party libraries: Prima, Gnuplot, OpenGL, PLplot and PGplot. π
PDL has several plotting modules you get to pick from, and each one has its own particular strengths and weaknesses β it's giving "pick your fighter" energy. On this page you'll find a short review of each of the main PDL::Graphics::* modules. Let's go. π¦
π GRAPHIC MODULES REVIEWS π
β The newest generation of PDL::Graphics modules
π§ PDL::Graphics::Simple
Best for: backend-independent output β you get the same plots, whichever of the graphical modules you manage to install. (iconic behaviour, honestly)
A unified, backend-independent plotting interface for PDL. It implements all the functionality used in the PDL::Book examples, and it will probably be the easiest PDL::Graphics module for you to install, since it relies on any of the other ones. π
Because it's backend-independent, the plot you get will always be what you asked for, regardless of which plotting engine you have installed on your system. main character energy fr fr.
β οΈ Only a small subset of PDL's complete graphics functionality is supported β each individual plotting module has unique advantages and functionality that are beyond what PDL::Graphics::Simple can do. so like, it's the friendly starter, not the whole buffet. π
π PDL::Graphics::Gnuplot
Best for: publication-quality 2D and 3D plots β¨
Gnuplot is widely used and produces publication-quality plots. It's also interactive β you can pan, scale, and rotate both 2-D and 3-D plots. And its API is powerful, simple and intuitive. ate, no crumbs. π₯
A video tutorial is available at <http://www.youtube.com/watch?v=hUXDQL3rZ_0>.
π¨ Notice: you must install gnuplot on your computer first. like, it's not optional bestie, it's a prerequisite.
π¦ PDL::Graphics::Prima
Best for: Integration of your plots into your application GUI. Possibility to create a dedicated GUI to let your application users interact with the plotted data. π so good
Lets you focus on what you want to visualize rather than the details of how you would draw it. Its killer feature is that it belongs to the the Prima GUI environment (an alternative to Tk, Gtk, Wx, etc). Prima provides an array of useful interactive widgets and a simple but powerful event-based programming model. These tools allow you to build interactive data visualization and analysis applications with sophisticated plotting and intuitive user interaction in only a few hundred lines of code. Or more simply: to include a plot into an application. π
For this reason, PDL::Graphics::Prima's API is more complex than PDL::Graphics::Gnuplot's. It is advised to start with PDL::Graphics::Prima::Simple, which focuses on the plotting functions and does not mess with Widgets. π
A tutorial is available here: <http://search.cpan.org/~chm/PDL-2.006/Demos/Prima.pm>
As well as a video tutorial at <http://www.youtube.com/watch?v=WILd2XTz3F4>.
π PDL::Graphics::TriD
Best for: Plotting heavy 3D images, fast. β‘
The native PDL 3D graphics library using OpenGL as a backend for 3D plots and data visualization. With OpenGL, it is easy to manipulate the resulting 3D objects with the mouse in real time. π
OpenGL makes PDL::Graphics::TriD a lot faster than Gnuplot to manipulate 3D images. But Gnuplot's output is publication quality, and Gnuplot is in general easier to manipulate. If you manipulate heavy images, PDL::Graphics::TriD might be the thing for you. πΈ
π°οΈ Good old PDL::Graphics modules
Still well maintained, documented, and widely used. the elders slay too π
π PDL::Graphics::PLplot
Best for: Plotting 2D functions as well as 2D and 3D data sets. β¨
This is an interface to the PLplot plotting library. PLplot is a modern, open source library for making scientific plots. It supports plots of both 2D and 3D data sets. PLplot is best supported for unix/linux/macosx platforms. It has an active developers community and support for win32 platforms is improving. π«Ά
π PDL::Graphics::PGPLOT
Best for: Plotting 2D functions. More widely used in the scientific community. π§βπ¬
This is an interface to the venerable PGPLOT library. PGPLOT has been widely used in the academic and scientific communities for many years. In part because of its age, PGPLOT has some limitations compared to newer packages such as PLplot (e.g. no RGB graphics). But it has many features that still make it popular in the scientific community. π
π SEE ALSO π
PDL::Graphics::SimplePDL::Graphics::GnuplotPDL::Graphics::PrimaPDL::Graphics::TriDPDL::Graphics::PGPLOTPDL::Graphics::PLplot
π«Ά AUTHOR π«Ά
Pierre Masci, 2013. thank you for your service king π
and that's the whole page bestie! π this lil writeup shipped with perl v5.38.2, dated 2024-04-10 β so if you're reading this in the group chat of the future, that's the vibe-check timestamp. go make some plots, you've got this πβ¨π
π¦ where this page comes from
- ubuntu noble: pdl 1:2.085-1ubuntu1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms