Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-19-2006, 12:51 PM   #1
LQ Newbie
Registered: Jul 2005
Posts: 12

Rep: Reputation: 0
What is best 2D graphics for huge scientific data

I am giving up on JAVA for data analysis. It's 2D graphics are non-unified. What is a good language? Does C++ come with Linux? Does it have good graphics? Is a graphics set available?
Old 02-19-2006, 12:53 PM   #2
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Originally Posted by hill0093
I am giving up on JAVA for data analysis. It's 2D graphics are non-unified. What is a good language? Does C++ come with Linux? Does it have good graphics? Is a graphics set available?
What do you mean with "non-unified", give us some examples. You can't create graphical applications with C++. Period. At least it does not have anything inbuilt within the language as Java and Swing or AWT. You will need to pick up an API as well, as QT or GTK.
Old 02-20-2006, 10:36 AM   #3
LQ Newbie
Registered: Jul 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for your response. It's the only one. But I got one answer for four questions. Here is my answer to your question.
To me, Java Graphics2D doesnít seem to fit together like a coherent whole. One could write a whole essay. A nice feature is that it introduces points (1/72nd inch) in floating point numbers so one can avoid pixel precision questions when printing on paper. As I understand it, this was introduced at about the same time as the BufferedImage which one declares in integer pixel sizes (thatís reasonable), and they allow you to drawImage() the BufferedImage onto the printer paper which is a nice feature. But they have no method to set a scale factor between pixels and points on the buffered image. But in fact there is a scale factor equal to one and permanent, which makes the BufferedImage kind of useless.
Another complaint is that to get the non-printable margins of the paper, the only way I can find is to use a PageDialog and manually erase the default margins in the setup window which are then replaced by the margins in inches (that fairly well agree with MS Word), and I can retrieve the numbers in the program. I find no way to get the resolution of the printer. There is a way to get the screen size and resolution though.
In general, the screen and printer are different graphics beasts, and I donít know how to make them get along together. It seems to me that, for example, print previews have been around for a long time, and they donít have to be perfect.
Of course, just because I cannot find what I expect, that doesnít mean it isnít present. After all, Java is so big and difficult that no one can understand it all. Java has some good features, like BufferedInputStream that really whips, and the good checking that the compiler does. But it is the non-unifiedness that gets to me. And then if they fixed it, they would keep everything for backward compatibility. We need a new language, or a whole new set of graphics.
C++ seems like a good opportunity for someone to make a good unified system of graphics classes (of course the same could be said for Java). The successful system wouldnít have to be official c++ until it proves to be excellent. And I see there are some attempts. My question is, ďwhich are good?Ē.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Scientific Linux gtoman Linux - Software 1 01-24-2006 11:30 AM
Huge Huge Problem With Forums!!! The_Insomniac Linux - General 1 06-07-2004 08:15 AM
The Scientific Miracles rinard General 18 03-23-2004 12:08 AM
Scientific Software linux_fresher Linux - Software 3 08-18-2003 07:46 AM
Scientific notation for C Chijtska Programming 4 02-19-2002 09:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:52 PM.

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