View unanswered posts | View active topics It is currently Thu Mar 28, 2024 5:54 pm



Reply to topic  [ 4 posts ] 
Value area 
Author Message
New pChart user
New pChart user

Joined: Wed Aug 21, 2013 8:45 am
Posts: 2
Post Value area
Hello!

I'm creating a graphic of probability.
My problem is following. Probability can take on a value from 0 till 1. But value area is set automatically. So it includes negative values. I'd like to remove negative values from Y axis, but I can't find the way.

I would be grateful for any help. Thanks.


Attachments:
graphic.png
graphic.png [ 42.96 KiB | Viewed 7323 times ]
Wed Aug 21, 2013 9:21 am
Profile
pChart user
pChart user

Joined: Tue Aug 13, 2013 8:02 am
Posts: 5
Post Re: Value area
Try setting the scale value, for eg:
Code:
  $AxisBoundaries = array(0=>array("Min"=>0,"Max"=>100));
  $ScaleSettings  = array("Mode"=>SCALE_MODE_MANUAL,"ManualScale"=>$AxisBoundaries,"DrawSubTicks"=>TRUE,"DrawArrows"=>TRUE,"ArrowSize"=>6);
  $myPicture->drawScale($ScaleSettings);


You can also have a look at: http://wiki.pchart.net/doc.doc.draw.scale.html


Mon Aug 26, 2013 11:50 am
Profile
New pChart user
New pChart user

Joined: Wed Aug 21, 2013 8:45 am
Posts: 2
Post Re: Value area
kirchner20, thank you very much!
With your help I managed to restrict the range of values on the graph.


Tue Aug 27, 2013 9:30 am
Profile
pChart user
pChart user

Joined: Tue Aug 13, 2013 8:02 am
Posts: 5
Post Re: Value area
No Problem. Youre welcome


Thu Aug 29, 2013 9:41 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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