Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
TAChart
(Moderator:
Ask
) »
[SOLVED] Graphing the equation for angle of trajectory using TCHART
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
FPC Unleashed (inline var...
by
creaothceann
[
Today
at 07:47:25 am]
Ann: DeCoperators
by
Fibonacci
[
Today
at 07:14:59 am]
Error: Compilation raised...
by
Khrys
[
Today
at 06:22:32 am]
I hope FreePascal can sup...
by
xiyi0616
[
Today
at 05:49:05 am]
[Solved] Help needed comp...
by
landolfi
[
Today
at 02:45:10 am]
Delimited text - how find...
by
Remy Lebeau
[
Today
at 02:26:15 am]
AI assisted translation o...
by
MathMan
[
Today
at 12:55:30 am]
DataPort or Synpase stat...
by
eldonfsr
[April 16, 2026, 11:32:18 pm]
Ann: Deinline: a de-inlin...
by
LeP
[April 16, 2026, 11:27:18 pm]
[FPC 3.2.4, Windows] PTC ...
by
Fred vS
[April 16, 2026, 08:26:24 pm]
Cannot build Units for Si...
by
NormanDunbar
[April 16, 2026, 07:39:07 pm]
IDE: Property editor does...
by
dsiders
[April 16, 2026, 07:04:22 pm]
What is wrong with this c...
by
OH1KH
[April 16, 2026, 04:32:48 pm]
[work arounded]Naming dae...
by
LeP
[April 16, 2026, 03:36:10 pm]
Lazarus Bugfix Release 4....
by
Jonax
[April 16, 2026, 03:06:25 pm]
CudaText editor (written ...
by
AlexTP
[April 16, 2026, 10:43:12 am]
C header function with on...
by
440bx
[April 16, 2026, 09:13:38 am]
(Solved)TUpDown KeyDown ...
by
LeP
[April 15, 2026, 11:21:09 pm]
Zipper: Addition of mult...
by
marcov
[April 15, 2026, 10:35:15 pm]
Seeking advice on setting...
by
gidesa
[April 15, 2026, 07:02:04 pm]
GTK3: FillRect() mispaint...
by
baldzhang
[April 15, 2026, 06:32:52 pm]
Lazarus Image Editor
by
Paolo
[April 15, 2026, 05:37:30 pm]
RunFormula: math expressi...
by
Handoko
[April 15, 2026, 01:24:30 pm]
How to merge multiple cla...
by
cdbc
[April 15, 2026, 12:48:42 pm]
PWM signals, atmega328p, ...
by
pascalbythree
[April 15, 2026, 12:39:25 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Graphing the equation for angle of trajectory using TCHART (Read 4125 times)
sunbreezy393
New Member
Posts: 11
[SOLVED] Graphing the equation for angle of trajectory using TCHART
«
on:
December 30, 2015, 07:06:20 pm »
I am new to using Pascal/T Charts and was wandering how you would graph the equation for the angle of trajectory?
«
Last Edit: January 02, 2016, 12:54:38 am by sunbreezy393
»
Logged
wp
Hero Member
Posts: 13486
Re: Graphing the equation for angle of trajectory using TCHART
«
Reply #1 on:
December 30, 2015, 07:13:06 pm »
http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_Function_Series
is a tutorial with step-by-step instructions on how to plot functions with TAChart.
Logged
sunbreezy393
New Member
Posts: 11
Re: Graphing the equation for angle of trajectory using TCHART
«
Reply #2 on:
December 30, 2015, 07:18:04 pm »
Thanks for your help, but I have looked at this and it seems to work if z and v are constants but not when they are variables.
Logged
wp
Hero Member
Posts: 13486
Re: Graphing the equation for angle of trajectory using TCHART
«
Reply #3 on:
December 30, 2015, 07:28:23 pm »
So, you have a function of 2 variables, z = f(x,y)? You can use a TColorMapSeries where one variable runs along the x and the other variable along the y axis, and z is encoded as color shades. Have a look at
http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_ColorMapSeries,_Zooming
.
But maybe I do not understand your question correctly. Can you post a link or a sketch from which I could guess what the chart is supposed to look like?
Logged
sunbreezy393
New Member
Posts: 11
Re: Graphing the equation for angle of trajectory using TCHART
«
Reply #4 on:
December 30, 2015, 09:11:12 pm »
Here is an image of what the graph looks like
Logged
wp
Hero Member
Posts: 13486
Re: Graphing the equation for angle of trajectory using TCHART
«
Reply #5 on:
December 30, 2015, 11:08:19 pm »
Not straightforward, probably too much for a beginner...
Paint the parabola by using the TFunctionSeries mentioned above, or a standard TLineSeries
Then add an event handler to the OnAfterDraw event of the chart. Here you select the points of further analysis where you calculate the tangent vector, decompose it into its x and y components and paint the corresponding lines and arrows. Find information on the OAfterDraw painting in
http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_Background_design
.
Since this project looks like some homework assignment I do not want to give more details, sorry.
Logged
jmpessoa
Hero Member
Posts: 2330
Re: Graphing the equation for angle of trajectory using TCHART
«
Reply #6 on:
December 31, 2015, 01:20:47 am »
Hello sunbreezy393!
maybe this component [and demos ]can help you:
https://github.com/jmpessoa/tfpmathexpressionbridge
Logged
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard
sunbreezy393
New Member
Posts: 11
Re: [SOLVED] Graphing the equation for angle of trajectory using TCHART
«
Reply #7 on:
January 02, 2016, 12:51:58 am »
Thank you very much for all your help, I have fixed the problem now.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
TAChart
(Moderator:
Ask
) »
[SOLVED] Graphing the equation for angle of trajectory using TCHART
TinyPortal
© 2005-2018