Is it possible to get an axis title displayed as well as axis values?

24 views
Skip to first unread message

reed...@gmail.com

unread,
Jul 8, 2013, 7:07:09 PM7/8/13
to pygoog...@googlegroups.com
I have the left and bottom axis values being generated correctly, but I would also like to have a title for each axis.

For instance, the left axis might be 'bandwidth in KB' and bottom might be 'block size'

My axis code looks like this:

left_axis = list(range(min_val-int(round(max_val/20,0)),
max_val + int(round(max_val/20,0)),
int(round(max_val/20,0))))
left_axis[0] = ''
chart.set_axis_labels(Axis.LEFT, left_axis)
chart.set_axis_labels(Axis.BOTTOM,block_size_data)
chart.set_title(graph_name)

Google chart javascript has this:

hAxis: {title: "Month"},

But I don't see anything like that in the Axis code.
Am I missing something?


Reply all
Reply to author
Forward
0 new messages