View unanswered posts | View active topics It is currently Fri Apr 19, 2024 3:10 pm



Reply to topic  [ 4 posts ] 
Cartesian coordinate system 
Author Message
Experienced pChart user
Experienced pChart user

Joined: Tue Aug 02, 2011 11:49 pm
Posts: 34
Post Cartesian coordinate system
is it possible to realize mathematical "curve sketching"?
it should be possible to combine 4 single charts yet, but that means a lot of preprocessing for the data-series
it would be nice to draw some mathematical functions

Image
Image Image


Tue Aug 09, 2011 2:00 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Cartesian coordinate system
Good idea indeed ;o)

Just added the createFunctionSerie() function to the pData classe that accepts a formula as input and populate the associated dataset with the values.

Code:
$MyData = new pData(); 
$MyData->createFunctionSerie("Serie 1","log(z)",array("AutoDescription"=>TRUE,"MinX"=>-10,"MaxX"=>10,"XStep"=>1,"RecordAbscissa"=>TRUE,"AbscissaSerie"=>"Labels"));
$MyData->createFunctionSerie("Serie 2","z*z*z",array("AutoDescription"=>TRUE,"MinX"=>-10,"MaxX"=>10,"XStep"=>1));
$MyData->createFunctionSerie("Serie 3","(z*15)*z",array("AutoDescription"=>TRUE,"MinX"=>-10,"MaxX"=>10,"XStep"=>1));
$MyData->setAxisName(0,"functions");
$MyData->setAbscissa("Labels");


JD.


Attachments:
example_createFunctionSerieCAZPLGD3.png
example_createFunctionSerieCAZPLGD3.png [ 31.87 KiB | Viewed 7284 times ]
example_createFunctionSerieCA98QAHY.png
example_createFunctionSerieCA98QAHY.png [ 26.91 KiB | Viewed 7287 times ]
Wed Aug 10, 2011 12:28 pm
Profile WWW
Experienced pChart user
Experienced pChart user

Joined: Tue Aug 02, 2011 11:49 pm
Posts: 34
Post Re: Cartesian coordinate system
it is amazing how fast you're evolving and enhancing pChart
it is really a living and constantly becoming a more powerful tool as it already is
thanks for that
great job


Wed Aug 10, 2011 8:38 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Cartesian coordinate system
Thanks for your encouragements ;o)

This is a project I like. Without the community and the ideas popping up on this forum it wouldn't be evolving so fast.

I'll do the same now for 2 dimensional functions using the scatter extension.

JD.


Attachments:
example.createFunctionSerie.scatter.png
example.createFunctionSerie.scatter.png [ 33.73 KiB | Viewed 7268 times ]
example_createFunctionSerie_scatterCANOC7S0.png
example_createFunctionSerie_scatterCANOC7S0.png [ 29.39 KiB | Viewed 7271 times ]
Thu Aug 11, 2011 7:09 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron