Graph A Curve Of A Function In A VB Form?
Jul 9, 2009
How hard would it be to graph a curve of a function in a VB form.
Attached is a graph from excel which is exactly what I need to do.
I have the function of some fluid properties and I'd like to choose a min and max temp then have the function graphed, with temp as the x and the fluid property as the y which would auto scale to fit the curve.
Actually now the program i have to return the properties at one temp is just a GUI front end to call a fortran program to return the properties so actually if I just use that it'd be graphing points and not directly from the function. I can always make it completely VB based if graphing from a function is easier than points. It'd be a slight pain to rewrite all the code for the functions though.
View 3 Replies
ADVERTISEMENT
Nov 21, 2009
My problem is centering the 0,0 points of my graph to the center of my picturebox
Dim picBoxWidth As Integer = picGraf.Size.Width
Dim picBoxHeight As Integer = picGraf.Size.Height
Dim halfWidth As Integer = picGraf.Size.Width / 2
[code]....
So how to I tell it to start at the center of my picturebox names (picgraf) btw.
View 1 Replies
Mar 1, 2010
I've found some difficulty in creating a graph through the function given.For example:
Function : y = x^2 + 2
y value ranging from -10 to 10
x value ranging from -20 to 20
the graph also gridlines anf title on each axes.
View 5 Replies
Feb 20, 2012
I am trying to plot a set of data using a function I have defined as an array:
Private Sub calculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calculate.Click
range(1) = min.Text
For i = 2 To 100
[Code] .....
Range(i) I want to be my x values and fee(i) to be the y values. When I try to select range() and fee() as the x and y values for a series, I get an error because they are not of type double.
View 3 Replies
Aug 10, 2009
I found this function for plotting a graph online somewhere. I am pretty sure it has a memory leak but cant figure most of the functions as I am new to VB and windows API. Looking for some quick tip on what I should be looking at.
[code]...
View 7 Replies
Aug 25, 2009
My graph code works but i'm afraid it may not be efficient. I'm drawing a graph on a form using GDI. Basically, i'm making the entire form one big graph. Is this the best approach to creating a graph:
Private Sub frmGraphPaper_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim g As Graphics = e.Graphics
[code].....
View 4 Replies
Jun 20, 2009
I'm having difficulty drawing a graph using a picturebox and the graphics type. For some reason my graph doesn't load, even if I put thec code at the end of the on load event. But it works fine of I assign it to a button.
View 2 Replies
Sep 17, 2010
using vs2008 I am trying to create a line graph using vb in a windows form. I have dragged a chart onto the form, and via the properties window, through the series option have changed the type to the graph that I want, which is line. But all the time the data is displayed as a simple bar chart. How do I remedy this please to get the type of chart that I want.
View 1 Replies
Feb 12, 2010
I want to make a pie graph on my form. Can I do this? If so what do I need in the way of controls?
View 5 Replies
Nov 19, 2009
I need to read a text file with 100 data points across different parameters and use VB to select two variables to compare on a line graph.
1) How do I read a text file into a form?
2) How do I create a graph with the proper labels?
3) How do I choose the x and y axes when given several data sets to analyze?
View 2 Replies
Nov 17, 2009
does any one know if this is possible and if so , how? importing a excel graph and viewing it on a vb form? sample code would be very nice
View 1 Replies
Sep 15, 2009
I am doing some graphics work like Paint event, but I found a problem that the form will flash again and again whenever I call the method IRefresh() or Invalidate(). What can I do if I want to update a graph continuously but not causing the form to flash?
View 1 Replies
Feb 23, 2011
How can i use zed graph web to graph a dataset or datatable, the only examples i have found use test data.
View 2 Replies
Jul 13, 2011
I am drawing an arc within a square or a polygon with the maximum possible radius inside.When the arc is drawn within the boundary of the square or polygon,the arc length will intersect at few points on the square or polygon.How to find the coordinates of the intersecting points of arc at the periphery of the square/ polygon?
View 2 Replies
May 24, 2011
I want to know are you have trend view control.Each second I receive temperature value, I want display the temperature curve (trend graphics).
Are there have existing control to use? If not, how can I achieve this.
View 12 Replies
Apr 2, 2012
i can receive datas form serialport, but i want to draw a curve realtime use these data. so
View 6 Replies
Sep 14, 2010
I need print a curve of real time on the printerx 820G printer.I must use API LineTo to print the curve.
View 2 Replies
Jan 3, 2012
I have a large set of latitude and longitude coordinates from a GPS which, when plotted, creates a 'jerky' line over time. I would like to 'smooth' this line into another set of coordinates which I can then plot to make the track more 'smooth'.
I may need to add more intermediate coordinates to do this. I just wondered if there are any code snippets out there or even MS Excel functions
View 7 Replies
Sep 21, 2011
I am trying to write a function in VB.NET that takes a value and returns it's y-position on a Bell Curve.
View 4 Replies
Jun 23, 2011
I'm working in .net 2005. I have a collection of points and I'm creating a polyline with them; however, I need to curve fit them so that they appear to be some what straighter.
If you look at my picture, you can see the blue dots represent the points and the red line is a represenation of how I'd like the final results to be. (Basically, I need to line to appear straighter and less jaggedy looking than it is now).
I didn't know if I should try to see if there's some plug-in for doing this or if vb.net has anything I could use to do this myself.
View 15 Replies
Jul 22, 2011
I am looking for a way to be able to export a beizer-curve (a curve like in the example below)from my app to a DXF-file.What I need is a way to calculate the control-points and parameters that DXF-format requires (format as in link below)
View 11 Replies
Dec 19, 2011
Write a program to analyze a list of grades to determine the number of A's, B's, C's, etc. after applying a curve percentage selected by the user. When the form loads it should contain all the grades and available curves in the list boxes on the left. The user selects a curve and clicks the "Apply Curve" button. The program should display the curved grades (based upon the selected curve) and the grade distribution in the list boxes on the right?
View 1 Replies
Jun 22, 2010
How do I curve the edge of a User Control?
View 1 Replies
Jan 30, 2011
I am trying to write code in vb.net to find a equation when data points are given. For example (1,5),(2,6) etc. I need to find a equation(not necessarily always linear) from the given points. How do I calculate a trendline for a graph? How to get equation.
View 1 Replies
May 17, 2012
How to make a color curve adjasment for editing colors of an image?I found a C# project on Mr.SkyDrive but the problem is the coloring adjasment, because the coloring adjasment wasn't as other programs adjasment it wasn't correct if you view the image closely you will see some red, pink, and green pixels: (the curve like this must make the image negative)
View 20 Replies
Mar 2, 2010
I have several points where I draw a curved line from point to point using:e.Graphics.DrawCurve(p, theArrayOfPoints)Was wondering is it poss to draw text starting from the 1st point that followed the curve? This way the text bends.
View 14 Replies
Sep 14, 2009
how to make a polynom curve in VB.net?I need to take let's say 10 values and make it to a 2 order curve and extract the coeffiecients (A B C).
View 1 Replies
Jul 26, 2010
The picture is a graphicspath drawing a curve through the specified green dots... the red points are the Bezier points that are auto generated by the graphics path.
Basically I want to pass in an array of points (in this case the green dots in the pic) and get an array back of the Bezier (red points) - I want to calculate the location of these points MANUALLY - and not use the graphicspath object to work it out.
It doesn't have to be exactly the same just similar.
View 7 Replies
Jul 2, 2009
I have to draw a bar graph in my vb.net program. I used AxMSChart to create a graph. Everything has gone fine but when i published this and run on Vista PC, all form was good except my form includes MSChart. It says class not registered.So i have to draw a graph except MSChart tool.
View 10 Replies
Mar 2, 2011
This question may be off-topic. If it should be posted in another place (even on another board) For some given curves (see sample below) I have to quantify whether the red dots in some regions of the curve are more dense at the upper or lower edge of the curve. Which algorithm might be adequate to perform this task? The curves are constructed from measurements. (No mathematical formula behind it.) Every data point has two dimensions: A value in the range 4000-7000 and a second value 0-255.
View 4 Replies