Crashes when using funcion_plot without h_labels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cairo Plot |
Fix Committed
|
Medium
|
Rodrigo Moreira Araújo |
Bug Description
When using function_plot like this CairoPlot crashes:
meusdados = lambda x : [1,2,3,4][x]
CairoPlot.
After following the execution in the source I found that the problem is in te following pice of render_horz_labels:
if not labels:
labels = []
i = self.bounds[
while i<self.
i += (self.bounds[
#labels = [str(i*self.step) for i in range(self.
border = self.borders[HORZ]
Testing with h_labels it didn't crashes but the the labels aren't drawn:
meusdados = lambda x : [1,2,3,4][x]
labels = ["a","b","c","d"]
CairoPlot.
Thanks for this great module!!
Changed in cairoplot: | |
assignee: | nobody → alf-rodrigo |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in cairoplot: | |
status: | Confirmed → Fix Committed |