הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Thursday, May 3, 2012 6:55 PM
Hi, i need to plot a 3D series of x,y,z coordinate in VB. I have search for hours on this matter but I can't seemed to find the answer.
The image above shows an example the kind of plot i am interested in.
Many Thanks.
All replies (5)
Thursday, May 3, 2012 8:48 PM ✅Answered
I'd have to agree that a pre-built control might be best.
The drawing part itself is actually quite simple - just lines, strings, and paths. You could probably get away with a gradient fill to achieve the coloring.
The potentially tricky part is the calculations to determine where to draw everything and at what size. If you can do the math, the rendering shouldn't be too bad.
Reed Kimble - "When you do things right, people won't be sure you've done anything at all"
Friday, May 4, 2012 5:13 PM ✅Answered
This may get you started, though only "just." http://www.codeproject.com/Articles/17715/Plot-3D-surfaces
Component One (http://www.componentone.com/SuperProducts/ChartWinForms/) has a commercial product that might meet your needs. Naturally, this isn't free.
Dick
Dick Grier. Author of Visual Basic Programmer's Guide to Serial Communications 4. See www.hardandsoftware.net.
Thursday, May 3, 2012 7:34 PM | 1 vote
Unless you want to write your own I'd look at the chart control or maybe something like Zedgraph (although I believe it's c# and has mixed reviews).
Something from here might help. Last time I did any serious graphing stuff was on BBC Micro and Z8) based systems. Fun but needed some maths and not quite up to today's standards.
Regards David R
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
Object-oriented programming offers a sustainable way to write spaghetti code. - Paul Graham.
Every program eventually becomes rococo, and then rubble. - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
Saturday, May 5, 2012 10:17 PM
This may get you started, though only "just." http://www.codeproject.com/Articles/17715/Plot-3D-surfaces
Component One (http://www.componentone.com/SuperProducts/ChartWinForms/) has a commercial product that might meet your needs. Naturally, this isn't free.
Dick
Dick Grier. Author of Visual Basic Programmer's Guide to Serial Communications 4. See www.hardandsoftware.net.
I stumbled across the ComponentOne. But this is just a University Project and I dont think i will fork out that much for it. And also I tried the codeproject as well, but it doesn't seem to fit my requirements. Thanks Anyway.
Monday, May 7, 2012 6:45 PM
Perhaps you can request an Academic, NFR, license. I have no idea if this will work.
Dick
Dick Grier. Author of Visual Basic Programmer's Guide to Serial Communications 4. See www.hardandsoftware.net.