Closed GoogleCodeExporter closed 9 years ago
You still can set the 'raw' api params via the dict instance or kwargs
G = LineXY(dataset, chxl='2:|my label is here&...')
and renders w/ no questions asked.
Thank you so much for trying to poke holes in the module, and im sure there is a
better way to do this. If you could show programatically how u would like to
achieve
this using the wrapper ANY OTHER WAY, i would be happy to view it.
Original comment by justquick
on 14 Aug 2008 at 9:10
Excellent.
I didn't know that capability was present. (maybe an example or some docs would
help
that ; wink wink).
As far as other ways to do it, I think your way (in order) could stay the
default,
but perhaps an optional index argument could be passed.
Thanks again.
Original comment by matt.fei...@gmail.com
on 16 Aug 2008 at 5:55
Actually this still doesn't work.
Either you can just skip your wrapper and send in __init__ args, as you
suggest, OR
you can use the wrapper.
What if I want to use the wrapper but don't want to specify in order?
Original comment by matt.fei...@gmail.com
on 28 Aug 2008 at 6:59
Here's a more thorough example...
gc = GChart('lxy', ([0,1,2,3,4,5], [0.1, 0.2, .05, 0.3, 0.5, 0.2]))
gc.scale(0,6) # sets the X scale
gc.scale(0,10) # sets the Y scale
gc.axes.type('xytr') # sets up four axes
gc.axes.range(0,60) # sets the scale on the labels; we want to KEEP these
auto-labels
gc['chxl'] = '2:|my label here' # doesn't show up in output
gc['chxl'] += '2:|my label here' # KeyError
Original comment by matt.fei...@gmail.com
on 28 Aug 2008 at 7:05
After much thought and deliberation I have decided to implement assigned
indexing for
axes functions. Here is what has changed in v0.8
{{{
# Old Way
>>> G.axes.type('xy')
>>> G.axes.label('Mar','Apr','May')
>>> G.axes.label(None,'50+Kb')
# New Way
>>> G.axes('xy')
>>> G.axes.label(0, 'Mar','Apr','May')
>>> G.axes.label(1, None,'50+Kb')
}}}
Original comment by justquick
on 3 May 2009 at 9:03
Original issue reported on code.google.com by
matt.fei...@gmail.com
on 14 Aug 2008 at 7:54