LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to draw graphics in Perl (https://www.linuxquestions.org/questions/programming-9/how-to-draw-graphics-in-perl-530955/)

pranavojha 02-21-2007 03:25 AM

How to draw graphics in Perl
 
I am told to create a simple perl script that plots points on a two-dimensional graph of X and Y axis. Are there any functions using which we can draw line, circle and plot points in perl?

matthewg42 02-21-2007 04:17 AM

Perl itself doesn't have a standard way to draw graphics, but there are many modules which allow this.

Do you want your program to produce an image file which is to be viewed with another program? Do you want to use your system's windowing system to open a window with your graph in?

If you want to produce graphs as image files, check out the Chart module, or GD (which Chart uses).

If you're wanting a GUI toolkit, you have various options: Tk, QT, Gtk, probably plus many more.


All times are GMT -5. The time now is 07:43 PM.