473,795 Members | 2,892 Online
Bytes | Software Development & Data Engineering Community
+ 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 3179
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**********@m ail.codecomment s.com> wrote in message
news:wa******** **@mail.codecom ments.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
2501
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
2940
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 graph this out in my GUI. I thought about using a plain text file to store my graph data and plot it out. Plot it out manually or use gnuplot. I found this tool called RRDTool (http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/). It's a...
11
29562
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
3061
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 get my program to take these nodes and plot them on a graph, represented by a two-dimensional array. Right now I'm having some trouble with the recursive method I've set up, which does not seem to be efficient enough to get the job done. I
7
6851
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 the best graph plotting utility in python or linux. Can I write a code in such a way that my python code automatically gives me a graph. I know little about gnuplot. If you know any better tool without much learning curve please tell me in Linux. ...
4
2660
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. not miss the peaks and curves should look similar. Is there algorithm or anyway to do this in C#.Net. I have tried plotting points on regular intervals. Saves time but I m missing peaks and curves don't resemble.
5
20058
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 columns), i am unable to draw the correct graph. In this case i need graph with 2 series, one with first and second column and the second one with third and fourth columns. But i am getting 3 curves, one is for first and second column second is...
3
4283
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 performance of 6 algorithms into one graph? If so, how? Because when I refer to the koolplot documentation all I see is just plotting one thing at a time in a graph. Thanks for any advice given.
2
6406
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, where list1 contains x values (time) and list2 contains y values just like is needed for the normal plot function. The time values are simply the output of datetime.date.today(), etc which I don't mind changing the format of. My question is, how do...
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10438
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10164
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7540
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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 we have to send another system
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.