ios - Core Plot : Grid lines appear once per two plots -
am using core plot plot memory statistics iphone app. here sample plot
why grid line appearing every alternating plot? want appear every plot. how do it? here's code configure grid line.
cptmutablelinestyle *majorgridlinestyle = [cptmutablelinestyle linestyle]; majorgridlinestyle.linewidth = 0.5f; majorgridlinestyle.linecolor = [cptcolor lightgraycolor]; //[[cptcolor lightgraycolor] colorwithalphacomponent:0.6f]; axisset.xaxis.majorgridlinestyle = majorgridlinestyle; axisset.yaxis.majorgridlinestyle = majorgridlinestyle;
please help.
the majorgridlinestyle
grid lines @ major tick locations, i.e., ones labels in sample image. set minorgridlinestyle
draw lines @ minor tick locations between major ticks. 2 line styles can different, example emphasize major grid lines.
Comments
Post a Comment