Menu

Too many x-axis value

sss sss
2011-10-15
2012-09-07
  • sss sss

    sss sss - 2011-10-15

    Dear All,

    I have problem where I have a lot of x-axis values. So can I can show all of
    them but on the x-axis just show the start and end value? Any idea how to do
    it via phplot? Thank you.

     
  • lbayuk

    lbayuk - 2011-10-15

    If I understand correctly, you are seeing too many labels on the X axis. Are
    these tick labels or data labels? (Tick labels are generated automatically
    based on the range of your data values. Data labels are copied from your data
    array - the first position in each row array.)

    If you are seeing too many tick labels along the X axis, you can adjust the
    interval with SetXTickIncrement() or SetNumXTicks(), possibly along with other
    functions to control the start tick value.

    If you are seeing too many data labels, you need to adjust your data array
    because PHPlot draws every data label. You will have to delete (replace with
    empty string) the label positions that you don't want drawn. You may be able
    to use the sample function in contrib/prune_labels.php inside the PHPlot
    distribution to do this for you.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.