tickCount option behavior

6 views
Skip to first unread message

Hamzilla

unread,
Sep 8, 2011, 4:22:56 AM9/8/11
to pycha
Hello,

When setting the options for a pycha line graph the tickCount behavior
is not as expected. I set the y-axis to 20 and the x-axis to 10, but
both appear with 10 ticks. If I swop the two options so the y-axis is
set after the x-axis, both appear with 20 ticks. Just to be clear, in
both cases y-axis tickCount = 20 and x-axis tickCount = 10. The order
in which the lines appear determines the final outcome.

Case 1:
options = {
'axis':{'y':{'tickCount':20}},
'axis':{'x':{'label':label_str,'tickCount':
10,'ticks':tick_labels}},

Case 2:
options = {
'axis':{'x':{'label':label_str,'tickCount':
10,'ticks':tick_labels}},
'axis':{'y':{'tickCount':20}},

Thanks,
Rall

Lorenzo Gil Sanchez

unread,
Sep 25, 2011, 3:36:05 AM9/25/11
to py...@googlegroups.com
2011/9/8 Hamzilla <hamzi...@gmail.com>:

You should merge both options into a single 'axis' dict:

options = {
'axis': {
'x': {'tickCount': 10, 'label': label_str, 'ticks': tick_labels},
'y': {'tickCount': 20'},
}
}

I'm sorry for my late response. I've been lacking time lately. I hope
it still helps you.

Lorenzo

Reply all
Reply to author
Forward
0 new messages