LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2007, 03:25 AM   #1
pranavojha
Member
 
Registered: Feb 2006
Location: Bangalore, India
Distribution: Fedora Core 3
Posts: 68

Rep: Reputation: 15
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?
 
Old 02-21-2007, 04:17 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me to draw graphics with C#!!!!!!!!!!!!!! JohhnyAlpha8 Programming 3 12-15-2006 05:37 PM
Draw graphics with C# JohhnyAlpha8 Programming 2 12-15-2006 02:32 PM
Help me to draw graphics with C#!!!!!!!!!!!!!! JohhnyAlpha8 Linux - Newbie 2 12-15-2006 12:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration