LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 12-07-2011, 05:06 PM   #1
pravas
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
assigning color to numbers and plotting in GNUPLOT


Hello linux users,

I have a problem in plotting a file in gnuplot. The part of the file "abc.dat" looks like this.


1 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1
2 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1
3 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1
5 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1
6 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1
7 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1
8 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1
9 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1
10 5 3 5 3 5 3 1 3 1 3 1 5 3 5 3 5 3 1 3 1 3 1

I want to assign a color to number 5, 3 and 1 and plot them from a file which has more than 500 columns. The yscale is [1:10] and the xscale is very large [0:500]. The figure should be filled with colored boxes like the table.

Please help me in finding a solution to this problem.
Thanks a lot.

Pravas
 
Old 12-08-2011, 12:05 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closing the original since the dupe has an answer
http://www.linuxquestions.org/questi...needed-917656/
 
  


Closed Thread


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
Plotting realtime data with GNUPLOT john_erlandsson Linux - Software 3 11-04-2011 04:42 PM
LXer: Real Time Data Plotting with GnuPlot LXer Syndicated Linux News 0 02-03-2010 03:30 PM
gnuplot (plotting simultaneously) hanamilani Linux - Software 2 02-02-2009 12:18 AM
Assigning large numbers of IPv6 addresses jack_sprat Linux - Networking 0 10-02-2007 10:04 AM
Assigning IP numbers on home network moonmoth Linux - Newbie 3 11-18-2004 11:28 AM


All times are GMT -5. The time now is 07:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration