Divizion by Zero Exception

Bug #285029 reported by Akinmayowa Akinyemi
2
Affects Status Importance Assigned to Milestone
Cairo Plot
Fix Committed
High
Rodrigo Moreira Araújo

Bug Description

If any of the data items are zero, a division by zero exception occurs.

    data = [0, 0, 0, 0, 0]
    v_labels = ["line1", "line2", "line3", "line4", "line5", "line6", "line7"]
    h_labels = ["Yes", "No", "Maybe", "Someday", "Hmm"]

    CairoPlot.bar_plot ('vbar.png', data,
                        280, 190,
                        border = 10, grid = True, rounded_corners = True) #,

Attached is a patch to fix the issue

Revision history for this message
Akinmayowa Akinyemi (mayowa) wrote :
Changed in cairoplot:
assignee: nobody → alf-rodrigo
importance: Undecided → High
status: New → Confirmed
Changed in cairoplot:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.