473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

graph plotting


i want to plot a line graph. The values that I obtain are the RGB value
of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when
generated the RGB values, there will b a column of values for me t
plot the line graph

thanks alot

Peteroid wrote:
[b]What kind of 'plot' of the data do you want to do? A histogram ca
be done
using just text, other graphs require graphic elements. What kind o
project
are you doing? Many factors can change the answer to you
question...

What do you mean by 'column of values'? Do you wish to plot index vs
value
(sequence), frequency of values (histogram), progressive sum o
values
(tally). etc?

[==Peteroid==

-
wayn
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 17 '05 #1
1 3136
I'm really not sure exactly what you mean. RGB 'values' contain as many as 4
values (if you include alpha channel). Hence, an RGB value is 3 dimensional
in and of itself. Also, I'm not clear concerning what you mean by
'value(1,2,3,...)'. Do you mean position on the screen? If so, then this too
is multi-dimensional ala (x,y). Therefore from yuor description it sounds
like yuor graph needs to be 5-dimensional, which is of course very hard
'visualize', let alone represent on a 2-dimensional display.

What exactly do you mean by a 'line graph'? I don't want to assume anything
about how you use this term, since from my point of view, ALL graphs can be
drawn as a 'line-graph' (i.e., graphs drawn with lines). To me this is a
style, not a method type.

You know it might be helpful if you described exactly what you are trying to
accomplish (i.e., the 'bigger picture'). Is this for compressing graphic
files? Equalization? That kind of thing.

I think I know what you mean by 'column of values', but I'll ask to be sure.
Do you mean the column has positions (1st, 2nd, 3rd, etc.) and you want to
plot position vs value at that position in the column? That sounds ver much
like a histogram...

Also, what part of the problem do you need help with? The actually drawing
of the graph in VC++? There are no native 'graph methods' I know of, so
whenever I need to draw a graph I write the whole thing myself to custom fit
the project I'm doing. In my case, I manage to draw all graphs using the
Label class as a solid box I can put text in! Note that a thin solid box
without text is a line... :) There are graphic drawing functions in VC++
which you might want to look into, but they require some not-so-obvious
setup (like device contexts and handles).

Finally, I often just use text if the graph needs only to be histogram in
nature. Just use various lengths of asteriks strings to represent graph
extent at each value (the 'y' to the graph's 'x'), and draw these asteriks
strings anchored on the x-axis at its x-value with its length equal to its
y-value (the value's tally count for a histogram). Scaling is easy to make
it fit any size box on the screen you need, depending on how accurate your
graphs must be...

I know this isn't much help, but it is my train of thought on the subject at
hand... :)

[==Peteroid==]

"wayne" <wa**********@mail.codecomments.com> wrote in message
news:wa**********@mail.codecomments.com...

i want to plot a line graph. The values that I obtain are the RGB values
of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when i
generated the RGB values, there will b a column of values for me to
plot the line graph

thanks alot

Peteroid wrote:
[b]What kind of 'plot' of the data do you want to do? A histogram can
be done
using just text, other graphs require graphic elements. What kind of
project
are you doing? Many factors can change the answer to your
question...

What do you mean by 'column of values'? Do you wish to plot index vs.
value
(sequence), frequency of values (histogram), progressive sum of
values
(tally). etc?

[==Peteroid==]


--
wayne
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Todd Gardner | last post by:
I would like to graph two columns of x,y numbers? I would greatly appreciate any pointers or suggestions. Thank you, Todd
2
by: KevinGPO | last post by:
I am making a monitor program for the PC. My monitor program will grab statistics about CPU and memory every 1 or 5 seconds. Then I want to store this data so I have a history and hence be able to...
11
by: Chapman | last post by:
Is it possible to plot the graph as an output of my program in C? It can be a simple graph as quadratic curves for example or a correlation between 2 variables only. Thanks
3
by: i | last post by:
Hi, I'm working with an array of nodes, numbering roughly in the thousands. Each node has at least one, but up to four, references to another node - North, South, East, or West. I'm trying to...
7
by: diffuser78 | last post by:
My python program spits lot of data. I take that data and plot graphs using OfficeOrg spredsheet. I want to automate this task as this takes so much of time. I have some questions. 1. Which is...
4
by: Gouri | last post by:
Hi, Got a query regarding plotting a preview / thumbnail for a graph which reads data from a binary file. The preview should should take very less time, look exactly like the original graph i.e....
5
by: Narendar123P | last post by:
Hi all, I am trying to plot a graph in excel file using C#.Net. I am using the name space excel . If my graph has one series(2 columns), i am able to draw the graph. if my graph has two series(4...
3
by: 9966 | last post by:
Greetings, I'm currently having problem in plotting a simple graph in C++. I learned that we can actually use koolplot to do it. My question is whether it is possible to plot, let's say the...
2
by: Durand | last post by:
Hi, I'm trying to plot a simple graph against date or time using matplotlib. I've read about date_plot but I'm not really sure how to use it. At the moment, I have some data arranged into lists,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.