473,491 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3145
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
2434
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
2916
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
29496
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
3035
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
6831
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
2630
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
20026
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
4250
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
6386
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
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.